WorksheetsJavascript Basics (Khan Academy)
Total questions: 15
Worksheet time: 8mins
The x and y parameters for ellipses and rectangles control the shape's
position
size
radius
color
The x and y parameters of an ellipse control the position of the shape's
centerpoint
top left corner
top right corner
radius
The x and y parameters of a rectangle control the position of the shape's
centerpoint
top left corner
top right corner
radius
The point (0, 0) on the Khan Academy JS canvas is located at the
top right corner
top left corner
bottom right corner
bottom left corner
The (x, y, w, h) in a command are called "parameters".
True
False
The 'X' parameter
moves the object left and right
moves the objectup and down
changes with width
changes the height
The 'Y' parameter
moves the object left and right
moves the object up and down
makes the object wider or thinner
makes the object taller or smaller
The 'W' parameter
moves the object left and right
moves the object up and down
makes the object thicker or thinner
makes the object taller or shorter
The 'H' parameter
moves the object left and right
moves the object up and down
makes the object wider or thinner
makes the object taller or shorter
What symbols do you use to write a comment in your code?
()
;
//
\\
In the following line of code - rect(200, 150, 50, 120); What does the first number (200) stand for?
X
Y
W
H
In the following line of code - rect(200, 150, 50, 120); What does the last number (120) stand for?
X
Y
W
H
