ICSE Class 10 Computer Applications Question 2 of 30

Solved Sample Paper 3 — Question 2

Back to all questions
2
Question

Question 1(ii)

Which of the following statements involves a fall through?

  1. if-else
  2. for loop
  3. if-else-if
  4. switch
Answer

switch

Reason — Omitting break statement leads to program execution continuing into the next case and onwards till a break statement is encountered or end of switch is reached.