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
A __________________ is a collection of commands that are given a name.
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 Wayground
20 questions
Code.org CSD Unit 3 Lessons 1-12

Quiz
•
3rd - 12th Grade
20 questions
Python year 9

Quiz
•
8th - 11th Grade
20 questions
Programming Constructs

Quiz
•
9th - 10th Grade
14 questions
Python - MP2 Test

Quiz
•
10th Grade
20 questions
Python while loops

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

Quiz
•
10th Grade
10 questions
Quiz 4 Edhesive Review

Quiz
•
9th - 12th Grade
20 questions
AP CSP Unit 6

Quiz
•
10th - 12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
Discover more resources for Computers
50 questions
Trivia 7/25

Quiz
•
12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
6 questions
RL.10.1 Cite Evidence

Quiz
•
10th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
14 questions
Algebra 1 SOL Review #1

Quiz
•
9th Grade