What will be printed by the following statement if the value of the select is ‘Q’:
switch (select)
{
case ‘Q’ : case ‘q’:
cout << “quit ”;
case ‘R’: case ‘r’:
cout << “redo ”;
break;
case ‘P’: case ‘p’:
cout << “play ”;
default:
cout << “other ”;
}
a) quit
b) quit redo
c) quit redo play
d) other
b) quit redo
Computer Science & Information Technology
You might also like to view...
A(n) ________ cable carries all audio and video information from devices to a connected TV
A) HDMI B) RJ11 C) S component D) Ethernet
Computer Science & Information Technology
Piggybackers are those who ________
A) send spam e-mail messages B) infect networks with worms C) connect to a wireless network without the owner's permission D) launch a denial-of-service attack against your network
Computer Science & Information Technology