English

“In a Python program, if a break statement is given in a nested loop, it terminates the execution of all loops in one go.” - Computer Science (Python)

Advertisements
Advertisements

Question

“In a Python program, if a break statement is given in a nested loop, it terminates the execution of all loops in one go.”

Options

  • True

  • False

MCQ
True or False

Solution

This Statement is False.

Explanation:

The break statement breaks the loop immediately and exits it. It doesn't always end loops.

shaalaa.com
Handling Exceptions
  Is there an error in this question or solution?
2023-2024 (March) Board Sample Paper
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×