wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Loops

Total questions: 20

Worksheet time: 18mins

Name
Class
Date
1.

What is a loop?

a)

A loop without conditions

b)

A loop with an if statement

c)

In computer programming, a loop is an order of instructions that repeats for many times

2.

When this program is run, the last pumpkin is not harvested. Why? (17-6)

a)

You should have added another Pick Path function.

b)

You should have used an If Conditional instead of a Why Conditional for Pumpkins.

c)

You should have moved the pick block after the forward block

d)

Pumpkins should be picked before corn in the Pick function.

3.

If there were more than one corn in a square, would this code work?

a)

Yes, because it keeps on running until there is no path ahead

b)

No, because and if block is only read once, and then you move forward.

4.

Should this be a loop?

a)

No, because there is no pattern.

b)

Yes, because every middle square has honey or nectar.

5.

There is a zig-zag pattern at the beginning and the end of this puzzle. You should

a)

Ignore it because only squares should be functions.

b)

Create a zig zag function

6.

The action of doing something over and over again.

a)

Looping

b)

Bugging

c)

Programming

7.

What is the action of doing something over and over again?

a)

Repeat

b)

Loop

c)

Debugging

8.

What does run mean?

a)

to make a code for a program

b)

to make a program complete an algorithm

c)

to make a website show up on your screen

9.

Is there more than one way to code a puzzle?

a)

No

b)

No, but you can make up your own design

c)

Yes

d)

Yes, but it will be counted wrong

10.

What does this code do?

a)

Moves forward 1 time

b)

Moves forward forever

c)

Moves forward 5 times

d)

Moves left

11.

What does this code do?

a)

Moves forward, turns, moves forward

b)

Moves forward 2 times, turns left, moves forward 2 more times

c)

Moves forward 4 times and turns left

d)

Moves and turns

12.

Can this code be written better?

a)

Yes, by using loops (repeat blocks)

b)

No, this is the best way to right this code

13.

What shape does this code make?

a)

Rectangle

b)

Triangle

c)

Square

d)

Circle

14.
Coding can be used to
a)
Program robots
b)
create websites, games & apps
c)
tell computers what to do
d)
all of the above
15.
The language of computer programming is 
a)
Spanish
b)
English
c)
Code
d)
Pig-latin
16.

In coding terms an action or event you want to repeat multiple times is called a

a)

loop

b)

do-over

c)

sequence

17.

Infinite loops are also called _________ loops.

a)

endless

b)

forever

c)

never ending

18.

A forever loop is a code pattern that repeats ___________________ .

a)

as long as the program is running

b)

for a set number of times

c)

until a condition is met

19.

An action that causes something to happen.

a)

A loop.

b)

A program.

c)

An event.

20.
a loop within a loop, an inner loop within the body of an outer one.
a)
Nested Loop
b)
Condition
c)
while loop
d)
For Loop