Knowledge check

Completed

Check your knowledge

1.

What is the purpose of a default case in a switch statement?

2.

What happens if a break statement (or alternative keyword that prevents "fall-through") is omitted in a switch case?