NEW
Font size
WorksheetsBasic JavaScript Vocabulary
Total questions: 20
Worksheet time: 10mins
What is JavaScript?
A type of fruit
A programming language
A musical instrument
A type of dance
What does the term "Background" refer to?
The color of the text
The color of the screen behind all the shapes/drawings
The color of the border of a shape
The color of a button
What are "Parameters" in programming?
The color of a shape
The numbers/values inside the blocks of code
A type of error in the code
A programming language
What does "Fill" refer to in the context of shapes?
The color inside of a shape
The color of the border of a shape
The size of a shape
The position of a shape
What is a "Stroke" in terms of shapes?
The color inside of a shape
The color of the border of a shape
The size of a shape
The position of a shape
What is a "Bug" in programming?
A type of insect
A part of a program that does not work
A programming language
A type of computer
What does it mean to "Debug" a program?
To write new code
To find and fix the errors in the code
To delete the code
To run the code
What is a "Variable" in programming?
A type of error
A label for a piece of information used multiple times in a program
A programming language
A type of computer
What are "Random Numbers" in programming?
Numbers that are always the same
A block of code that will generate a number between a minimum & maximum
Numbers that are between 0 and 400
Numbers that are always one
What does "RGB" stand for?
Red, Green, Blue
Red, Gold, Black
Red, Gray, Brown
Red, Green, Black
What is the range of numerical values for each color in RGB?
0 to 100
0 to 255
0 to 50
0 to 500
What does a value of 0 represent in RGB?
The most saturated color
The least saturated color
A medium saturated color
A random color
What does a value of 255 represent in RGB?
The most saturated color
The least saturated color
A medium saturated color
A random color
What is an ellipse?
rectangle
point
polygon
circle or oval
When plotting coordinates in game lab you should use which order?
x across then y up
start from the middle 200x200
x across then y down
x down then y across
When coding a rectangle, which part of the rectangle is the x, y position?
the center of the rectangle
the upper right corner
the lower left corner
the upper left corner
When coding a straight line what are the four parameters in the block of code?
x, y, width, height
x, y, stroke, width
x, y, x, y
width, height, x, y
Why do we sometimes include grey comments in our code even though they don't affect anything?
to keep our code confusing and hard
to keep our code organized and easy to follow
to make our objects move on the screen
to tell the computer what to do with our code
What is wrong with this block of code?
the ellipse cannot have random numbers in its parameters
the y position needs a random number
the random number (minimum/maximum) is in the wrong order
the random number maximum cannot be 400
