CBSE Class 11 Informatics Practices Question 37 of 102

Python Programming Fundamentals — Question 14

Back to all questions
14
Question

Question 14

What is the result of this statement:

10>5 and 7>12 or not 18>3
  1. 10
  2. True
  3. False
  4. None
Answer

False

Reason — The expression evaluates as follows: 10 > 5 is True because 10 is greater than 5. 7 > 12 is False because 7 is not greater than 12. 18 > 3 is True because 18 is greater than 3, and not True results in False. Combining these using Python's operator precedence, 10 > 5 and 7 > 12 evaluates to False (True and False). Then, False or not True evaluates to False (False or False). Therefore, the entire expression 10 > 5 and 7 > 12 or not 18 > 3 ultimately evaluates to False.