MCQ Answer

Which of the following is true for nested loops in Python?

Which of the following is true for nested loops in Python?

पायथन में नेस्टेड लूप के लिए निम्नलिखित में से कौन सा सत्य है?
Topic : Operators Expressions and Python Statements

A. The outer loop must run fewer times than the inner loop. आउटर लूप को इनर लूप की तुलना में कम बार रन करना चाहिए।

B. Only for loops can be nested. केवल लूप के लिए नेस्ट किया जा सकता है।

C. Both for and while loops can be nested. for और while दोनों लूप को नेस्ट किया जा सकता है।

D. The inner loop runs only once for each iteration of the outer loop. इनर लूप आउटर लूप के प्रत्येक इट्रेशन के लिए केवल एक बार रन करता है।




Correct Answer is :

C. Both for and while loops can be nested.



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