Multiple choice

A relational operator

  1. assigns one operand to another

  2. compares two operands

  3. logically combines two operands

  4. gets a numeric result

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

Relational operators (such as <, >, ==, !=) are used to compare two operands and return a boolean result (true or false) based on the relationship between them.