MCQ Answer

What happens when multiple if statements are used instead of if-elif?

What happens when multiple if statements are used instead of if-elif?

क्या होता है जब if-elif के स्थान पर मल्टीपल if स्टेटमेंट्स का यूज़ किया जाता है?
Topic : Operators Expressions and Python Statements

A. Only the first condition is checked. केवल फर्स्ट कंडीशन को चेक किया जाता है.

B. All conditions are checked, even if one is True. सभी कंडीशंस को चेक किया जाता है,यदि कोई सत्य हो।

C. It behaves the same as if-elif. यह if-elif जैसा ही बिहेव करता है।

D. It raises an error. यह एक एरर उत्पन्न करता है.




Correct Answer is :

B. All conditions are checked, even if one is True.



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