NIELIT O Level Exam

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

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

पायथन में नेस्टेड लूप के लिए निम्नलिखित में से कौन सा सत्य है?

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.



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