1.

Evaluate the following expressions:a) 6 * 3 + 4**2 // 5 – 8b) 10 > 5 and 7 > 12 or not 18 > 3

Answer»

(a) 6 * 3 + 4 ** 2//5 - 8

= (6 * 3) + (4 ** 2//5) - 8

= 18 + 3 - 8

= 21 - 8

= 13

(b) False

10 > 5 and 7 > 12 or not 18 > 3

10 > 5 = True

7 > 12 = False

18 > 13  = True

Now, T AND F or NOT True

T AND F = F, NOT True = F

Then, F or F = F



Discussion

No Comment Found

Related InterviewSolutions