CBSE Class 11 Computer Science Question 53 of 80

Conditional and Looping Constructs — Question 23

Back to all questions
23
Question

Question 10(i)

Give the output of the following:

print (10 != 9 and 20 >= 20) 
Answer
Output
True
Explanation

The expression 10 != 9 and 20 >= 20 evaluates to True because both conditions separated by the and operator are true. Specifically, 10 != 9 is true because 10 is not equal to 9, and 20 >= 20 is true because 20 is equal to 20.