Which of the following statements about the switch statement is true?

A. Multiple case labels can be associated with one series of actions.
B. The case label values can be characters, integrals, or reals.
C. If no default label is provided, the results are unpredictable.
D. The switch expression must be a unary expression.
E. The switch statement is terminated by a semicolon.


Answer: A

Computer Science & Information Technology

You might also like to view...

To allocate storage for its elements, an array-based list such as ArrayList uses

A) linked allocation B) contiguous allocation C) capacity allocation D) fixed size allocation

Computer Science & Information Technology

Define Blocking behavior.

What will be an ideal response?

Computer Science & Information Technology

Destructive partitioning is used to delete partitions, however all data associated with these partitions will remain intact

Indicate whether the statement is true or false

Computer Science & Information Technology

Can you rotate objects with the Move tool?

Quiz Questions What will be an ideal response?

Computer Science & Information Technology