NIELIT O Level Exam

<p>What will the following code output?</p><pre>x=0<br>if x:<br><span style="white-space: normal;"><span style="white-space:pre"> </span>print("True")<br></span>else:<br><span style="white-space: normal;"><span style="white-space:pre"> </span>print("False")</span></pre>

What will the following code output?

x=0
if x:
	print("True")
else:
	print("False")


निम्नलिखित कोड आउटपुट क्या होगा?

A. True

B. False

C. None

D. Error




Correct Answer is :

B. False



Explanation

0 is considered False in Python.

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