Computer Science for IGCSE & O level - Programming (Section 14 - No. 33)

What happens if there is a nesting of selection statements (IF-ELSE inside another IF-ELSE)?
It is illegal and will lead to an error.
The program will run but may lead to difficult to read code.
It can create more complex decision-making logic.
It is less efficient than a single IF-ELSE statement.

Explanation

Nesting allows you to build more intricate decision-making structures.

Comments (0)

Advertisement