Important MCQ

An else-if ladder is used to

Q.An else-if ladder is used to

A) read input
B) repeat code
C) test multiple conditions
D) declare variables
Correct Answer:
Option C
Detailed Explanation:
C) test multiple conditions 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.