Example Test Paper 1 - Technical - Java
C/Java 1230Computer Basics 2015Analytical/Logical3030)1) Write a program in C/java for implementing towers of honoi. The function should take the number of rings as the argument. The outputshould be of this form:Move from disc 1 to 3Move from disc 1 to 2 ...2) Identify the error in the following code, if any. If there is no error, then mention the output of the code.main(){union test {char *id;char *name;};union test me;me.id = "hello";printf("\n%s",me.id);printf("\n%s",me.name);}3) Mention the error, if any, in the following code. If there is no error, then mention the output of the code:main(){struct temp {char *var1;char *var2;};struct temp pn = {"Load","Reed"}, *pn1, *pn2;void **pp;pn1 =...