
AP CSP Loops Practice
Flashcard
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Medium
Wayground Content
Used 2+ times
FREE Resource
Student preview

12 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which word means the same as "repeat"?
Back
Iterate
2.
FLASHCARD QUESTION
Front
Is used to repeat a specific block of code an unknown number of times, until a condition is met.
Back
While Loop
3.
FLASHCARD QUESTION
Front
Is used to repeat a specific block of code a known number of times.
Back
For Loop
4.
FLASHCARD QUESTION
Front
In which scenario 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.
Back
Vinny wants a program to go through a list of 35 of his friends and remind each friend what time a study group starts.
5.
FLASHCARD QUESTION
Front
adds one to variable x in a loop
Back
x++;
6.
FLASHCARD QUESTION
Front
How many times will the following program print "hello"? Options: 10, 11, 9, This code will loop infinitely
Back
This code will loop infinitely
7.
FLASHCARD QUESTION
Front
What is wrong with this loop?
Back
It never ends
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?