WorksheetsSmooth Animation & Conditionals
Total questions: 7
Worksheet time: 7mins
What will this code do?
Move the fish UP
Move the fish DOWN
Move the fish LEFT
Keep the fish still.
Where does sprite.y=400
At the top of the screen
In the middle of the screen
Only at the far left
At the bottom of the screen.
What does this code do?
Move the bug UP
Move the bug DOWN
Move the bug LEFT
Move the bug RIGHT
Fill in the blank to make the fly move right across the screen.
fly.x= __________+1
fly.y
fly.rotation
x
fly.x
What does this code do:
fruit.scale=fruit.scale + 0.1
make the fruit spin.
move the fruit left
make the fruit bigger
move the fruit up.
Would the following show TRUE or FALSE?
hat.x=10;
hat.y=20;
console.log(hat.x==hat.y)
TRUE
FALSE
What does this code do?
IF the car's x position is less than 100, THEN rotate the car to 270 degrees.
IF the car's x position is greater than 100, THEN make the car spin forever
IF the car's rotation=270 degrees, THEN change the car's x position.
IF the car's x rotation == 270 degrees, THEN the car must be less that 100 in X.
