题目内容

If you attempt to add an int, a byte, a long, and a float, the result will be a __________ value.

A. long
B. int
C. float
D. double

查看答案
更多问题

To assign a double variable d to an int variable x, you write

A. x = d;
B. x = (float)d;
C. x = (int)d;
D. x = (long)d

The expression (int)(76.0252175 * 100) / 100 evaluates to _________.

A. 76.0252175
B. 76.02
C. 76
D. 76.03

Which of the following expression results in 45.37?

A. (int)(45.378 * 100 / 100)
B. (int)(45.378 * 100) / 100
C. (int)(45.378) * 100 / 100.0
D. (int)(45.378 * 100) / 100.0

4.12题一直到4.18题

答案查题题库