Solved

What Is the Output of the Following Code? Char LastInitial \quad

Question 4

Multiple Choice

What is the output of the following code? char lastInitial = 'A';
Switch (lastInitial)
{
Case 'A':
\quad Cout << "section 1" << endl;
\quad Break;
Case 'B':
\quad Cout << "section 2" << endl;
\quad Break;
Case 'C':
\quad Cout << "section 3" << endl;
\quad Break;
Case 'D':
\quad Cout << "section 4" << endl;
\quad Break;
Default:
\quad Cout << "section 5" << endl;
}


A) section 1
B) section 2
C) section 3
D) section 5

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions