LearnFrenzy
Sign in Take a free test

Control Instructions · Control Instructions MCQ · Question 6

Missing break in a switch case – what happens? Answer, explanation & discussion

  • MCQ
  • Easy
  • 0 comments
  • Answer explained
  • Moderated community
Question 6 Back to Exercise

A matching case has no break. What happens after its statements run?

  • A The switch ends
  • B Execution continues into the next case's statements (fall-through) Correct
  • C The default case runs
  • D A compile error
Correct Answer: Option B

Case labels are only entry points. Without break control falls through to whatever follows, until a break or the end of the switch.

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!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links