WorksheetsFinal Review - Intro to CS 2021 (Part 4)
Total questions: 30
Worksheet time: 15mins
Which of the following are true about this grid:
the top left is (0, 0)
the bottom right is (400, 400)
the bottom left is (0, -400)
if I put a square at (400, 400) it will show up on the grid
What coordinates would your
squares have to be placed at to
recreate this image?
(0, 0) and (400, 400)
(100, 20) and (400, 400)
(0, 0) and (350, 350)
(0, 400) and (400, 0)
Part of a program that does not work correctly.
error
ellipse
bug
overlay
A character on the screen with properties that describe its location, movement, and look.
Variable
Property
Random
Sprite
Which of these are names that can be used for a variable?
petalSize
3coordinates
number1
petal count
What will most likely be displayed by this code?
Hint: look at where the drawSprites is located.
pig
rectangle
bear
circle
What text will be displayed by this code?
words
hello
0
15
Nothing
Which of these is the correct way to use a draw loop?
What color is the ellipse?
Gray
Red
Blue
Red with blue border
Blue with red border
Which sprite will be moving?
Cow
Pig
Both the Cow and Pig
None of them
In which direction will the sprite move?
left
right
up
down
Choose all of the blocks that create a new variable in Game Lab.
Every block in Game Lab represents a piece of Javascript code.
True
False
What is the final value of x when this program runs?
3
4
0
Nothing. An error will occur.
What should be changed about this code?
Nothing. It is the best way to write this code.
The blocks should be reordered.
The variable names don't match.
You must always set a variable to equal a number.
Which statement is most accurate about this code?
The program will not run.
The ellipse is very wide.
The ellipse is at the right.
The ellipse is at the left
The ellipse is very tall.
What is wrong with this code?
x has been declared more than once using var.
Values should not exceed 100.
Nothing. It is perfectly fine as is.
Which tool will select a large area of the same color with a single click?
Which tool will erase what is under the mouse?
Which tool(s) allow you to draw?
Which tool(s) allow you to select parts of the picture?
Which of these tools are available in Game Lab?
What location does the x and y of a rectangle represent?
What location does the x and y of an ellipse represent?
What is the location of the ellipse?
(100,100)
(100,300)
(300,100)
(300,300)
If the y-coordinate of a point is increasing, then it is moving _______.
up
down
left
right
If the x-coordinate of a point is decreasing, then it is moving _______.
up
down
left
right
What will be displayed by this code?
A yellow rectangle on black background
Only a black background
A red rectangle on black background
A red rectangle on a yellow background
Which of these values are not likely to be used for this Game Lab code block? (Choose all that apply)
-300
250
50
300
500
What color will be displayed?
Red
Green
Blue
Yellow
