NEW
Font size
WorksheetsCode.org Unit 3 1-8 Review
Total questions: 50
Worksheet time: 41mins
ellipse()
rect()
var sprite = createSprite(300, 100);
sprite.setAnimation("Bunny");
drawSprites();
var sprite1 = createSprite (300, 200);
sprite1.setAnimation("Chick");
Line 1: var xPosition
Line 2: ellipse (Xposition, 200, 50, 150);
rect (200, 150, 50, 350);
rect (200, 150, 50, 350);
ellipse(randomNumber(0,400), randomNumber(0,400));
rect (200, 150, 50, 350);
rect (200, 150, 50, 350);
Note: Function is named "multiplyBy2"
//steps to execute function
}
//steps of function
}
What makes the following command invalid: turnleft();
It should end in a colon rather than a semicolon
The letter l should be capitalized - L
It should start with a capital T
The command is correct
Why do we use functions in programs?
A. Make the program easier to read
B. Avoid retyping the same lines of code
C. Both A and B are correct
D. Neither A nor B are correct
In this code, how many times is the "dance" function called and how many times is it defined?
called 1 time, defined 1 time
called 1 time, defined 3 times
called 3 times, defined 1 time
called 3 times, defined 3 times
(assume the function name is doStuff)
//list of steps to execute
}
Sprite
A graphic character on the screen with properties that describe its location, movement, and look.
A placeholder for a piece of information that can change.
Attributes that describe an object's characteristics
An algorithm that has been coded into something that can be run by a machine.
Function
A placeholder for a piece of information that can change.
a series of images that create the illusion of motion by being shown rapidly one after the other
A piece of code that you can easily call over and over again.
Attributes that describe an object's characteristics
Property
Attributes that describe an object's characteristics
An algorithm that has been coded into something that can be run by a machine.
Pulling out specific differences to make one solution work for multiple problems.
An algorithm that has been coded into something that can be run by a machine.
Animation
The common programming structure that implements "conditional statements".
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.
Pulling out specific differences to make one solution work for multiple problems
Frame Rate
the rate at which frames in an animation are shown, typically measured in frames per second
Pulling out specific differences to make one solution work for multiple problems.
A graphic character on the screen with properties that describe its location, movement, and look.
A placeholder for a piece of information that can change.
Frame
a single image within an animation
Finding and fixing problems in your algorithm or program.
the rate at which frames in an animation are shown, typically measured in frames per second
in programming, an expression that evaluates to True or False.
Variable
An extra piece of information that you pass to the function to customize it for a specific need.
The common programming structure that implements "conditional statements".
Attributes that describe an object's characteristics
A placeholder for a piece of information that can change.
