Precedence And Order Of Evaluation in C language MCQs

@T-Bone

This question paper focuses on the "Precedence And Order Of Evaluation" of the C programming. These Multiple Choice Questions (mcq) should be practiced to improve the C programming skills required for various interviews (campus interview, walk-in interview, company interview), placement, entrance exam and other competitive examinations.

This question paper focuses on the "Precedence And Order Of Evaluation" of the C programming. These Multiple Choice Questions (mcq) should be practiced to improve the C programming skills required for various interviews (campus interview, walk-in interview, company interview), placement, entrance exam and other competitive examinations.

Questions

1. In expression i = g() + f(), first function called depends on __________

Mark the correct option

2. Which of the following is correct Associativity for == operator?

Mark the correct option

3. Which of the following operator has highest Precedence?

Mark the correct option

4. Which of the following operator has lowest Precedence?

Mark the correct option

5. Which of the following is a ternary operator?

Mark the correct option

6. What will be output for the following code? #include <stdio.h> int main() { int a = 1, b = 2; int c = a ^ b & 1; printf(""%d "", c); }

Mark the correct option

7. What will be output for the following code? #include <stdio.h> int main() { double a = 5 % 3 & 4 + 5 * 6; printf(""%lf"", a); }

Mark the correct option

8. What will be output for the following code? #include <stdio.h> int main() { int a = 2; int b = (a++, a++); printf(""%d%d "", b, a); }

Mark the correct option

9. Which of the following has same Precedence? A. ++ B. -> C. !

Mark the correct option

10. Which of the following option is the correct representation of the following C statement? e = a * b + c / d * f;

Mark the correct option

Index of Questions