Question 7
Back to Exercise
Which is valid switch-expression syntax for "Saturday or Sunday"?
- A case SAT || SUN ->
- B case SAT, SUN -> Correct
- C case SAT: SUN ->
- D case (SAT, SUN):
Correct Answer: Option B
Labels are separated by commas.
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!