Multiple Choice
What would be the value of x after the following statements were executed?
Int x = 10;
Switch (x)
{
Case 10:
X += 15;
Case 12:
X -= 5;
Break;
Default:
X *= 3;
}
A) 30
B) 20
C) 25
D) 5
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q6: When two strings are compared using the
Q7: In an if-else statement, if the boolean
Q8: What would be the value of discountRate
Q10: What would be the value of discountRate
Q13: What will be displayed after the following
Q14: Which of the following statements determines whether
Q15: A flag may have the values<br>A) defined
Q22: The boolean expression in an if statement
Q40: Java requires that the boolean expression being
Q48: If the expression on the left side