wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Unit 5 Games/Animations

Total questions: 25

Worksheet time: 38mins

Name
Class
Date
1.

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

a)

ellipse

b)

rect

c)

fill

d)

background

2.

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

a)

ellipse

b)

rect

c)

fill

d)

background

3.

Part of a program that does not work correctly.

a)

Bug

b)

Debugging

c)

Program

d)

Variable

4.

Finding and fixing problems in an algorithm or program.

a)

Bug

b)

Debugging

c)

Variable

d)

Parameter

5.

An algorithm that has been coded into something that can be run by a machine.

a)

Bug

b)

Debugging

c)

Program

d)

Parameter

6.

An extra piece of information passed to a function to customize it for a specific need.

a)

Bug

b)

Program

c)

Parameter

d)

Variable

7.

A placeholder for a piece of information that can change.

a)

Program

b)

Parameter

c)

Variable

d)

Debugging

8.

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

a)

Animation

b)

Sprite

c)

Property

d)

Variable

9.

In programming, an expression that evaluates to True or False.

a)

Boolean

b)

Boolean Expression

c)

Boolean Value

10.

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

11.

What line of code will change the color of any shapes coded below it?

a)

color

b)

rect

c)

weight

d)

fill

12.

Finding and fixing problems in an algorithm or program.

a)

Bug

b)

Variable

c)

Property

d)

Debugging

13.
What is at the end of a line of code?
a)
#
b)
;
c)
)
d)
>
14.

What is a list of steps that you can follow to finish a task?

a)

Code

b)

Program

c)

Algorithm

15.

The way that sprites' properties are used in Game Lab, by connecting the sprite and property with a dot.

a)

Variable

b)

Property

c)

Dot notation

d)

Debugging

16.

What is the center point of the JavaScript grid on Code.org?

a)

0,0

b)

200,200

c)

400,400

d)

50,50

17.

How many units is each square inside of the program grid worth?

a)

10

b)

100

c)

40

d)

50

18.

Circles are placed using their:

a)

top

b)

bottom

c)

center

d)

none of these

19.

True or False? When working with multiple shapes that are in close proximity to each other, the order of code does not matter.

a)

True

b)

False

20.

Which of the following lines of code is required to produce the following image in the program below?

a)
b)
c)
d)
21.

What will this line of code make?

rect(50, 100, 200, 200)

a)

a rectangle

b)

a square

c)

a triangle

d)

a circle

22.

What will this line of code make?

rect(100, 100, 50, 200)

a)

a rectangle

b)

a square

c)

a triangle

d)

a circle

23.

What will this line of code make?

ellipse(50, 100, 200, 200)

a)

a rectangle

b)

a square

c)

an ellipse

d)

a circle

24.

What will this line of code make?

ellipse(50, 100, 150, 200)

a)

a rectangle

b)

a square

c)

an ellipse

d)

a circle

25.

a named section of a program that performs a specific task. In this sense it is like a type of procedure or routine

a)

step

b)

function

c)

loop

d)

conditional statement