-
Hajipur, Bihar, 844101
Hajipur, Bihar, 844101
Difficulty Level: medium
Q1: What is the main purpose of loop control statements in Python? (1 points)
Q2: What does the break statement do? (1 points)
Q3: What is the purpose of the continue statement? (1 points)
Q4: What does the pass statement do inside a loop? (1 points)
Q5: What will this code output? (1 points)
for i in range(5):
if i == 3:
break
print(i)
else:
print("Completed")
Q6: What is the output of this code? (1 points)
for i in range(5):
if i == 2:
continue
print(i)
Q7: How can you stop an infinite loop in Python using code? (1 points)
Q8: What happens if both break and continue appear in the same loop? (1 points)
Q9: What will happen? (1 points)
count = 0
while count < 5:
print(count)
count += 1
if count == 3:
break
else:
print("Finished")
Q10: Which of the following can be used as a placeholder inside a loop? (1 points)
Q11: What is the output of this code? (1 points)
for i in range(1, 6):
if i == 4:
break
print(i, end=" ")
else:
print("Done")
Q12: What is the output? (1 points)
for i in range(1, 6):
if i == 3:
continue
print(i, end=" ")
else:
print("Finished")
Q13: What will happen with this code? (1 points)
for i in range(3):
pass
print("Loop executed")
Q14: What is the output? (1 points)
for i in range(5):
if i < 3:
continue
print(i)
Q15: What will happen if you use a break inside a nested loop? (1 points)
Welcome to the Python Loop Control Quiz.
This quiz is designed to test your understanding of break, continue and pass statements, and how they influence loop execution. Please read the instructions before starting.
Quiz Format
Total Questions: 15
Difficulty Level: Medium
Question Type: Multiple Choice
Each question has one correct answer.
Timing
Total time limit: 10 minutes
Manage your time and move through each question with focus.
Scoring
Each correct answer = +1 point
No negative marking
Maximum Score = 15 points
How to Play
Read every question carefully.
Pay close attention to how loop control statements affect the flow.
Select the answer you believe is correct.
After moving to the next question, you cannot go back.
Rules
Do not refresh or close the quiz window.
Avoid using external resources or online help.
Keep an eye on the timer while answering.
Before You Start
Learn loop control statements here: Python Loop Control Tutorial
After Submission
Your score will appear instantly.
You can review correct answers to understand and improve.
