C : Conditional Statements

कीवर्ड ब्रेक का उपयोग केवल भीतर नहीं किया जा सकता है , The keyword break cannot be simply used within

कीवर्ड ब्रेक का उपयोग केवल भीतर नहीं किया जा सकता है

The keyword break cannot be simply used within
A. do-while

B. if-else

C. for

D. while



Correct Answer :

B. if-else



Explanation

A break statement terminates execution of the smallest enclosing switch or iteration statement. break will not break out of an if clause, but the nearest loop or switch clause. Also, an if clause is not called a "loop" because it never repeats its contents. The break statement has no use in decison making statements.

CCC Online Test , CCC MCQ Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) O Level NIELIT Study material and Quiz career counselling in allahabad Website development Company in Allahabad