Report Bug

Qus

What is the output of the following?

m=0
while m<5:
    m+=1
    if m==3:
        break
    else:
        print(0)
Qus

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

m=0
while m<5:
    m+=1
    if m==3:
        break
    else:
print(0)


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

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