Important MCQ

In a ladder, how many blocks execute?

Q.In a ladder, how many blocks execute?

A) None
B) Only one
C) Two
D) All
Correct Answer:
Option B
Detailed Explanation:
B) Only one is correct. An else-if ladder tests multiple conditions in order. Once one condition is true, its block runs and the remaining branches are skipped; the final else handles no match.