wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Javascript

Total questions: 40

Worksheet time: 24mins

Name
Class
Date
1.

A _______________________ is a single image in an animated production.

a)

Picture

b)

Photo

c)

Frame

d)

Asset

2.

Does timing matter when making a animation?

a)

Yes

b)

No

3.

An algorithm that has been coded into something that can be run by a machine.

a)

Program

b)

HTML

c)

Tag

d)

Google Drive

4.

Part of a program that does not work correctly.

a)

Bug

b)

Debugging

c)

HTML

d)

Tag

5.

Finding and fixing problems in an algorithm or program.

a)

Bug

b)

JavaScript

c)

Heading

d)

Debugging

6.

A tool that programmers use to position images in a program. Consists of x and y coordinates.

a)

HTML

b)

Grid

c)

Table

d)

Tag

7.

What is the center point of the JavaScript grid on Code.org?

a)

0,0

b)

200,200

c)

400,400

d)

50,50

8.

How many units is each square inside of the program grid worth?

a)

10

b)

100

c)

40

d)

50

9.

How many total units is one side of the program grid worth?

a)

1,000

b)

500

c)

400

d)

2,000

10.

What are the coordinates of the red square?

a)

0,0

b)

200,200

c)

100,100

d)

0,50

11.

What is the JavaScript code to create a square in the program?

a)

ellipse

b)

FillColor

c)

rect

d)

None of these

12.

What will the code produce in the program?

a)
b)
c)
d)
13.

how would the following objects be arranged in the program?

a)

The red square will be located at 175, 175 underneath the blue square which will be at 200, 200.

b)

The red square will be located at 200, 200 above the blue square which will be at 175, 175.

c)

Both squares will not be visible on the program.

d)

The red square will be located at 200, 200 underneath the blue square which will be at 175, 175.

14.

A placeholder for a piece of information that can change.

a)

Variable

b)

rect

c)

Bug

d)

Debugging

15.

Which of the following is a line of code for a variable?

a)
b)
c)
d)
16.

Attributes that describe an object’s characteristics.

a)

Coordinates

b)

Grid

c)

Ellipse

d)

Properties

17.

A graphic character on the screen with properties that describe its location, movement, and look.

a)

Ellipse

b)

Sprite

c)

RandomNumber

d)

Grid

18.

Which of the following is the correct sequence of code to get a sprite with an animation to appear in the program?

a)
b)
c)
d)
19.

What is Javascript?

a)

programming language

b)

HTML tags

c)

CSS

d)

A web page

20.

You can change an image's size using Javascript?

a)

True

b)

False

21.

What is an individual image within a sequence of images?

a)

Tween

b)

Layer

c)

Animation

d)

Frame

22.

What is the movement or change of objects through time?

a)

Animation

b)

Frame

c)

Layer

d)

Motion Picture

23.

What is the process of creating animated images using computer graphics?

a)

Computer Animation

b)

Stage

c)

Animatic

d)

Arts

24.
Which command colors the background of your canvas?
a)
background 
b)
endShape
c)
var = color
d)
fill
25.
What command draws a rectangle?
a)
rec (10, 20, 100, 200);
b)
rect (10, 20, 100, 200)
c)
rect (10, 20, 100, 200);
d)
ellipse (10, 20, 40, 40)
26.
What command removes the outlines from shapes?
a)
noOutline ();
b)
noColor();
c)
noBorder();
d)
noStroke ();
27.
What command colors a shape?
a)
color (43, 255, 0);
b)
bucket (43, 255, 0);
c)
fill (43, 255, 0);
d)
bucket (43, 255, 0);
28.
What is at the end of a line of code?
a)
#
b)
;
c)
)
d)
>
29.

The "stroke" command means

a)

color inside shape

b)

color outside shape

c)

color of blocks

d)

border

30.

What does the "fill" command do

a)

put letters in the shape

b)

put pictures in the shape

c)

put color in the shape

d)

put code in the shape

31.
Any code that is within the following draw function:
draw = function(){
......
}
a)
Will be performed twice
b)
Will not be performed
c)
Will be performed once
d)
Will be repeated over and over again
32.
A variable is used to:
a)
Store a value in memory
b)
Draw a circle
c)
Store a value that does not change
d)
Draw a rectangle
33.
In a programming language, __________ are used to store data values.
a)
tags
b)
codes
c)
files
d)
variables
34.
JavaScript uses the _______ keyword to define variables.
a)
vrb
b)
var
c)
vari
d)
va
35.

This saves a value, which can be then assigned when writing code

a)

Parameter

b)

Function

c)

Variable

36.

What does FPS stand for?

a)

Frames Per Segment

b)

Frames Per Standards

c)

Frames Per Second

d)

None of the Above

37.

These are used to put information that can be useful later, and in JavaScript these are ignored by the browser.

a)

Comments

b)

Case Sensitivity

c)

Data Types

d)

Statements

38.

Names that refer to commands, functions, variables and keyword should be written correctly, variable “A” and “a” are two different variables.

a)

Comments

b)

Case Sensitivity

c)

Data Types

d)

Statements

39.

What is the value of “a” in the following statement?

var a;

a)

undefined

b)

null

c)

0

d)

NaN

40.

This animated TV series is the longest running TV show ever:

a)

Family Guy

b)

Spongebob

c)

The Simpsons

d)

South Park