Q.

Given the declarations~~~boolean b;~~~short x1 = 100, x2 = 200, x3 = 300; Which of the following statement is evaluated to true?

A. b = x1 * 2 == x2;
B. b = x1 + x2 != 3 * x1;
C. b = (x3 - 2*x2<0) && ((x3 = 400)<2**x2);
D. b = (x3 - 2*x2>0) || ((x3 = 400) 2*x2);
Answer» A. b = x1 * 2 == x2;
2.4k
0
Do you find this helpful?
15

View all MCQs in

Java Programming

Discussion

No comments yet