wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Sprites - introduction

Total questions: 8

Worksheet time: 6mins

Name
Class
Date
1.

Circle the part of the code which defines X and Y coordinates?

2.

What is a sprite?

a)

Any object.

b)

Any animated object.

c)

A value.

d)

A fancy idea of coding.

3.

What stores the properties of a sprite?

a)

A pice of code.

b)

A variable.

c)

X and Y axes.

d)

Color.

4.

What is important when we create a new variable for a sprite?

a)

Include the "createSprite" block of code.

b)

Give it a meaningful and easy-to-remember name.

c)

Do not use gaps in the name of the variable?

d)

Choose the funniest one.

5.

To control a sprite's properties, we use 'dot notation'. Which one is an example of it?

a)

...

b)

.mySprite.width.

c)

mySprite.width

d)

... .... . ... ....

6.

The sprite won't appear on the screen when the code is run. Circle the missing block of code and show where it belongs.

7.

Circle what has caused the bug in the code.

8.

Why did not the other three sprites appear on the screen?

a)

I have no idea.

b)

The code reads chronologically so the bug broke it.

c)

Reading the code cannot be completed.

d)

It can. The computer can read random parts of a code. This is just a weird occasion.