Computer Science, asked by RahulNatarajan, 1 year ago

2. What will the output of the following code statements be? Integer x = 34.54, y = 20, z = -5 print (y > 50 AND z > 10 or x > 30)

Answers

Answered by Anonymous
4
integer x generates error because it is float value...
Answered by nihalpandey289
2

Answer:

1

Explanation:

Ignoring 34.54 as float now because its logical question and options does not have compiler error or run time error.

(20 > 50) and (-5 > 10) or (34.54 > 30)

 = False and False or True

 = False or True

 = True (1)

Similar questions