
Python Loops Quiz

Quiz
•
Education
•
1st Grade
•
Easy
Alexander Barus
Used 1+ times
FREE Resource
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a loop statement used for?
To stop the program
To repeat code
To create variables
To print text
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does a while loop do?
Repeats code while a condition is true
Runs code only once
Stops the program
Creates a new variable
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of a counter variable in a while loop?
To print the result
To create a new loop
To stop the loop immediately
To keep track of how many times the loop runs
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does a for loop require?
A list of variables
A single number
A range of numbers
A string of text
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How does a for loop increment the counter?
Automatically by 1
By 2 each time
Manually by the user
It does not increment
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an infinite loop?
A loop that never ends
A loop that runs once
A loop that stops immediately
A loop that runs in reverse
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What do we use to stop an infinite loop?
A break statement
A continue statement
A return statement
A print statement
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the modulo operator do?
Finds the remainder of a division
Adds two numbers
Multiplies two numbers
Subtracts two numbers
9.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if the condition in a while loop is always true?
The loop will run in reverse
The loop will stop immediately
The loop will run once
The loop will never stop
Similar Resources on Wayground
10 questions
Traffic Rules

Quiz
•
KG - 5th Grade
10 questions
Grade 2 - Pollution and Climate Change

Quiz
•
1st - 2nd Grade
10 questions
Scratch Platformer L5

Quiz
•
1st - 5th Grade
14 questions
2D Games After Lesson Quiz

Quiz
•
1st - 5th Grade
11 questions
Memoria

Quiz
•
1st Grade
10 questions
Infinitive vs Gerund

Quiz
•
1st - 4th Grade
10 questions
Food Safety Hazards

Quiz
•
1st - 3rd Grade
10 questions
La animación digital

Quiz
•
1st - 5th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade