CBSE Class 12 Computer Science Question 1 of 42

Solved 2024 Sample Question Paper CBSE Class 12 Computer Science (083) — Question 1

Back to all questions
1
Question

Question 1

State True or False:

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

Answer

False

Reason — In a Python program, if a break statement is given in a nested loop, it only terminates the execution of the innermost loop where the break statement is encountered. It does not affect the outer loops or any remaining loops in the nested structure.