wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Smooth Animation & Conditionals

Total questions: 7

Worksheet time: 7mins

Name
Class
Date
1.

What will this code do?

a)

Move the fish UP

b)

Move the fish DOWN

c)

Move the fish LEFT

d)

Keep the fish still.

2.

Where does sprite.y=400

a)

At the top of the screen

b)

In the middle of the screen

c)

Only at the far left

d)

At the bottom of the screen.

3.

What does this code do?

a)

Move the bug UP

b)

Move the bug DOWN

c)

Move the bug LEFT

d)

Move the bug RIGHT

4.

Fill in the blank to make the fly move right across the screen.

fly.x= __________+1

a)

fly.y

b)

fly.rotation

c)

x

d)

fly.x

5.

What does this code do:

fruit.scale=fruit.scale + 0.1

a)

make the fruit spin.

b)

move the fruit left

c)

make the fruit bigger

d)

move the fruit up.

6.

Would the following show TRUE or FALSE?


hat.x=10;

hat.y=20;

console.log(hat.x==hat.y)

a)

TRUE

b)

FALSE

7.

What does this code do?

a)

IF the car's x position is less than 100, THEN rotate the car to 270 degrees.

b)

IF the car's x position is greater than 100, THEN make the car spin forever

c)

IF the car's rotation=270 degrees, THEN change the car's x position.

d)

IF the car's x rotation == 270 degrees, THEN the car must be less that 100 in X.