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 their operands and return a boolean result (true or false, represented as 1 or 0). This is their fundamental purpose - to compare values and produce a truth value. The other options are incorrect because both relational and equality operators associate left-to-right, and equality operators have lower precedence than relational operators.