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 = 27, y = 3, z = 18
D) x = 37, y = 14, z = 4
Correct Answer:
Verified
Q26: What is the result of the following
Q27: If x has been declared an int,
Q28: Variables of the boolean data type are
Q29: To display the output on the next
Q30: What would be displayed as a result
Q32: This is a named storage location in
Q33: What will be the displayed when the
Q34: Which of the following is not a
Q35: Variables are classified according to their
A) value
B)
Q36: In the following Java statement what value
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