1.
What is the output of this program?#include int main(){int a = 0;a = 1 + (a++);printf("%d", a);return 0;}
A. 
B. 
C. 
D. 
2.
What is the output of this program?int main(){int a = 0;for(; a <= 10; a++);printf("%d", a);}
A. 
B. 
C. 
D. 
3.
What is the output of this program?int main(){int a = 0;for(a = 0; a <= 10; a++)for( a = 0; a <= 10; a++);printf("%d", a);return 0;}
A. 
B. 
C. 
D. 
4.
What is the output of this program?int main(){int a = 0;for(a = 0; a <= 10; a++)for( a = 0; a <= 10; a++)for(a = 0; a <= 100; a++); printf("%d", a);return 0;}
A. 
B. 
C. 
D. 
5.
What is the output of this program?void rec(int);int main(){int a = 10;rec(10);return 0;}void rec(int a){if(a == 0)return;printf("%d", a);rec(--a);}
A. 
B. 
C. 
D. 
6.
What is the output this program?int main(){int a = -10;while(a){a++;}printf("%d", a);return 0;}
A. 
B. 
C. 
D. 
7.
What is the output of this program?int main(){int a = 65;char c = a;printf("%d %c", c, a);}
A. 
B. 
C. 
D. 
E. 
F. 
8.
What is the output of this C snippet?int main(){int a = 65;char c = a;int d = a + c;printf("%d", d);}
A. 
B. 
C. 
D. 
E. 
9.
What is the output of this program?void main(){int k;for (k = -3; k < -5; k++)printf("Hello");}
A. 
B. 
C. 
D. 
10.
What is the output of this C snippet?int main(){int i = 0;for (i++; i == 1; i = 2)printf("%d ", i);printf("%d", i);}
A. 
B. 
C. 
D. 
11.
What is the output of this C code?int main(){int x = 2, y = 2;float f = y + x /= x / y;printf("%d %f\n", x, f);return 0;}
A. 
B. 
C. 
D. 
12.
What is the output of this C code?int main(){int x = 1, y = 2;if (x && y == 1)printf("true\n");elseprintf("false\n");}
A. 
B. 
C. 
D. 
13.
What is the output of this C code?int main(){int x = 1, y = 2;int z = x & y == 2;printf("%d\n", z);}
A. 
B. 
C. 
D. 
14.
What is the output of this C code?int main(){int x = 0, y = 2;if (!x && y)printf("true\n");elseprintf("false\n");}
A. 
B. 
C. 
D. 
15.
What is the output of this C code?void main(){int k = 4;float k = 4;printf("%d", k)}
A. 
B. 
C. 
D. 
16.
A variable declared in a function can be used in main.
A. 
B. 
C. 
True if it is declared static
D. 
17.
What is the output of this C code?int main(){int x = 2, y = 0;int z = (y++) ? y == 1 && x : 0;printf("%d\n", z);return 0;}
A. 
B. 
C. 
D. 
18.
What is the output of this C code?#includeint main(){int x = 1;short int i = 2;float f = 3;if (sizeof((x == 2) ? f : i) == sizeof(float))printf("float\n");else if (sizeof((x == 2) ? f : i) == sizeof(short int))printf("short int\n");}
A. 
B. 
C. 
D. 
19.
What is the output of this C code?int main(){int a = 2;int b = 0;int y = (b == 0) ? a :(a > b) ? (b = 1): a;printf("%d\n", y);}
A. 
B. 
C. 
D. 
20.
What is the output of this C code?void main(){1 < 2 ? return 1 : return 2;}
A. 
B. 
C. 
D. 
21.
What is the output of this C code?int main(){switch (printf("Do")){case 1:printf("First\n");break;case 2:printf("Second\n");break;default:printf("Default\n");break;}}
A. 
B. 
C. 
D. 
22.
Comment on the output of this C Code?int main(){int a = 1;switch (a){case 1:printf("%d", a);case 2:printf("%d", a);case 3:printf("%d", a);default:printf("%d", a);}}
A. 
B. 
C. 
Compile time error, no break statement
D. 
Compile time error, case label outside switch statement
23.
Switch statement accepts _______.
A. 
B. 
C. 
D. 
24.
Comment on the output of this C code?int main(){int a = 1;switch (a){case a:printf("Case A ");default:printf("Default");}}
A. 
B. 
C. 
D. 
25.
What is the output of this code having void return-type function?void foo(){return 1;}void main(){int x = 0;x = foo();printf("%d", x);}
A. 
B. 
C. 
D.