What is a loop used for?
Edhesive Python Unit 4: Test Review

Quiz
•
Computers
•
10th - 11th Grade
•
Medium
Debra Haghighat
Used 198+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To repeat a function
Test if a condition false
To repeat code.
Help write python questions
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A While Loop runs until
To repeat code.
The test condition is false____
_The test condition is true____
To set the value of a variable before a loop
3.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Loop control variable
Variable used to end the loop.
Variable used to count how many times something happens.
To set the value of a variable before a loop.
4.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
What are the two ways of ending a loop?
User input
elif
count done
Count variable
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Write a loop to print the numbers: 1, 2, 3, …20
c = 1 while (c <= 21): print (c) (c = c + 1 )
c = 0 while (c <= 21): print (c) c = c + 1
c = 1 while (c <= 21): print (c) c = c + 1
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Write a loop to print the numbers: 30, 31, 32, ….45. What did you have to do to c to get this one to work?
c = 29 while (c <= 45): print (c) c = c + 1
c = 30 while (c <= 45): print (c) c = c + 1
c = 30 while (c <= 45): print (c) ( c and c + 1 )
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Write a loop to print the numbers: 5, 10, 15, 20...45. What did you have to do to c to get this one to work?
c = 45 while (c <= 45): print (c) c = c + 5
c = 0 while (c <= 45): print (c) c = c + 5
c = 5 while (c <= 45): print (c) c = c + 5
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
Iteration

Quiz
•
9th - 12th Grade
15 questions
Intro to Java Loops

Quiz
•
9th - 12th Grade
15 questions
Python Basics Quiz

Quiz
•
9th - 12th Grade
10 questions
Python - Operators and Conditional Statement

Quiz
•
3rd - 10th Grade
10 questions
ICT Grade 10 Final Exam Practice Test

Quiz
•
9th - 12th Grade
9 questions
Instructiuni Repetitive C++

Quiz
•
10th Grade
10 questions
Python Basic files

Quiz
•
10th - 12th Grade
15 questions
Pętla for i while

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University