What is the output of the following code? char lastInitial = 'A';
Switch (lastInitial)
{
Case 'A':
Cout << "section 1" << endl;
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 1
B) section 2
C) section 3
D) section 5
Correct Answer:
Verified
Q25: When one control statement is located within
Q28: To develop a program,you can use an
Q29: What is the value of x after
Q29: What is the output of the
Q34: The symbol > is a(n)_ operator.
Q35: You can disable assert statements by using
Q36: What is the output of the following
Q37: What is the output of the
Q38: A _ operator allows you to make
Q40: For a program to use the assert
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents