Multiple Choice
What is the output of the following C++ code? int x = 55;
Int y = 5;
Switch (x % 7)
{
Case 0:
Case 1:
Y++;
Case 2:
Case 3:
Y = y + 2;
Case 4:
Break;
Case 5:
Case 6:
Y = y - 3;
}
Cout << y << endl;
A) 2
B) 5
C) 8
D) 10
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q1: You can disable assert statements by using
Q2: The result of a logical expression cannot
Q4: The value of the expression 6 <
Q5: Which of the following operators has the
Q14: What does <= mean?<br>A) less than<br>B) greater
Q25: Putting _ in front of a logical
Q26: Assume you have three int variables: x
Q28: In C++,!,&&,and || are called relational operators.
Q29: The operators != and == have the
Q37: Suppose found = true and num =