wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Interactive Games and Animations

Total questions: 40

Worksheet time: 20mins

Name
Class
Date
1.

A character on the screen with properties that describe its location, movement, and look.

a)

Property

b)

Sprite

c)

Boolean Expression

d)

Conditionals

2.

Something a program checks to see whether it is true before deciding to take an action.

a)

Property

b)

Dot notation

c)

Condition

d)

Parameter

3.

A named bit of programming instructions.

a)

Function

b)

Sprite

c)

Variable

d)

Abstraction

4.

Part of a program that does not work correctly.

a)

Debugging

b)

Bug

c)

Program

d)

Variable

5.

The _ block will plot a square at the x and y coordinates it is given.

a)

ellipse

b)

rect

c)

fill

d)

background

6.

The _ block will plot a circle at the x and y coordinates it is given.

a)

ellipse

b)

rect

c)

fill

d)

background

7.

How are shapes plotted on the screen?

a)

with alphabet letters

b)

with X and Y coordinates

c)

using a touch screen

d)

with numbers

8.

The x value represents...

a)

How far away from left to right of the screen

b)

How far away from the corner of the screen

c)

How far away from the top of the screen

d)

How far away from the bottom of the screen

9.

The y value represents...

a)

How far away from the right of the screen

b)

How far away from the left of the screen

c)

How far away from the corner of the screen

d)

How far away from top to bottom of the screen

10.

In this line of code:

rect(250, 100);

which number is the y value?

a)

rect

b)

250

c)

100

11.

In this line of code: rect(250, 250, 100, 50); what do 100 and 50 represent?

a)

The x and y values

b)

The w and h values

12.

What will this line of code make?

rect(100, 100, 50, 50)

a)

a rectangle

b)

a square

c)

a circle

d)

a star

13.

Which command matches this block of code?

a)

Declares and assigns an initial value to a variable.

b)

The number of times per second the screen is refreshed.

c)

Returns a random number in the closed range from min to max.

14.

Which command matches this block of code?

a)

Draws an ellipse keeping the height to width ratio the same.

b)

Shrink or grow a sprite keeping the height to width ratio the same.

c)

Draws a rectangle keeping the height to width ratio the same.

15.

Which command matches this block of code?

a)

Displays a group of sprites. If no parameter is specified, draws all sprites in the sketch.

b)

Shrink or grow a sprite keeping the height to width ratio the same.

c)

The lines of code contained inside its block are continuously executed until the program is stopped.

16.

In which direction will the sprite move?

bee.y = bee.y + 2

a)

left

b)

right

c)

up

d)

down

17.

Which sprite property would you change to move the sprite from left to right?

a)

sprite.x

b)

sprite.y

c)

sprite.scale

d)

sprite.rotation

18.

Which sprite property would you change to make the sprite turn in a circle?

a)

sprite.x

b)

sprite.y

c)

sprite.scale

d)

sprite.rotation

19.

a series of images that create the illusion of motion being shown rapidly on after the other

a)

animation

b)

Frame rate

c)

Bug

d)

Debugging

20.

This plane looks like someone is smearing a stamp across a paper.


How would you fix this code so that it looks likes the plane is smoothly moving across the scene? (Click on image to enlarge.)

a)

(line 8) increase the speed of the plane in the draw loop.

b)

(line 7) add plane.rotation into the draw loop

c)

(line 4) add a drawSprites

d)

(line 3) move the background code into the draw loop so that it makes a new background each loop

21.

What keyboard key do you need press to move the sprite?

a)

x

b)

y

c)

up arrow

d)

space

22.

Which direction will the sprite move in the code pictured? (Click on picture to enlarge.)

a)

Left

b)

Right

c)

Up

d)

Down

23.

What is the NAME and starting Y LOCATION of this sprite?

a)

dog, 150

b)

dog, 350

c)

fido, 150

d)

fido, 350

24.

What is the name of the ANIMATION (not the sprite) used in this block of code?

a)

dog

b)

fido

c)

sprite

d)

150

25.

Which line of code creates a sprite?

a)

Line 1

b)

Line 2

c)

Line 8

d)

Line 9

26.
a)

Sets the collider for a sprite.

b)

Checks if the sprite is touching the target sprite or any sprite in the target group.

c)

Makes the sprite and the target bounce when they touch each other. Both the sprite and the target change how they are moving.

27.
a)

Makes the sprite and the target bounce when they touch each other. Both the sprite and the target change how they are moving.

b)

Makes the sprite bounce off the target when they touch each other. The target keeps moving as before.

c)

Makes the sprite push the target as long as they are touching each other. The sprite keeps moving normally.

28.
a)

Makes the sprite bounce off the target when they touch each other. The target keeps moving as before.

b)

Checks if the sprite is touching the target sprite or any sprite in the target group.

c)

The velocity lost or gained by a sprite during a collision or bounce.

29.

What is the variable for this label?

a)

size

b)

name

c)

location

d)

value

30.

What command will create a new variable?

a)

var

b)

name

c)

loc

d)

size

31.

According to slide 7, what is the variable assigned to the x value?

a)

size=100

b)

size=200

c)

x=100

d)

x=200

32.

Match the code with the output

a)
b)
c)
33.

Match the code with the output

a)
b)
c)
34.

Match the code with the output

a)
b)
c)
35.

What will happen when this program is run?

a)

A plane will move across the screen to the left.

b)

A plane will move across the screen to the right.

c)

A plane will move down.

d)

A plane will move up.

36.

What will happen to the sprite with this counter pattern?

a)

The sprite will rotate clockwise.

b)

The sprite will move to the right.

c)

The sprite will move to the right.

d)

The sprite will rotate counterclockwise.

37.

What will happen when this code is run?

a)

The balloon will move down if the down arrow is pressed, otherwise it will move up.

b)

The balloon will move up if the up arrow is pressed, otherwise it will move down.

c)

The balloon will move down if the mouse is down, otherwise it will move up.

d)

The balloon will move up if the mouse is down, otherwise it will move down.

38.

If you want a sprite to move on a diagonal path, you will need to update both the sprite's x and y properties.

a)

True

b)

False

39.

In the image, what is the apple's x position at the end of this program?

a)

20

b)

90

c)

110

d)

None, because the program will have an error.

40.

Which of the following lines of code will produce this picture in the grid?

a)
b)
c)
d)