CBSE Class 11 Computer Science
Question 140 of 173
Data Handling — Question 29
Back to all questions 29
Question Question 19a
What will be the output produced?
x, y, z = True, False, False
a = x or (y and z)
b = (x or y) and z
print(a, b)Answer
Output
True False
Explanation
- x or (y and z)
⇒ True or (False and False)
⇒ True - (x or y) and z
⇒ (True or False) and False
⇒ True and False
⇒ False