Question 1 of 25
Hints left: 3
Q1
Which among the following is NOT a logical or relational operator?
Q2
What will be the output of the following C code? #include <stdio.h> int main() { int i = -5; i = i / 3; printf("%d\n", i); return 0; }
Q3
What will be the output of the following C code? #include<stdio.h> enum India { a=1,b,c,d,e }; int main() { printf("%d",b*c+e-d); }
Q4
What will be the output of the following C code? #include <stdio.h> int main() { int i = 0; int j = i++ + i; printf("%d\n", j); }
Q5
The keyword typedef cannot be used to give alias names to pointers.
Q6
Which of the following option is the correct representation of the following C statement? e = a * b + c / d * f;
Q7
What will be the output of the following C code? #include <stdio.h> int main() { int a = 10, b = 5, c = 3; b != !a; c = !!a; printf("%d\t%d", b, c); }
Q8
What will be the output of the following C code? #include <stdio.h> void main() { int a = -5; int k = (a++, ++a); printf("%d\n", k); }
Q9
What is short int in C programming?
Q10
Which of the following is not a valid variable name declaration?
Q11
What will be the output of the following C code? #include <stdio.h> int main() { int i = 5; i = i / 3; printf("%d\n", i); return 0; }
Q12
What will be the output of the following C function? #include <stdio.h> int main() { reverse(1); } void reverse(int i) { if (i > 5) exit(0); printf("%d\n", i); return reverse(i++); }
Q13
C99 standard guarantees uniqueness of . . . . . . . . characters for external names.
Q14
What will be the output of the following C code if the code is executed on a 32 bit platform? #include <stdio.h> enum India { c = 0, d = 10, h = 20, s = 3 } a; int main() { a = c; printf("Size of enum variable = %d bytes", sizeof(a)); return 0; }
Q15
What will be the output of the following C code? #include <stdio.h> int main() { int i = 1; if (i++ && (i == 1)) printf("Yes\n"); else printf("No\n"); }
Q16
Are logical operator sequence points?
Q17
Point out the error( if any) in the following code. #include<stdio.h> enum India { a,b,c }; enum India g; main() { g++; printf("%d",g); }
Q18
Which of the following operators has the lowest precedence?
Q19
What will be the output of the following C code? #include <stdio.h> void main() { int b = 5 + 7 * 4 - 9 * (3, 2); printf("%d", b); }
Q20
What will be the output of the following C code? #include <stdio.h> int main() { int var = 010; printf("%d", var); }
Q21
What will be the output of the following C code? #include <stdio.h> int main() { int x = 2, y = 2; float f = y + x /= x / y; printf("%d %f\n", x, f); return 0; }
Q22
What will be the final value of d in the following C code? #include <stdio.h> int main() { int a = 10, b = 5, c = 5; int d; d = b + c == a; printf("%d", d); }
Q23
Which expression has to be present in the following? exp1 ? exp2 : exp3;
Q24
What will be the output of the following C code? #include <stdio.h> void main() { int a = -5; int k = (a++, ++a); printf("%d\n", k); }
Q25
What will be the output of the following C code? #include <stdio.h> int main() { int a = 2; int b = 0; int y = (b == 0) ? a :(a > b) ? (b = 1): a; printf("%d\n", y); }