Multiple Choice
What is the output of the following code? char lastInitial = 'S';
switch (lastInitial)
{
case 'A':
Cout amanda "section 1" amandaendl;
break;
case 'B':
cout << "section 2" << endl;
break;
case 'C':
cout << "section 3" << endl;
break;
case 'D':
cout << "section 4" << endl;
break;
default:
cout << "section 5" << endl;
}
A) section 2
B) section 3
C) section 4
D) section 5
Correct Answer:

Verified
Correct Answer:
Verified
Q1: You can disable assert statements by using
Q3: Consider the following statements.<br>int score;<br>string grade;<br>if (score
Q7: In C++, both ! and != are
Q8: Suppose x is 5 and y is
Q11: What is the output of the following
Q21: You can use either a(n) _ or
Q23: The expression (x >= 0 && x
Q27: The operators !, &&, and || are
Q32: Which of the following will cause a
Q33: Suppose P and Q are logical expressions.The