NEW
Font size
Worksheets6th and 7th Post-assessment
Total questions: 60
Worksheet time: 55mins
Drawing in Game Lab, what is debugging?
Part of a program that does not work correctly
Finding and fixing problems in an algorithm or program
An algorithm that has been coded into something that can be run by a machine
none of the above
Drawing in Game Lab, what is a program?
An algorithm that has been coded into something that can be run by a machine
Finding and fixing problems in an algorithm or program
Part of a program that does not work correctly
none of the above
Shapes and Randomization, what is a parameter?
Part of a program that does not work correctly
Finding and fixing problems in an algorithm or program
An extra piece of information passed to a function to customize it for a specific need
none of the above
Variables, what is a variable?
An extra piece of information passed to a function to customize it for a specific need
An algorithm that has been coded into something that can be run by a machine
A placeholder for a piece of information that can change
none of the above
The Draw Loop, what is the frame rate?
a single image within an animation
a series of images that create the illusion of motion by being shown rapidly one after the other
he rate at which frames in an animation are shown, typically measured in frames per second
none of the above
Boolean
A single value of either TRUE or FALSE
Any valid unit of code that resolves to a value.
Part of a program that does not work correctly.
If-Statement
The common programming structure that implements "conditional statements".
Attributes that describe an object's characteristics
An algorithm that has been coded into something that can be run by a machine.
Part of a program that does not work correctly.
Conditionals
Any valid unit of code that resolves to a value.
a single image within an animation
Statements that only run under certain conditions.
Any valid unit of code that resolves to a value.
a precise sequence of instructions for processes that can be executed by a computer.
variable
algorithm
property
procedure
any valid unit of code that resolves to a value
conditionals
if statement
expression
boolean
in programming, an expression that evaluates to True or False.
Boolean Expression
If statement
Expression
Variable
The line of code that will change the fill color to a pseudo random rgb setting is which of the following?
fill(randomNumber(0,255),randomNumber(0,255),randomNumber(0,255));
fill(randomNumber(0,255),randomNumber(0,255),randomNumber(0,255))
fill(randomnumber(0,255),randomnumber(0,255),randomnumber(0,255));
Dfill(randomnumber(0,255),randomnumber(0,255),randomnumber(0,255))
To speed up a sprite that has a positive velocity, you need to _______________ to the velocity inside the counter pattern.
add
subtract
move
draw
If changing velocityY of a sprite, a positive value will move the sprite in what direction?
Up
Down
Left
Right
If changing velocityX of a sprite, a positive value will move the sprite to the ____________________.
right
left
up
down
The copy button is useful for creating __________________ version(s) of an animation for a sprite, such as pointing in different directions, or jumping and walking animations.
one
smalller
single
duplicate
Where should functions be created if there is a draw loop?
Inside the draw loop
Above the draw loop
Below the draw loop
Do not use a function
What is the variable name in this code?
var cat=createSprite(30, 350);
cat
var
createSprite
Sprite
How would you read this variable aloud: car.x=50?
car x gets 50
car dot x is equal to 50
car dot x gets the value of 50
car dot x is equal to the number 50
When coding in Javascript, which of the following is a good name for a variable?
2yellowcat
twoYellowCat
twoYellowcat
twoyellowCat
Makes the sprite bounce off the target when they touch each other. The target keeps moving as before.
sprite.collide(target)
sprite.setCollide(target)
sprite.displace(target)
sprite.bounceOff(target)
Declares and assigns an initial value to a variable
var x= ;
sprite.x
sprite.scale
sprite.setAnimation (label)
rect(x, y, w, h)
The x position of the center of the sprite
var x= ;
sprite.x
sprite.scale
sprite.setAnimation (label)
rect(x, y, w, h)
Shrinks or grows a sprite keeping the height to width ratio the same
var x= ;
sprite.x
sprite.scale
sprite.setAnimation (label)
rect(x, y, w, h)
Uses the Animation tab to load images and animations for your sprites
var x= ;
sprite.x
sprite.scale
sprite.setAnimation (label)
rect(x, y, w, h)
Draws a rectangle onto the display
var x= ;
sprite.x
sprite.scale
sprite.setAnimation (label)
rect(x, y, w, h)
Clockwise rotation change in degrees per frame of the sprite
sprite.bounceOff()
sprite.rotationSpeed
sprite.isTouching()
sprite.debug
Which of the following Random Number functions would return a value between 1 and 10?
randomNumber(10);
randomNumber(1, 10);
randomNumber(1-10);
random(10);
A computer speaker is an input?
True
False
The Draw Loop, what is a frame?
a series of images that create the illusion of motion by being shown rapidly one after the other
A graphic character on the screen with properties that describe its location, movement, and look
a single image within an animation
none of the above
What is the default frame rate of the draw function?
1
30
60
120
