Report Bug

Qus: <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>

Qus<p>निम्न code का output क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">x = 5<br>y = 10<br>print(x &gt; 3 or y &lt; 5 and x == 5)</pre>


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 , CCC MCQ Python Coding Tutorials Best Computer Training Institute in Prayagraj (Allahabad) O Level NIELIT Study material and Quiz Website development Company in Allahabad