Multiple choice technology programming languages

Which of the following statements are correct?

  1. Relational and equality operators evaluate their operands to produce a true or false result.

  2. The equality operators have the same level of precedence And associate right to left.

  3. Relational operators all have the same level of precedence And associate right to left.

  4. The precedence of relational operators is at a lower level Than the precedence of the equality operators.

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Relational and equality operators in C/C++ indeed evaluate to boolean (true/false) results. Option B is incorrect because equality operators associate left-to-right, not right-to-left. Option C is incorrect because relational operators associate left-to-right, not right-to-left. Option D is incorrect because relational operators have LOWER precedence than equality operators, not higher.