Multiple choice

The block IF statement uses relational operators to compare _______.

  1. constants, variables, and arithmetic expressions

  2. relational symbols and characters only

  3. constants and relational operators

  4. characters and arithmetic expressions only

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

Block IF statements evaluate conditions using relational operators (like =, <, >, <=, >=) to compare values. These values can be constants (like 5 or "hello"), variables (like x or name$), or arithmetic expressions (like x + y or score * 2). The IF statement then branches based on whether the condition is true or false.