Multiple choice technology mainframe

If an IF statement is true, what’s the first thing it does?

  1. Exits the statement

  2. Executes the function

  3. Exits the Program

  4. Executes the If statement again

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

When an IF condition evaluates to true, the statements within the THEN branch (the code block associated with the true condition) are executed as part of normal program flow.