Examine the followingswitchstatement. What is needed to make a valid switchstatement?

switch
{
case 10:
   cout

A. thedefaultclause must be moved to the end
B. a statement block is needed after thecase 20:clause
C. a break statement is needed aftercase 40:
D. a selectorExpression is needed


Answer: D

Computer Science & Information Technology

You might also like to view...

Member function _________ can be used to set and reset format state.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Within a dialog box, the user can adjust a number of settings

Indicate whether the statement is true or false

Computer Science & Information Technology

A teardrop attack involves sending a forged packet to the victim

Indicate whether the statement is true or false.

Computer Science & Information Technology

The header of a two-page letter includes the ____.

A. recipient's full name, Page 2, and the date B. recipient's full name, the date, and Page 2 C. the sender's full name, Page 2, and the date D. the sender's full name, the date, and Page 2

Computer Science & Information Technology