Assertion (A): In switch case, break statement avoids fall through.

ICSE Class 10 Computer Applications PYQ · 2025 Paper · Section A

1(xi)1 Mark · 2025 · Section A · 2025 Paper

Assertion (A): In switch case, break statement avoids fall through.

Reason (R): break statement helps to execute only one case at a time.

Show SolutionHide Solution↓

Both (A) and (R) are true and (R) is a correct explanation of (A).

Reason — In a switch case, the break statement stops the program from executing the next cases after a match is found. Without the break, the program would continue to run all the cases below the matched one (called fall through). Therefore, the break statement helps to execute only one case at a time.

← Previous questionNext question →

Browse the free Computer Applications sample bank