wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Pong Game Quiz

Total questions: 20

Worksheet time: 15mins

Name
Class
Date
1.

What is the first step in creating a Pong game?

a)

Add collision detection

b)

Choose a sprite for the ball

c)

Program the paddle

d)

Set up scoring

2.

Which backdrop option is mentioned in the tutorial?

a)

Desert

b)

Mountain

c)

Boardwalk

d)

Forest

3.

What happens when you put 'move 10 steps' in a forever loop?

a)

The sprite moves once

b)

The sprite moves continuously

c)

The sprite stops moving

d)

The sprite changes direction

4.

Which block prevents the ball from getting stuck on walls?

a)

Turn 90 degrees

b)

Move 10 steps

c)

If on edge, bounce

d)

Point in direction

5.

What direction number creates diagonal movement?

a)

90 degrees

b)

180 degrees

c)

45 degrees

d)

0 degrees

6.

How do you make the paddle follow the mouse?

a)

Use 'mouse y' block

b)

Use 'mouse x' block

c)

Use 'touching mouse' block

d)

Use 'distance to mouse' block

7.

What does the X coordinate control?

a)

Up and down position

b)

Left and right position

c)

Sprite rotation

d)

Sprite size

8.

Which sensing block detects mouse position?

a)

Mouse clicked

b)

Mouse down

c)

Mouse x

d)

Mouse touching

9.

How do you check if two sprites are touching?

a)

'Distance to' block

b)

'Touching' block

c)

'Near' block

10.

How many degrees should the ball turn to bounce back?

a)

90 degrees

b)

45 degrees

c)

180 degrees

d)

270 degrees

11.

How can we determine if ball’s left edge is hitting a different shape on our canvas named box?

a)
b)
c)
d)
12.

The following code moves a ball across the screen at a rate of dx in the x direction and dy in the y direction.


What do we need to add to line 19 to have the ball bounce off the top of the window?

a)

dy = -dy;

b)

ball.setPosition(ball.getX(), getHeight() - ball.getRadius());

c)

dx = -dx;

d)

dy = -dx;

13.

A chase game requires at least two sprites.

a)

True

b)

False

14.

What statement should we use to determine if ball is hitting the bottom edge of the window?

a)
b)
c)
d)
15.

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

a)

spirte.x

b)

sprite.y

c)

sprite.rotation

d)

sprite.spin

16.

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

a)

sprite.displace(tgt);

b)

sprite.collide(tgt);

c)

sprite.bounce(tgt);

d)

sprite.bounceOff(tgt);

17.

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

a)

sprite.displace(tgt);

b)

sprite.collide(tgt);

c)

sprite.bounce(tgt);

d)

sprite.bounceOff(tgt);

18.

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

a)

sprite.displace(tgt);

b)

sprite.collide(tgt);

c)

sprite.bounce(tgt);

d)

sprite.bounceOff(tgt);

19.

To make a sprite slightly rotate back and forth(wobble effect), we use

a)

sprite.rotation = sprite.rotation + 1

b)

sprite.rotation = sprite.rotation - 1

c)

sprite.x and sprite.y

d)

sprite.rotation = random number(-2, 2)

20.

Makes the sprite stop when it runs into the target. If the target is moving, it will push the sprite with it. The target keeps moving as before.

a)

sprite.displace(tgt);

b)

sprite.collide(tgt);

c)

sprite.bounce(tgt);

d)

sprite.bounceOff(tgt);