AP CSP Loops Practice

Quiz
•
Computers
•
9th - 12th Grade
•
Medium

Ryan Murphy
Used 37+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which word means the same as "repeat".
Iterate
program
loop
for loop
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Is used to repeat a specific block of code an unknown number of times, until a condition is met.
Iteration
Infinite Loop
For Loop
While Loop
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Is used to repeat a specific block of code a known number of times.
Iteration
Infinite Loop
For Loop
While Loop
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Read each scenario. In which would a loop be most helpful?
Maura wants a program to perform a math operation one time.
Jamila is programming a robot to hop once and then raise its arm once.
Vinny wants a program to go through a list of 35 of his friends and remind each friend what time a study group starts.
Damian is writing a program that will tell him what to wear depending on the weather.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
adds one to variable x in a loop
increment (x)
x++;
x=x;
y+1;
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How many times will the following program print "hello"?
10
11
9
This code will loop infinitely
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is wrong with this loop?
Nothing, it works
moveForward is not a command
The value of the variable is 0
It never ends
Create a free account and access millions of resources
Similar Resources on Wayground
16 questions
Python Beginner

Quiz
•
9th - 10th Grade
10 questions
S2 Sphero Knowledge Check 2

Quiz
•
11th Grade
12 questions
Small Basic Quiz

Quiz
•
7th - 9th Grade
15 questions
Intermediate Python

Quiz
•
9th - 11th Grade
10 questions
Python Loops

Quiz
•
9th - 12th Grade
15 questions
JAVA: Level-1

Quiz
•
5th - 12th Grade
12 questions
CodeHS Unit 1

Quiz
•
9th - 12th Grade
15 questions
Computer science paper 2

Quiz
•
10th Grade
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade