Font size
WorksheetsComputer Discoveries I - Games & Animations Test Review
Total questions: 25
Worksheet time: 15mins
Which command creates a rectangle on the screen?
ellipse()
rect()
circle()
triangle()
What parameters are needed to create a rectangle?
X, Y
X, Y, Radius
X, Y, Width, Height
Width, Height
Which command changes the color inside a shape?
fill()
background()
fill()
stroke()
What does the ellipse() command create?
rectangle
square
line
circle or oval
Which of the following commands will change the background color?
rect()
fill()
draw()
background()
What is the correct syntax for drawing a rectangle at (100, 100) with a width of 50 and a height of 75?
rect(100, 100, 50, 75);
rect(50, 75, 100, 100);
shape(100, 100, 50, 75);
rectangle(100, 100, 50, 75);
If you wanted to move a shape to the right on the screen, which parameter would you change?
Width
Y
Height
X
The command (a) () is used to draw a circle or oval.
The function (a) () sets the color for the background of your drawing.
In the command rect(200, 150, 50, 50), the number 200 represents the (a) position.
To change the height of a rectangle, you would adjust the (first, second, third, or fourth) (a) parameter.
The command ellipse(50, 50, 100, 100) will draw a circle.
True
False
The command fill(255, 0, 0) will set the color of shapes to blue.
True
False
The X value in a shape command controls the vertical position on the screen.
True
False
A sprite must be drawn using the drawSprite() command after it is created.
True
False
Which parameters affect the size of an ellipse?
X
Y
Width
Height
Which parameters define the position of a rectangle?
X
Y
Width
Height
What is a parameter in programming?
A piece of code
Additional input for a block
A graphic element
A name for a value
What is a bug in programming?
An error in the program
A comment in the code
A new feature in a game
A type of variable
What does debugging refer to?
Writing a new algorithm
Adding a new variable
Finding and fixing issues
Creating a sprite
What is a variable?
A moving sprite
A label for storing information
A special type of block
A command to draw a shape
What is a program?
A group of sprites
A machine's action
An algorithm that runs on a machine
A collection of bugs
What does a sprite represent in a program?
A block of code
character with movement and properties
A type of bug
A type of variable
What does a parameter do in a block?
Moves the sprite
Provides customization for a block
Adds a bug to the program
Debugs the code
Which of the following best defines a program?
A set of instructions for a machine
A character in a game
An error in the code
A label for storing information
