Important MCQ

The default case executes when

Q.The default case executes when

A) no case matches
B) break is missing
C) the first case matches
D) every case matches
Correct Answer:
Option A
Detailed Explanation:
A) no case matches is correct. switch performs multi-way selection using integral or enum-like values such as int and char. Case labels are constants; break exits the switch, while missing break can cause fall-through.