Report Bug

Qus: <p>What is the output of the following?</p><pre>m=0<br>while m&lt;5:<br>&nbsp; &nbsp; m+=1<br>&nbsp; &nbsp; if m==3:<br>&nbsp; &nbsp; &nbsp; &nbsp; break<br>&nbsp; &nbsp; else: print(0)</pre><div><br></div>

Qus<p>निम्नलिखित का आउटपुट क्या है?</p><pre>m=0<br>while m&lt;5:<br>&nbsp; &nbsp; m+=1<br>&nbsp; &nbsp; if m==3:<br>&nbsp; &nbsp; &nbsp; &nbsp; break<br>&nbsp; &nbsp; else:<br>print(0)</pre>


A. 0 1 2 0
B. 0 1 2
C. 0 0 1 0 2
D. error


Solution
D. error



Explanation

hear the statement of else block is missing so it gives error

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