Computer Science for IGCSE & O level - Algorithm Design And Problem Solving (Section 11 - No. 47)

What is the function of the 'ELSE' clause in an `IF...THEN...ELSE` structure?
To specify the condition being tested.
To define the actions to be taken when the condition is true.
To define the actions to be taken when the condition is false.
To end the `IF` structure.

Explanation

The ELSE clause defines the actions to be performed if the IF's condition is false.

Comments (0)

Advertisement