Solved

Please Examine the Following Code Sample: Int Distance; // Declare

Question 140

Multiple Choice

Please examine the following code sample: int distance; // Declare distance as an int
Double half; // Declare half as a double
Distance = 35; // Assign 35 to distance
Half = distance / 2; // Calculate half the distance
What value is assigned to the half variable?


A) 70
B) 17.5
C) 18
D) 17

Correct Answer:

verifed

Verified

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

Related Questions