wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Loops

Total questions: 16

Worksheet time: 8mins

Name
Class
Date
1.

A part of the program that does not work correctly.

a)

Bug

b)

Break

c)

Loop

2.

The action of doing something over and over again.

a)

Looping

b)

Bugging

c)

Programming

3.

What does this code do?

a)

Moves forward 1 time

b)

Moves forward forever

c)

Moves forward 5 times

d)

Moves left

4.

What shape does this code make?

a)

Rectangle

b)

Triangle

c)

Square

d)

Circle

5.
Coding can be used to
a)
Program robots
b)
create websites, games & apps
c)
tell computers what to do
d)
all of the above
6.

Can this code be written better?

a)

Yes, by using loops (repeat blocks)

b)

No, this is the best way to right this code

7.

How long are the sides of this shape?

a)

2 pixels

b)

120 pixels

c)

150 pixels

d)

Purple pixels

8.
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
9.

Which is the correct code for this puzzle?

a)
b)
10.

Which is the correct way to shorten this code?

(click the picture to make it bigger)

a)
b)
11.

The artist has to draw a window for the spaceship.

How many times does the pattern need to repeat in order to complete the picture?

a)
b)
c)
d)
12.

Which block would you use to replace the "?" in the code?

(click the picture to make it bigger)

a)
b)
c)
d)
13.

What is the next block you would add to solve this puzzle?

a)
b)
c)
d)
14.

What number should replace the "?" in the code?

a)

3

b)

4

c)

12

d)

11

15.

How many lines will the artist draw based on the code in the picture?

a)

1

b)

2

c)

3

d)

4

16.

Which of these blocks is a loop structure?

a)
b)
c)
d)