MCQ Answer

<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")


निम्नलिखित कोड आउटपुट क्या होगा?
Topic : Operators Expressions and Python Statements

A. True

B. False

C. None

D. Error




Correct Answer is :

B. False



Explanation

0 is considered False in Python.

Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Best Website and Software Company in Allahabad