Which of the following expressions will yield 0.5?

a. 1 / 2
b. 1.0 / 2
c. (double) (1 / 2)
d. (double) 1 / 2
e. 1 / 2.0


bde 1 / 2 is an integer division, which results in 0.

Computer Science & Information Technology

You might also like to view...

In Active Directory, which partition holds general information about the Active Directory forest?

A. application B. schema C. configuration D. domain

Computer Science & Information Technology

Two options on the AutoFit button on the Table Tools Layout tab are AutoFit Contents and AutoFit Window

Indicate whether the statement is true or false

Computer Science & Information Technology

Digits, letters and special symbols are referred to as ______.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

If cell B7 contains a value that is greater than 20, and "ORDER" will be displayed when the logical test is TRUE, which of the following contains the correct IF function syntax?

A) =IF(B7<20, "ORDER", "OK") B) =IF(B7<20, "OK", "ORDER") C) =IF(B7>20, "ORDER", "OK") D) =IF(B7>20, "OK", "ORDER")

Computer Science & Information Technology