Multiple Choice
What is the output of the following code fragment if the input value is 4? int num;
Int alpha = 10;
Cin >> num;
Switch (num)
{
Case 3:
Alpha++;
Break;
Case 4:
Case 6:
Alpha = alpha + 3;
Case 8:
Alpha = alpha + 4;
Break;
Default:
Alpha = alpha + 5;
}
Cout << alpha << endl;
A) 13
B) 14
C) 17
D) 22
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q8: The conditional operator ?: takes _ arguments.<br>A)
Q8: In a _ control structure, the computer
Q8: Suppose x is 5 and y is
Q11: What is the output of the following
Q12: Once an input stream enters a(n) _
Q13: In C++,the logical operator AND is represented
Q19: Which of the following is the "not
Q23: The expression (x >= 0 && x
Q24: A control structure alters the normal sequential
Q34: For a program to use the assert