wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

g5 exam

Total questions: 6

Worksheet time: 6mins

Name
Class
Date
1.

Loop

a)

Loops that have a predetermined beginning, end, and increment (step interval).

b)

The action of doing something over and over again.

c)

A description of the behavior of a command, function, library, API, etc.

d)

To repeat in order to achieve, or get closer to, a desired goal.

2.

The following code is drawing shapes when program runs. As you learned in the class, program code is executing in a sequential manner. In the code above how many of the steps will be executed when the program runs?

a)

11

b)

12

c)

14

d)

13

3.

The following code is drawing shapes when the program runs. When the program runs, what shapes and how many of the shape will be drawn?

a)

One square

b)

Triangle

c)

Two square

d)

Two triangle

4.

What completes the following shape?

a)

Move forward by 100px, turn right by 120px, move forward by 100px

b)

Turn right by 120px, move forward by 100px, Move forward by 100px,

c)

Turn right by 120px, turn right by 120px, move forward by 100px

d)

Move forward by 100px, move forward by 100px, turn right by 120px, move forward by 100px

5.

The Pacman is trying to catch the vulnerable ghost. Which one is the correct direction in the blank.

a)

RIGHT

b)

LEFT

c)

UP

d)

DOWN

6.

The artist is supposed to draw a triangle by following gray lines. In the workspace as shown below, you can see that the first line of code will be drawing the bottom line. Next, what degree should the artist turn left?

a)

11

b)

12

c)

120

d)

13