Multiple Choice
What will be the values of x and y as a result of the following code? int x = 12, y = 5;
X += y--;
A) x = 12, y = 5
B) x = 16, y = 4
C) x = 17, y = 5
D) x = 17, y = 4
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q3: When you open a file with the
Q11: You can use this method to determine
Q13: The do-while loop is a pre-test loop.
Q14: In the for loop, the control variable
Q15: If a loop does not contain within
Q17: Each repetition of a loop is known
Q18: How many times will the following for
Q19: In the following code, what values could
Q21: Assuming that inputFile references a Scanner object
Q24: The do-while loop must be terminated with