30. Given the declarations
boolean b;
short x1 = 100, x2 = 200, X3 = 300 ;
Which of the following statements are evaluated to true ?
(a) b = x1 * 2 == x2 ;
(b) b = x1 + x2 != 3 * x1 ;
(c) b = (x3 - 2* x2 <0)|| ((x3 = 400) < Math.pow (2, X2);
(d) b = (x3 - 2 * x2 > 0) || ((x3 = 400)) * 2 * x2);
.
Answers
Answered by
11
Answer:
b=x1*2==x2;
b = x1 + x2 != 3 * x1;
b= (x3 -2 * x2 <0 || ((x3 = 400) < 2 ** x2);
b= (x3 -2 * x2 > 0) || ((x3= 400)) 2* x2);
Ans.
2. b = x1 + x2 != 3 * x1;
Similar questions