AP CSP Loops Practice

AP CSP Loops Practice

Assessment

Flashcard

Computers

9th - 12th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?