Solved

What Is the Value of Z After the Following Assignment

Question 32

Multiple Choice

What is the value of z after the following assignment statement is executed? float z = 5/10;


A) 0.0
B) 0.5
C) 5.0
D) 0.05
E) None of these; a run-time error will occur 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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents