wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

PacMan programming mini test

Total questions: 12

Worksheet time: 6mins

Name
Class
Date
1.

A character which can be controlled in Scratch is known as...

a)

Sprite

b)

NPC

c)

Player

d)

Icon

2.

A different design for a sprite or a background is known as a...

a)

Design

b)

Costume

c)

Style

d)

Look

3.

What is the name of the variable in this block of code?

a)

Green flag

b)

ghost_direction

c)

random

d)

left-right

4.

How many times will this block of code run when the program starts?

a)

Once

b)

It will loop continuously

c)

4 times

d)

A random number of times between 1 and 4

5.

What does the blue block of code shown do?

a)

Stops sprites turning upside down or sideways

b)

Only allows them to move left and right (up and down not allowed).

c)

Makes sprites start spinning around.

6.

How many times will this block of code run when the program starts?

a)

Once

b)

It will loop continuously

c)

4 times

d)

A random number of times between 1 and 4

7.

When this code is run, the ghost still walks through a wall. What is the most likely reason?

a)

The green colour (in 'touching color') is a different colour to the maze walls.

b)

The 'move steps' need to be changed to +5.

c)

The code is not running continuously to detect walls being touched.

8.

When will this block of code switch the sprite costume to 'costume 1'?

a)

When the game starts

b)

Repeatedly through a forever loop

c)

When the sprite is touching sprite 1

d)

Never

9.

What happens if the sprite with this code touches a sprite called 'sprite 1'?

a)

It will change to costume 2 and make the score equal to 1.

b)

It will change to costume 1 and make the score equal to 1.

c)

It will change to costume 2 and increase the score by 1.

10.

What is the name of the variable in this block of code?

a)

score

b)

costume1

c)

Sprite1

d)

costume2

11.

This code is on a PacMan sprite. What would need to change to program events for a left arrow being pressed?

a)

'Point in direction' changed to -90

b)

'Point in direction' changed to 180

c)

Wait changed to -0.1

12.

This code is on a PacMan sprite. When will this code run?

a)

Continuously from when the game starts.

b)

Continuously after the right arrow is pressed once.

c)

Only when the right arrow is being pressed.