Solved

What Value Will Z Have If We Execute the Following

Question 57

Multiple Choice

What value will z have if we execute the following assignment statement?
Float z = 5 / 10;


A) z will equal 0.0
B) z will equal 0.5
C) z will equal 5.0
D) z will equal 0.05
E) none of the above, a run-time error arises because z is a float and 5 / 10 is an int

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions