CBSE Class 11 Computer Science Question 24 of 39

Conditional and Looping Constructs — Question 24

Back to all questions
24
Question

Question 10(j)

Give the output of the following:

print(5 % 10 + 10 < 50 and 29 <= 29)
Answer
Output
True
Explanation

In the expression 5 % 10 + 10 < 50 and 29 <= 29, according to operator precedence, 5 % 10 calculates to 5, then 5 + 10 equals 15. Next, 15 < 50 evaluates to True. Separately, 29 <= 29 also evaluates to True. The and operator then combines these results. Since both conditions are True, the and operator yields True, which is printed.

Get the Bright Tutorials app Stuck on a question? Ask Bright Buddy — your AI tutor — for step-by-step help in the app.