Quiz 02 Operators in C Programming Posted by iammtabdullah Date August 12, 2025 Comments 0 comment Welcome to your Quiz 02 Operators in C Programming 01. What will be the output of the following program? 2, 3, 1, 1 2, 3, 1, 2 1, 2, 3, 1 3, 3, 1, 2 None 02. Assuming an integer is 2 bytes, what will be the output of the following program? ffff 0 fff8 Error None 03. What will be the output of the program? 2, 2, 0, 1 1, 2, 1, 0 -2, 2, 0, 0 -2, 2, 0, 1 None 04. What will be the output of the program? 0 1 4 2 None 05. What will be the output of the program? 1, 0, 1 1, 1, 1 0, 0, 0 0, 1, 0 None 06. What will be the output of the program? 1, 1, 1, 1 1, 1, 0, 1 1, 0, 0, 1 1, 0, 1, 1 None 07. What will be the output of the program? 1, 2, 0, 1 -3, 2, 0, 1 -2, 3, 0, 1 2, 3, 1, 1 None 08. What will be the output of the program? 4, 3, 3 4, 3, 2 3, 3, 2 2, 3, 3 None 09. What will be the output of the program? 3 4 5 6 None 10. What will be the output of the program? c=100 c=200 c=1 c=300 None 11. What will be the output of the program? 1, 40, 1 1, 55, 1 1, 55, 0 1, 1, 1 None 12. What will be the output of the program? 3, 4 4, 3 4, 4 Output may vary from compiler to compiler None 13. What will be the output of the program? 200 30 100 500 None 14. What will be the output of the program? The letter is a Now the letter is A The letter is A Now the letter is a Error None of above None 15. What will be the output of the program? 4 7 6 5 None 16. Associativity has no role to play unless the precedence of operator is same. True False None 17. The expression of the right hand side of || operators doesn't get evaluated if the left hand side determines the outcome. True False None 18. In the expression a=b=5 the order of Assignment is NOT decided by Associativity of operators True False None 19. Associativity of an operator is either Left to Right or Right to Left. True False None 20. Are the following two statement same? 1. a <= 20 ? b = 30: c = 30;2. (a <=20) ? b : c = 30; Yes No None 21. Two different operators would always have different Associativity. Yes No None 22. Will the expression *p = p be disallowed by the compiler? Yes No None 23. Every operator has an Associativity Yes No None 24. Which of the following is the correct order of evaluation for the below expression? * / % + - = = * / % + - / * % - + = * % / - + = None 25. Which of the following correctly shows the hierarchy of arithmetic operations in C? / + * - * - / + + - / * / * + - None 26. Which of the following is the correct usage of conditional operators used in C? a>b ? c=30 : c=40; a>b ? c=30; max = a>b ? a>c?a:c:b>c?b:c return (a>b)?(a:b) None 27. Which of the following is the correct order if calling functions in the below code? a = f1(23, 14) * f2(12/4) + f3(); f1, f2, f3 f3, f2, f1 Order may vary from compiler to compiler None of above None 28. Which of the following are unary operators in C? 1. !2. sizeof3. ~4. && 1, 2 1, 3 2, 4 1, 2, 3 None 29. In which order do the following gets evaluated 1. Relational2. Arithmetic3. Logical4. Assignment 2134 1234 4321 3214 None Time's up iammtabdullah Previous post Assignment 05 - Intermediate CSS Flag August 12, 2025 Next post Quiz 01 Arithmetic Operators in C Programming August 13, 2025