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
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).
Within a dialog box, the user can adjust a number of settings
Indicate whether the statement is true or false
A teardrop attack involves sending a forged packet to the victim
Indicate whether the statement is true or false.
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