Multiple choice technology programming languages

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 program immediately branch-executes the block of statements nested under the IF statement. Exiting the statement or program are incorrect because they bypass or terminate normal execution.