A __________________ is a collection of commands that are given a name.
CP M4 Repetition & Loops

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Marcia Bernas
Used 12+ times
FREE Resource
15 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
1 min • 1 pt
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
True or False. Every WHILE loop can be replaced with FOR loop.
True
False
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Variable used to end the loop
Loop control variable
count variable
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
While loops should always be:
output
indented
calculated
input
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
For a loop to stop, the loop control variable must ________________.
change
be input from the keyboard
be true
change inside the loop
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is wrong with:
x = 1
while (x < 20):
print (x)
There is no x = 0 before the loop
The loop will not stop since the condition is wrong
x should be c
The loop will not stop since x never changes
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why do we use loops?
Because computers can do calculations humans can't.
Because programming is an important skill
Because of efficiency.
Because programs need to make decisions.
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
Grade 12-Python selection&iteration

Quiz
•
11th - 12th Grade
20 questions
AP Computer Science A Final Review

Quiz
•
10th Grade
13 questions
Python Iteration

Quiz
•
10th Grade
20 questions
AP CSP Unit 6

Quiz
•
10th - 12th Grade
16 questions
Arithmetic Types Declare Initialize Relation Logical Ops

Quiz
•
9th Grade - University
10 questions
C++ Programming Quiz

Quiz
•
12th Grade
20 questions
function in python

Quiz
•
12th Grade
20 questions
Python - Iteration (For Loops)

Quiz
•
10th 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