wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Basic JavaScript Vocabulary

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

What is JavaScript?

a)

A type of fruit

b)

A programming language

c)

A musical instrument

d)

A type of dance

2.

What does the term "Background" refer to?

a)

The color of the text

b)

The color of the screen behind all the shapes/drawings

c)

The color of the border of a shape

d)

The color of a button

3.

What are "Parameters" in programming?

a)

The color of a shape

b)

The numbers/values inside the blocks of code

c)

A type of error in the code

d)

A programming language

4.

What does "Fill" refer to in the context of shapes?

a)

The color inside of a shape

b)

The color of the border of a shape

c)

The size of a shape

d)

The position of a shape

5.

What is a "Stroke" in terms of shapes?

a)

The color inside of a shape

b)

The color of the border of a shape

c)

The size of a shape

d)

The position of a shape

6.

What is a "Bug" in programming?

a)

A type of insect

b)

A part of a program that does not work

c)

A programming language

d)

A type of computer

7.

What does it mean to "Debug" a program?

a)

To write new code

b)

To find and fix the errors in the code

c)

To delete the code

d)

To run the code

8.

What is a "Variable" in programming?

a)

A type of error

b)

A label for a piece of information used multiple times in a program

c)

A programming language

d)

A type of computer

9.

What are "Random Numbers" in programming?

a)

Numbers that are always the same

b)

A block of code that will generate a number between a minimum & maximum

c)

Numbers that are between 0 and 400

d)

Numbers that are always one

10.

What does "RGB" stand for?

a)

Red, Green, Blue

b)

Red, Gold, Black

c)

Red, Gray, Brown

d)

Red, Green, Black

11.

What is the range of numerical values for each color in RGB?

a)

0 to 100

b)

0 to 255

c)

0 to 50

d)

0 to 500

12.

What does a value of 0 represent in RGB?

a)

The most saturated color

b)

The least saturated color

c)

A medium saturated color

d)

A random color

13.

What does a value of 255 represent in RGB?

a)

The most saturated color

b)

The least saturated color

c)

A medium saturated color

d)

A random color

14.

What is an ellipse?

a)

rectangle

b)

point

c)

polygon

d)

circle or oval

15.

When plotting coordinates in game lab you should use which order?

a)

x across then y up

b)

start from the middle 200x200

c)

x across then y down

d)

x down then y across

16.

When coding a rectangle, which part of the rectangle is the x, y position?

a)

the center of the rectangle

b)

the upper right corner

c)

the lower left corner

d)

the upper left corner

17.

When coding a straight line what are the four parameters in the block of code?

a)

x, y, width, height

b)

x, y, stroke, width

c)

x, y, x, y

d)

width, height, x, y

18.

Why do we sometimes include grey comments in our code even though they don't affect anything?

a)

to keep our code confusing and hard

b)

to keep our code organized and easy to follow

c)

to make our objects move on the screen

d)

to tell the computer what to do with our code

19.

What is wrong with this block of code?

a)

the ellipse cannot have random numbers in its parameters

b)

the y position needs a random number

c)

the random number (minimum/maximum) is in the wrong order

d)

the random number maximum cannot be 400

20.
JavaScript uses the _______ keyword to define variables.
a)
vrb
b)
var
c)
vari
d)
va