What value is assigned to the half variable?

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


```

a. 70
b. 17.5
c. 18
d. 17


d. 17

Computer Science & Information Technology

You might also like to view...

Any blanks or parentheses in a row or column label will be changed to _____ in defined names.

A. ampersands B. underscore characters C. hyphens D. dashes

Computer Science & Information Technology

To find all first names that are either Tom or Tim, you would use the____ wildcard character.

A. asterisk (*) B. exclamation point (!) C. tilde (˜) D. question mark (?)

Computer Science & Information Technology

Once an object is instantiated and the arguments are passed, the constructor cannot use the values in the arguments to set the values in variables within the class.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

The only way to be completely sure that a Web site uses frames is to apply the frames filter.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology