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) 5
B) 20
C) 25
D) 30
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q6: In Java, when a character is stored
Q14: What does the following code display? <br>int
Q18: A local variable's scope always ends at
Q27: What will be printed when the following
Q28: Because the && operator performs short-circuit evaluation,your
Q31: Enclosing a group of statements inside a
Q34: If str1 and str2 are both Strings,
Q36: A flag may have the values<br>A) 0
Q48: When two Strings are compared using the
Q50: What would be the value of bonus