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 5, what will the value of x be after the switch statement executes?
A) 8
B) 6
C) 11
D) 5
E) 10
Correct Answer:

Verified
Correct Answer:
Verified
Q5: Control in a switch statement jumps to
Q6: The following code has a syntax error
Q16: A data verification loop is a loop
Q17: Show the output that would occur from
Q18: Given the following switch statement where x
Q19: Write a set of code that outputs
Q23: The do loop differs from the while
Q24: Given the following code, where x =
Q25: How many times will the System.out.println(*); statement
Q30: A switch statement must have a default