LIST OF ATTEMPTED QUESTIONS AND ANSWERS
Question
The variable name can have maximum length
Correct Answer 8 characters Your Answer
8 characters
Select The Blank Question ________ is a valid statement to declare a character pointer c. Correct Answer char *c; Your Answer
char *c;
Multiple Choice Multiple Answer Question What will be the output? main(){ char name[10]="String"; int j=strlen(name); puts(name); printf("%d",j);} Correct Answer String , 6 Your Answer
String , 6
True/False Question
Only one comment can be given in a C program
Correct Answer False Your Answer
False
Select The Blank Question Multiple statement of each 'case' should be enclosed within ________ Correct Answer nothing Your Answer
{}
Multiple Choice Single Answer Question Which of the following form is possible to express the real constant Correct Answer Both fractional and exponential forms Your Answer
Both fractional and exponential forms
Multiple Choice Multiple Answer Question Which of the following operators have 2nd priority in operations? Correct Answer + , Your Answer
+,-,%
Multiple Choice Multiple Answer Question Point out the errors if any struct student{ int roll; int course, char duration; }