NEW
Font size
WorksheetsCSD Unit 3 - Interactive Animations and Games' Assessment
Total questions: 25
Worksheet time: 25mins
How are shapes plotted on the screen?
with alphabet letters
with X and Y coordinates
using a touch screen
with width and height values
The x value represents...
How far away from the left of the screen
How far away from the right 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 bottom of the screen
How far away from the top of the screen
What is the origin of a square or rectangle?
The bottom right corner
The bottom left corner
The top right corner
The top left corner
What is the origin of a circle or ellipse?
The bottom left corner
The center
The bottom right corner
The top
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
Given rect(x, y, w, h); what are w and h?
width and heavy
width and tallness
width and length
width and height
The line of code: background("red"); will change what red?
Any shapes on the screen
The background
The foreground
Nothing
What line of code will change the color of any shapes coded below it?
color
rect
weight
fill
What does the randomNumber line of code do?
picks the same number every time
picks any number from zero to infinity
picks any number from the minimum and maximum that you set
it doesn't do anything
Can you use the randomNumber line of code to replace a single value, such as a y value?
Yes!
No!
This line of code does what?
var hello = 100
creates a variable
names or labels the variable "hello"
sets the value of the variable hello to 100
All three are correct
Which command matches this block of code?
Creates a new sprite and assigns it to the variable specified.
Declares and assigns an initial value to a variable
Draws an ellipse onto the display centered at x and y and inscribed in a rectangle with sides length w(idth) and h(eight).
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.
Finding and fixing problems in an algorithm or program.
Bug
Variable
Property
Debugging
A graphic character on the screen with properties that describe its location,
Sprite
Property
Animation
Variable
A series of images that create the illusion of motion by being shown rapidly one after the other
Frame
Animation
Bug
What is x value in the following code?
rect(250, 200, 75, 225);
250
200
75
225
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
