Computer Science for IGCSE & O level - Programming (Section 11 - No. 13)

In nested IF-ELSE statements, what is the relationship between the outer and inner blocks of code?
The inner block executes independently of the outer block.
The inner block executes only if the outer block's condition is met.
The outer block's execution depends on the condition of the inner block.
There is no relationship between the blocks.

Explanation

The inner block's execution is contingent on the outer condition being satisfied.

Comments (0)

Advertisement