Professional Documents
Culture Documents
Class Test - 03
Angul
C PROGRAMMING LAB TEST Full Mark:
NAME: ________________________________
ROLL NO.: __________________________
STREAM: _________________________
else block
3. Use of else statement is _________________________
2.MCQ(5X1)
1. Find the output of the given C program.
#include<stdio.h>
int main()
{
int a=0;
if(a++)
{
printf("x"); a) z
printf("y"); b) Compile time error
} c) xyz
printf("z"); d) xy
return 0;
}
5. The following code 'for(;;)' represents an infinite loop. It can be terminated by.
A. break B. exit(0)
C. abort() D. All of the mentioned
3.MSQ(5X1)
1. We can use the keyword ‘break’ simply within _________.
A. while B. for
C. if-else D. do-while
4. Which of the following is not used to come out of a loop only for that iteration?
A. break B. continue
C. return D. None of the mentioned