Test Index

Python Revision Tour Get it on Google PlayDownload on the App Store CBSE Board Videos

© examsnet.com
Question : 80 of 102
Marks: +1, -0
Consider the given expression :
5<10 and 12>7 or not 7>4
Which of the following will be the correct output, if the given expression is evaluated ?
[CBSE 2023 Set 4]
Solution:  
Concept:
Order of evaluation: relational operators first, then not, then and, then or.
Explanation:
5<10 = True, 12>7 = True, 7>4 = True
not 7>4 = False
True and True = True
True or False = True
NONE and NULL are not Python values (Python uses None).
Answer:
Option A (True)
© examsnet.com
Advertisements
Go to Question: