Computer Science for IGCSE & O level - Programming (Section 1 - No. 42)

What is the purpose of an `ELSE` statement when used with an `IF` statement?
To execute a block of code if the `IF` condition is false.
To start a loop.
To declare a variable.
To terminate a procedure.

Explanation

An `ELSE` block contains the code to run if the `IF` condition is not met (is false).

Comments (0)

Advertisement