Switches Flashcards
1
Q
What is the primary use case for switches?
A
comparison of one value to multiple values
2
Q
Does the default case have to be at the bottom of the switch statement?
A
Yes
3
Q
What happens if there is no break statement between cases?
A
every code in each code block will be executed