LIST OF ATTEMPTED QUESTIONS AND ANSWERS
Multiple Choice Single Answer Question Which function is used to copy first n characters of a string into another? Correct Answer strncpy Your Answer
strncpy
True/False Question
Empty paranthesis after main function are not necessary.
Correct Answer False Your Answer
True
Multiple Choice Single Answer Question What will be the output? main(){ int a=25, *b; b=&a; printf("%d",*b);} Correct Answer 25 Your Answer
25
Multiple Choice Multiple Answer Question What will be the output of the following main(){ char c='d';float f=1; printf("%c", c); printf("%d", c * f);} Correct Answer d , 0 Your Answer
100.00
True/False Question
Only one comment can be given in a C program
Correct Answer False Your Answer
False
Multiple Choice Single Answer Question Studying system domain, identifying classes & objects with their properties and expressing them with eight notations/diagrams is called as Correct Answer Object modeling of system. Your Answer
Object modeling of system.
Multiple Choice Multiple Answer Question What will be the output main ( ) { char ch='s'; switch(ch) { case 's' : printf("%d",1); case 'r' : printf("%d",2); case 'b' : printf("%d",3);break; default:printf("%d",4); } } Correct Answer 1 , 2 , 3