What will be displayed after the following statements have been executed?
Int x = 15, y = 20, z = 32;
X += 12;
Y /= 6;
Z -= 14;
System.out.println("x = " + x +
", y = " + y +
", z = " + z) ;
A) x = 27, y = 3.333, z = 18
B) x = 27, y = 2, z = 18
C) x = 37, y = -14, z = 4
D) x = 27, y = 3, z = 18
Correct Answer:
Verified
Q17: If you use a flag
Q17: The System.out.printf method allows you to format
Q20: Named constants are initialized with a value
Q24: Which Scanner class method reads a String?
A)
Q25: If you wish to use the System.out.printf
Q33: The primitive data types only allow a(n)
Q33: A(n) _ is a dialog box that
Q35: Which of the following statements correctly creates
Q41: Both character literals and string literals can
Q44: A variable's scope is the part of
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents