Which is true about the switch statement?

Which is true about the switch statement?
A. Its expression can evaluate to a collection of values.
B. The break statement, at the end of each case block, is optional.
C. Its case label literals can be changed at runtime.
D. It must contain the default section.

Download Printable PDF. VALID exam to help you PASS.

3 thoughts on “Which is true about the switch statement?

  1. Option B is correct as if the break statement is present it will come out of the switch block else, it will continue till the end of the switch section

  2. B. but if a break isn’t present, the program will execute every statement beneath it unless it hits a break or finishes the switch

    1
    1

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.