CBSE Class 11 Informatics Practices Question 13 of 36

Conditional and Looping Constructs — Question 13

Back to all questions
13
Question

Question 4(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.