Test Index

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

© examsnet.com
Question : 93 of 102
Marks: +1, -0
Consider the given expression :
7<4 or 6>3 and not 10==10 or 17>4
Which of the following will be the correct output if the given expression is evaluated ?
[CBSE 2023 Compartment]
Solution:  
Concept:
Precedence: relational operators (<, >, ==) first, then not, then and, then or.
Explanation:
Step 1: 7<4 = False, 6>3 = True, 10==10 = True, 17>4 = True
Step 2: not True = False
Step 3: True and False = False
Step 4: False or False or True = True
Output:
True
Answer:
Option A (True)
© examsnet.com
Advertisements
Go to Question: