
loops

Quiz
•
Computers
•
Professional Development
•
Medium
KEERTHI BADUGU
Used 5+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Q1. What is the main purpose of the break statement in Python?
A. Skips the current iteration
B. Stops the loop entirely
C. Restarts the loop
D. Ignores the loop condition
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Q2. What is the main purpose of the continue statement in Python?
A. Ends the program
B. Skips the current iteration and moves to the next
C. Stops the loop entirely
D. Starts the loop again from the beginning
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Q3. What will be the output?
for i in range(5):
if i == 2:
break
print(i)
A. 0 1
B. 0 1 2
C. 2 3 4
D. 0 1 2 3 4
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Q4. What will be the output?
for i in range(5):
if i == 2:
continue
print(i)
A. 0 1 3 4
B. 0 1 2 3 4
C. 2 3 4
D. 0 1 2 4
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Q5. Which of the following loops can use break and continue?
A. for loop only
B. while loop only
C. Both for and while loops
D. Only nested loops
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Q6. What will the following code print?
i = 1
while i <= 5:
if i == 3:
break
print(i) i += 1
A. 1 2 3
B. 1 2
C. 3 4 5
D. 1 2 4 5
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Q7. What will the following code print?
i = 1
while i <= 5:
i += 1
if i == 3:
continue
print(i)
A. 1 2 4 5 6
B. 2 4 5 6
C. 3 4 5
D. 1 3 5
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
C Code Master

Quiz
•
Professional Development
15 questions
Python Class 1

Quiz
•
Professional Development
10 questions
Introduction to programming

Quiz
•
Professional Development
12 questions
PREP 2023 CS Primer Review 1

Quiz
•
Professional Development
10 questions
Ցիկլային ալգորիթմներ, ցիկլի օպերատոր Python ծրագրավորման լեզվում

Quiz
•
Professional Development
17 questions
Python traceback

Quiz
•
Professional Development
10 questions
C++Quiz#1

Quiz
•
Professional Development
20 questions
Module 1 Exercise (Python)

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Computers
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
5 questions
Setting goals for the year

Quiz
•
Professional Development
14 questions
2019 Logos

Quiz
•
Professional Development
6 questions
GUM Chart Scavenger Hunt

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
20 questions
Employability Skills

Quiz
•
Professional Development