Expressions Questions and Answers
Practice ModeShowing 10 of 26 questions
Q11
Which operator has the highest precedence?
Answer: Option C
Explanation: Parentheses have the highest precedence in C expressions.
Q12
What is the result of: ++x if x=5?
Answer: Option B
Explanation: Prefix increment increases value before using it.
Q13
What is the value of: x++ if x=5?
Answer: Option A
Explanation: Postfix increment uses value first, then increments.
Q14
Which is a relational operator?
Answer: Option C
Explanation: Relational operators compare values and return true/false.
Q15
What is the result of: 5 == 5?
Answer: Option B
Explanation: == operator checks for equality and returns 1 for true.
Q16
Which is a logical operator?
Answer: Option C
Explanation: Logical operators: && (AND), || (OR), ! (NOT)
Q17
What is: !0 (not zero) in C?
Answer: Option B
Explanation: ! operator returns 1 for false values and 0 for true values.
Q18
What is the result of: 10 > 5 && 3 < 2?
Answer: Option A
Explanation: && requires both conditions to be true.
Q19
What is the value of: 8 | 3?
Answer: Option A
Explanation: Bitwise OR operation on binary values.
Q20
What is: 10 & 5?
Answer: Option A
Explanation: Bitwise AND operation on binary values.