Multiple choice

Which of the following statements in switch case is optional and, if not present, no action takes place if all matches fail?

  1. Case statement

  2. Default statement

  3. Break statement

  4. None of these

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

The default statement is optional and, if it is missing or not present, no action takes place if all matches fail.