What will be the value of z as a result of executing the following code? int x = 5, y = 28;
Float z;
Z = (float) (y / x) ;
A) 5.60
B) 5.6
C) 3.0
D) 5.0
Correct Answer:
Verified
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
Q38: What will be the value of z
Q39: To print "Hello, world" on the monitor,
Q40: Given the declaration double r;, which of
Q41: Both character literals and string literals can
Q42: In Java the variable named total is
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