--:--









Quiz for Operator precedence & associativity

Course: C Language | Subject: Unit 2 | Topic: Operators and Expressions



Logo

Q1: Which operator has the highest precedence in C?

Logo

Q2: What is the associativity of the assignment operator in C?

Logo

Q3: Which has higher precedence: multiplication (*) or addition (+)?

Logo

Q4: What is the precedence of logical AND (&&) compared to logical OR (||)?

Logo

Q5: What is the associativity of the conditional operator (?:)?

Logo

Q6: Which operator has the lowest precedence in C?

Logo

Q7: In expression a + b * c, which operation is performed first?

Logo

Q8: What is the associativity of the postfix increment (i++) operator?

Logo

Q9: Which has higher precedence: prefix increment (++i) or multiplication (*)?

Logo

Q10: What is evaluated first in a = b = c + 2?

Logo

Q11: Which has higher precedence: bitwise AND (&) or equality (==)?

Logo

Q12: What is the associativity of relational operators (<, >, <=, >=)?

Logo

Q13: Which has the highest precedence among these: !, *, +?

Logo

Q14: What is the associativity of the comma operator?

Logo

Q15: Which operator has higher precedence: << or +?

Logo

Q16: In i = 3 + 2 * 4, what is i?

Logo

Q17: Which operator has higher precedence: == or &&?

Logo

Q18: Which has higher precedence: sizeof or *?

Logo

Q19: Which has higher precedence: array subscript ([]) or function call ()?

Logo

Q20: Which has the highest precedence in C overall?

Are you ready to start test? Set your time limit