Multiple Choice
Given the following switch statement where x is an int, answer the questions below
switch (x)
{
case 3 : x += 1;
case 4 : x += 2;
case 5 : x += 3;
case 6 : x++;
case 7 : x += 2;
case 8 : x--;
case 9 : x++
}
-If x is currently equal to 3, what will the value of x be after the switch statement executes?
A) 5
B) 6
C) 11
D) 10
E) 12
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q5: Control in a switch statement jumps to
Q6: The following code has a syntax error
Q12: The following for loop is odd in
Q13: You might choose to use a switch
Q14: Write some code that inputs a set
Q16: A data verification loop is a loop
Q17: Show the output that would occur from
Q19: Write a set of code that outputs
Q21: Given the following switch statement where x
Q23: The do loop differs from the while