What is a loop used for?
MP3: Practice Test 1

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Angelito Villalon
Used 2+ times
FREE Resource
19 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To repeat a block of code multiple times
To store data
To define a function
To handle errors
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A While Loop runs until ________________.
a specified condition is false.
a specified condition is true.
the loop has iterated 10 times.
the program ends.
3.
OPEN ENDED QUESTION
3 mins • 1 pt
Define the following: a. Loop control variable b. Count Variable c. Initialize
Evaluate responses using AI:
OFF
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the two ways of ending a loop?
Using a break statement and reaching the end of the loop block
Using a continue statement and reaching the end of the loop block
Using a return statement and reaching the end of the loop block
Using a goto statement and reaching the end of the loop block
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
For questions 5-7, what is output by each of the following loops? x = 10 while (x > 5): x = x - 1 print (x)
5, 6, 7, 8, 9
6, 7, 8, 9, 10
9, 8, 7, 6, 5
10, 9, 8, 7, 6
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following loop? x = 1 while (x < 5): print (x) x = x + 2
1 3
1 2 3 4
1 2 3 4 5
1 3 5
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? ``` x = 1 while (x < 12): print (x) x = x + 3 ```
1 4 7 10
1 2 3 4 5 6 7 8 9 10 11
1 3 6 9
1 4 7 10 13
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
Control Statements in Python

Quiz
•
11th Grade
15 questions
Intro to Java Loops

Quiz
•
9th - 12th Grade
18 questions
FOR and WHILE loop in Python

Quiz
•
9th - 12th Grade
15 questions
PCEP Section 2B: Perform different types of iterations

Quiz
•
12th Grade
15 questions
Computer science paper 2

Quiz
•
10th Grade
18 questions
Foundations of Programming

Quiz
•
9th - 10th Grade
22 questions
for loop

Quiz
•
9th Grade
20 questions
Python year 9

Quiz
•
8th - 11th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
15 questions
June Review Quiz

Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
Discover more resources for Computers
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
10 questions
Right Triangles: Pythagorean Theorem and Trig

Quiz
•
11th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade
24 questions
LSO - Virus, Bacteria, Classification - sol review 2025

Quiz
•
9th Grade
65 questions
MegaQuiz v2 2025

Quiz
•
9th - 12th Grade