Computer Science for IGCSE & O level - Programming (Section 15 - No. 36)

If the condition in the IF statement evaluates to *false*, which block of code, if any, will be executed?
The THEN block
The IF block
The ELSE block (if present)
The program will terminate.

Explanation

If the IF condition is false, the ELSE block (if it exists) is run.

Comments (0)

Advertisement