--:--









Quiz for Relational and logical operators

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



Logo

Q1: Which operator is used to check equality between two values in C?

Logo

Q2: What will be the result of (5 > 3) && (2 < 4) in C?

Logo

Q3: Which operator returns true if at least one condition is true?

Logo

Q4: What is the output of !(5 == 5) in C?

Logo

Q5: Which operator is used for logical NOT in C?

Logo

Q6: Which of the following is a relational operator?

Logo

Q7: What is the result of (10 < 5) || (8 > 3)?

Logo

Q8: Which operator checks if two values are not equal?

Logo

Q9: What will (7 >= 7) evaluate to?

Logo

Q10: What is the precedence of relational operators compared to logical operators?

Logo

Q11: Which expression is valid in C?

Logo

Q12: What will (4 < 2) && (3 > 1) return?

Logo

Q13: Which operator returns false if both operands are true?

Logo

Q14: Which of the following is not a relational operator in C?

Logo

Q15: What is the output of (3 != 4) in C?

Logo

Q16: Which logical operator has the highest precedence in C?

Logo

Q17: What will (0 && 1) return?

Logo

Q18: Which expression correctly checks if x is between 10 and 20?

Logo

Q19: What will be the output of (5 <= 5) || (6 < 2)?

Logo

Q20: Which operator can invert the truth value of an expression?

Are you ready to start test? Set your time limit