Report Bug

Qus

What is the output?

x = 5
y = 10
print(x > 3 or y < 5 and x == 5)
Qus

निम्न code का output क्या होगा?

x = 5
y = 10
print(x > 3 or y < 5 and x == 5)


A. True
B. False
C. Error
D. None


Solution
A. True



Explanation
and is evaluated before or. x > 3 is already True, so the complete OR expression is True. <br><br>and की precedence or से अधिक है। x > 3 True है, इसलिए पूरी expression True होती है।
Latest Current Affairs 2026 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad