Search Header Logo

AP CSP Loops Practice

Authored by Ryan Murphy

Computers

9th - 12th Grade

Used 43+ times

AP CSP Loops Practice
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Media Image

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

Media Image

What is wrong with this loop?

Nothing, it works

moveForward is not a command

The value of the variable is 0

It never ends

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?