Multiple choice html

The default statement of a switch is always executed.

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The default case in a switch statement only executes when NO other case matches the expression being evaluated. It's an optional catch-all that runs if the switch value doesn't equal any of the defined case values. If a case matches and executes (with or without a break), the default is skipped.