MCQ Answer

What is the purpose of the else block in a Python loop?

What is the purpose of the else block in a Python loop?

पायथन लूप में अन्य ब्लॉक का पर्पज क्या है?
Topic : Operators Expressions and Python Statements

A. To execute when the loop is terminated using break. ब्रेक का यूज़ करके लूप टर्मिनेट होने पर एक्सक्यूट करना।

B. To execute after the loop completes without encountering a break. लूप कम्पलीट होने के बाद बिना किसी रुकावट के एक्सक्यूट करना।

C. To restart the loop. लूप को रीस्टार्ट करने के लिए

D. To execute before the loop starts लूप रीस्टार्ट होने से पहले एक्सक्यूट करना




Correct Answer is :

B. To execute after the loop completes without encountering a break.



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