MCQ Answer

What is the purpose of the elif statement in Python?

What is the purpose of the elif statement in Python?

पायथन में एलिफ स्टेटमेंट का पर्पज क्या है?
Topic : Operators Expressions and Python Statements

A. To create an infinite loop. एक इन्फनिट लूप क्रिएट करने के लिए.

B. To check additional conditions when the first if condition is False. एडिशनल कंडीशनल्स को चेक करने के लिए जब फर्स्ट कंडीशन गलत हो।

C. To end the if block. if ब्लॉक को ख़त्म करने के लिए.

D. To execute code unconditionally. कोड को अनकंडिशनली एक्सक्यूट करना।




Correct Answer is :

B. To check additional conditions when the first if condition is False.



Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2025 Python Programming Tutorials 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 Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz