Font size
WorksheetsCode.org Unit 3 Lesson 1-6
Total questions: 45
Worksheet time: 24mins
Which cod produces this image?
This code will produce the picture shown.
TRUE
FALSE
Which square was drawn first?
BLUE
RED
To draw a square in GameLab, which code is needed?
What is a STROKE in Gamelab?
The FILL color inside the shape.
Locations on the coordinate plane.
The color of the shape's border or outline.
The distance between positions of shapes.
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)
The position of an object on a grid is represented by __ and __ coordinates.
x and y
w and h
x and w
h and y
What is an ALGORITHM?
It is a computer
A set of step by step instructions for problem solving.
It's a math idea
Part of a program that does not work correctly.
error
ellipse
bug
overlay
Finding and fixing problems in an algorithm or program.
sequencing
debugging
programing
overlaying
Which of the following is an example of an ellipse?
Which of the following shapes would the rect command create?
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 default size of a rectangle as shown below?
50 by 50
100 by 100
25 by 25
200 by 200
What is the default fill color?
Transparent
Gray
Blue
Black
White
To change the color inside a shape, you use what block?
None of these
What is the location of the ellipse?
(100,100)
(100,300)
(300,100)
(300,300)
To draw a circle, you use which of these?
The distance between grid lines in Game Lab is _______ pixels.
32
50
100
128
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
The first parameter in the () after an ellipse or rectangle code is:
height
width
x coordinate point
y coordinate point
The second parameter in the () after an ellipse or rectangle code is:
height
width
x coordinate point
y coordinate point
The third parameter in the () after an ellipse or rectangle code is:
height
width
x coordinate point
y coordinate point
The fourth parameter in the () after an ellipse or rectangle code is:
height
width
x coordinate point
y coordinate point
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 reason or reasons make your teacher dislike this code?
The syntax is wrong which makes the program not work
The program lacks whitespace and is very difficult to read
The program lacks comments making the program hard to read and debug
The program is not in blockly
Which variable is named correctly?
BlueFish
Bluefish
blueFish
BLUEFISH
What is x value in the following code?
rect(250, 200, 75, 225);
250
200
75
225
What is width of the rectangle in the following code?
rect(250, 200, 75, 225);
250
200
75
225
What is y value in the following code?
rect(250, 200, 75, 225);
250
200
75
225
Which answer shows the code to draw this image?
Which answer contains the code to draw this image?
Brainstorming with team members to come up with a plan, think of any possible problems.
Define
Prepare
Try
Reflect
Will this code work? Why or why not?
Yes, it will work and make a circle on the center of your screen.
Yes it will work. It has camelCase.
No, it will not work. It has a number to start a name and spaces. It also is not case sensitive.
No, it will not work. The variables called are not the same as the variables listed by ellipse, and the rules of naming variables were not followed.
What are the rules you need to follow when naming variables?
Labels cannot include spaces. Labels cannot begin with a number.
Labels cannot include spaces. Labels cannot begin with a number. Be very careful with spelling. Labels are case sensitive.
Labels are case-sensitive. Labels need to be spelled correctly.
Labels should be in camel case. Labels should be spelled correctly. Labels cannot begin with a number.
