wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Code.org: Variables and Loop Structures

Total questions: 10

Worksheet time: 20mins

Name
Class
Date
1.

Which block would you use to create a variable in a program on Code.org?

a)
b)
c)
d)
2.

Which is the correct code for this puzzle?

a)
b)
3.

Which is the correct way to shorten this code?

(click the picture to make it bigger)

a)
b)
4.

What block would be the first step in creating a code that tells the artist to draw over the gray lines?

a)
b)
c)
d)
5.

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)
6.

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

(click the picture to make it bigger)

a)
b)
c)
d)
7.

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

a)
b)
c)
d)
8.

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

a)

3

b)

4

c)

12

d)

11

9.

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

a)

1

b)

2

c)

3

d)

4

10.

Which of these blocks is a loop structure?

a)
b)
c)
d)