题目内容

What is x after the following statements?int x = 2;int y = 1;x *= y + 1;

A. x is 2.
B. x is 4.
C. x is 1.
D. x is 3.

查看答案
更多问题

Math.pow(4, 1.0 / 2) returns __________.

A.2
B.1.0
C.0
D.2.0

Which of the following statements are the same? (A) x -= x + 4 (B) x = x + 4 – x (C) x = x - (x + 4)

A.(A), (B), and (C) are the same
B.(B) and (C) are the same
C.(A) and (C) are the same
D.(A) and (B) are the same

Which of the following assignment statements is incorrect?

A.i = j = k = 1;
B.i = 1; j = 1; k = 1;
C.i = 1 = j = 1 = k = 1;

You can always assign a value of long type to a variable of int type without loss of precision.

A.true
B.false

答案查题题库