wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Animations and Games L.3-5

Total questions: 19

Worksheet time: 14mins

Name
Class
Date
1.

How are shapes plotted on the screen?

a)

with alphabet letters

b)

with X and Y coordinates

c)

using a touch screen

d)

with width and height values

2.

The screen is set up like a grid, and every point on the screen has a corresponding...

a)

picture

b)

shape

c)

Y and Z value

d)

X and Y value

3.

What is the definition of the origin?

a)

An original component

b)

Where x and y equal 100

c)

Where the x and y values equal zero

d)

The end of a story

4.

The x value represents...

a)

How far away from the left of the screen

b)

How far away from the right of the screen

c)

How far away from the top of the screen

d)

How far away from the bottom of the screen

5.

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 bottom of the screen

d)

How far away from the top of the screen

6.

What is the origin of a square or rectangle?

a)

The bottom right corner

b)

The bottom left corner

c)

The top right corner

d)

The top left corner

7.

What is the origin of a circle or ellipse?

a)

The bottom left corner

b)

The center

c)

The bottom right corner

d)

The top

8.

In this line of code:

rect(250, 100);

which number is the y value?

a)

rect

b)

250

c)

100

9.

What will this line of code make?

rect(100, 100, 50, 50)

a)

a rectangle

b)

a square

c)

a circle

d)

a star

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.

Given rect(x, y, w, h); what are w and h?

a)

width and heavy

b)

width and tallness

c)

width and length

d)

width and height

12.

What will this line of code make?

rect(100, 100, 50, 200)

a)

a rectangle

b)

a square

c)

a triangle

d)

a circle

13.

The line of code: background("red"); will change what red?

a)

Any shapes on the screen

b)

The background

c)

The foreground

d)

Nothing

14.

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

a)

color

b)

rect

c)

weight

d)

fill

15.

What does the randomNumber line of code do?

a)

picks the same number every time

b)

picks any number from zero to infinity

c)

picks any number from the minimum and maximum that you set

d)

it doesn't do anything

16.

randomNumber(0 ,400)

this will randomly pick a number...

a)

between 0 and 400, not including 0 or 400

b)

between 0 and 400, including 0 and 400

17.

Can you use the randomNumber line of code to replace a single value, such as a y value?

a)

Yes!

b)

No!

18.

A variable is a way to...

a)

label a number

b)

save a name

c)

generate a random number

19.

This line of code does what?

var hello = 100

a)

creates a variable

b)

names or labels the variable "hello"

c)

sets the value of the variable hello to 100

d)

All three are correct