NIELIT O Level Exam

<p>What is the output?</p><pre>x = 5<br>y = 10<br>print(x &gt; 3 or y &lt; 5 and x == 5)</pre>

What is the output?

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


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

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

A. True

B. False

C. Error

D. None




Correct Answer is :

A. True



Explanation
and is evaluated before or. x > 3 is already True, so the complete OR expression is True.

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