NIELIT O Level Exam

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

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

पायथन लूप में अन्य ब्लॉक का पर्पज क्या है?

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.



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