wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

For Loops Code.org/ Lessons 6-10 (Flocabulary)

Total questions: 25

Worksheet time: 17mins

Name
Class
Date
1.

Harmony is a computer programmer. Each day she writes (a)   in a language that computers can use.

2.

Nestor used a certain type of loop called a(n) (a)   to repeat his code a specific number of times.

3.

Each time a loop repeats is called a(n) (a)   .

4.

Elena wants to tell a program to do something many times, so she uses a(n) (a)   .

5.

Jamie is using a loop to write a program that will make sandwiches. He uses a(n) (a)   to keep track of how many sandwiches have been made.

6.

You can use a loop to (a)   code even 7,000 times.

7.

How many times should the code be repeated?

a)

One

b)

Two

c)

Three

d)

Four

8.

How many times should the code be repeated?

a)

200

b)

300

c)

400

d)

500

9.

How many times should the code be repeated?

a)

3

b)

5

c)

6

d)

8

10.

In coding, loops are used to

a)

tell a program to do different things depending on what is true.

b)

tell a program to stop running.

c)

repeat actions.

d)

delete old code.

11.

The robot in the video is programmed to make 100 burritos using a loop. To do this, the robot runs the code in the loop ________ time(s).

a)

25

b)

50

c)

75

d)

100

12.

A programmer could use a loop to repeat code only up to 500 times.

a)

True

b)

False

13.

Read each scenario. In which would a loop be most helpful?

a)

Maura wants a program to perform a math operation one time.

b)

Jamila is programming a robot to hop once and then raise its arm once.

c)

Vinny wants a program to go through a list of 35 of his friends and remind each friend what time a study group starts.

d)

Damian is writing a program that will tell him what to wear depending on the weather.

14.

Read each scenario. In which would a loop be most helpful?

a)

Cory is programming a robot to wash 50 dishes.

b)

Maritza is writing a program that will automatically take one photo.

c)

Radiya wants a program to display a different message depending on who logs into it.

d)

Elna is writing a program that will draw one clown.

15.

Read the text for the loop below. What will happen when the loop runs?

repeat 12 times:

write “Hi, do you like loops?”

a)

The program will write “Hi, do you like loops?” 12 times.

b)

The program will write “Hi, do you like loops?” only 1 time.

c)

The program will write “Hi, do you like loops?” 100 times.

d)

The program will not write anything.

16.

Read the text for the loop below. What will happen when the loop runs?


repeat 500 times:

draw 1 triangle

draw 1 octagon

a)

The program will draw 1 triangle and then draw 1 octagon. It will repeat this only 3 more times

b)

The program will draw 1 triangle and then draw 1 octagon. It will repeat this 499 more times.

c)

The program will only draw 500 triangles.

d)

The program will not draw any triangles or octagons.

17.

Devora is programming a robot to make 15 pizzas. She is using a for loop with a counter. She has 0 pizzas before the loop starts. What number will the counter start at?

a)

15

b)

0

c)

1

d)

10

18.

Devora programs the robot to make 1 pizza at a time. Each time her for loop runs, by how much will the counter increase?

a)

15

b)

0

c)

1

d)

10

19.

Devora’s for loop tells the robot to make 15 pizzas. What will happen when the counter reaches 15?

a)

The loop will run 1 more time.

b)

The loop will run 15 more times.

c)

The loop will run 10 more times.

d)

The loop will stop running.

20.

A loop that repeats a specific number of times.

a)

Nested Loop

b)

For loop

c)

code

d)

program

21.

The instructions that make up a computer program.

a)

Code

b)

Algorithm

c)

iterations

d)

programmer

22.

in a computer program, a set of instructions that are repeated until a specific condition is met.

a)

loop

b)

code

c)

for loop

d)

program

23.

This computer ___ was set up to send an attendance report to the principal every day.

a)

program

b)

programmer

c)

code

d)

variable

24.

Someone who writes computer programs.

a)

Developer

b)

Designer

c)

Teacher

d)

Programmer

25.

Which word means the same as "repeat".

a)

Iterate

b)

program

c)

loop

d)

for loop