NEW
Font size
WorksheetsInteractive Games and Animations
Total questions: 40
Worksheet time: 20mins
A character on the screen with properties that describe its location, movement, and look.
Property
Sprite
Boolean Expression
Conditionals
Something a program checks to see whether it is true before deciding to take an action.
Property
Dot notation
Condition
Parameter
A named bit of programming instructions.
Function
Sprite
Variable
Abstraction
Part of a program that does not work correctly.
Debugging
Bug
Program
Variable
The _ block will plot a square at the x and y coordinates it is given.
ellipse
rect
fill
background
The _ block will plot a circle at the x and y coordinates it is given.
ellipse
rect
fill
background
How are shapes plotted on the screen?
with alphabet letters
with X and Y coordinates
using a touch screen
with numbers
The x value represents...
How far away from left to right of the screen
How far away from the corner of the screen
How far away from the top of the screen
How far away from the bottom of the screen
The y value represents...
How far away from the right of the screen
How far away from the left of the screen
How far away from the corner of the screen
How far away from top to bottom of the screen
In this line of code:
rect(250, 100);
which number is the y value?
rect
250
100
In this line of code: rect(250, 250, 100, 50); what do 100 and 50 represent?
The x and y values
The w and h values
What will this line of code make?
rect(100, 100, 50, 50)
a rectangle
a square
a circle
a star
Which command matches this block of code?
Declares and assigns an initial value to a variable.
The number of times per second the screen is refreshed.
Returns a random number in the closed range from min to max.
Which command matches this block of code?
Draws an ellipse keeping the height to width ratio the same.
Shrink or grow a sprite keeping the height to width ratio the same.
Draws a rectangle keeping the height to width ratio the same.
Which command matches this block of code?
Displays a group of sprites. If no parameter is specified, draws all sprites in the sketch.
Shrink or grow a sprite keeping the height to width ratio the same.
The lines of code contained inside its block are continuously executed until the program is stopped.
In which direction will the sprite move?
bee.y = bee.y + 2
left
right
up
down
Which sprite property would you change to move the sprite from left to right?
sprite.x
sprite.y
sprite.scale
sprite.rotation
Which sprite property would you change to make the sprite turn in a circle?
sprite.x
sprite.y
sprite.scale
sprite.rotation
a series of images that create the illusion of motion being shown rapidly on after the other
animation
Frame rate
Bug
Debugging
This plane looks like someone is smearing a stamp across a paper.
How would you fix this code so that it looks likes the plane is smoothly moving across the scene? (Click on image to enlarge.)
(line 8) increase the speed of the plane in the draw loop.
(line 7) add plane.rotation into the draw loop
(line 4) add a drawSprites
(line 3) move the background code into the draw loop so that it makes a new background each loop
What keyboard key do you need press to move the sprite?
x
y
up arrow
space
Which direction will the sprite move in the code pictured? (Click on picture to enlarge.)
Left
Right
Up
Down
What is the NAME and starting Y LOCATION of this sprite?
dog, 150
dog, 350
fido, 150
fido, 350
What is the name of the ANIMATION (not the sprite) used in this block of code?
dog
fido
sprite
150
Which line of code creates a sprite?
Line 1
Line 2
Line 8
Line 9
Sets the collider for a sprite.
Checks if the sprite is touching the target sprite or any sprite in the target group.
Makes the sprite and the target bounce when they touch each other. Both the sprite and the target change how they are moving.
Makes the sprite and the target bounce when they touch each other. Both the sprite and the target change how they are moving.
Makes the sprite bounce off the target when they touch each other. The target keeps moving as before.
Makes the sprite push the target as long as they are touching each other. The sprite keeps moving normally.
Makes the sprite bounce off the target when they touch each other. The target keeps moving as before.
Checks if the sprite is touching the target sprite or any sprite in the target group.
The velocity lost or gained by a sprite during a collision or bounce.
What is the variable for this label?
size
name
location
value
What command will create a new variable?
var
name
loc
size
According to slide 7, what is the variable assigned to the x value?
size=100
size=200
x=100
x=200
Match the code with the output
Match the code with the output
Match the code with the output
What will happen when this program is run?
A plane will move across the screen to the left.
A plane will move across the screen to the right.
A plane will move down.
A plane will move up.
What will happen to the sprite with this counter pattern?
The sprite will rotate clockwise.
The sprite will move to the right.
The sprite will move to the right.
The sprite will rotate counterclockwise.
What will happen when this code is run?
The balloon will move down if the down arrow is pressed, otherwise it will move up.
The balloon will move up if the up arrow is pressed, otherwise it will move down.
The balloon will move down if the mouse is down, otherwise it will move up.
The balloon will move up if the mouse is down, otherwise it will move down.
If you want a sprite to move on a diagonal path, you will need to update both the sprite's x and y properties.
True
False
In the image, what is the apple's x position at the end of this program?
20
90
110
None, because the program will have an error.
Which of the following lines of code will produce this picture in the grid?
