wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

A sip of JavaScript

Total questions: 9

Worksheet time: 5mins

Name
Class
Date
1.

What kind if code is this?

a)

JavaScript

b)

HTML

c)

C++

d)

Python

2.

JavaScript was first designed as a language for

a)

Making Coffee

b)

Making interactive web pages

c)

Programming the space shuttle

d)

Advanced math processing

3.

"Java" and "JavaScript" are both programming languages. Why was the name JavaScript chosen?

a)

It is very similar to Java

b)

It made people think it was sort of related to Java

c)

Its very useful for making Coffee

d)

Programmers drink a lot of coffee

4.

Does this web page use JavaScript?

a)

No. It just has one line of simple text

b)

Yes. The javascript file is separate

c)

I have no earthly idea.

d)

It can't be determined from information supplied.

5.

What does "console.log" on line 22 do?

a)

It prints out some information to help programmers like me understand how the code works

b)

It puts another log on the fire

c)

It moves the web page to the location (x, y)

d)

It plots an X-Y graph

6.

The function parameter "e" on line 18 is abbreviation for what what word?

a)

Event

b)

Evergreen

c)

Entity

d)

Enter

7.

What does line 27 do?

a)

Tells the browser window to call onMouseMove when the user moves a cursor over the page.

b)

Moves the mouse cursor to the center of the web page.

c)

Pulls the the mouse's tail.

8.

This snippet of code is most likely from what language?

a)

HTML

b)

Python

c)

JavaScript

d)

C++

9.

What is the purpose of the call to the function stroke() on line 30

a)

Stop the code

b)

Draw the path like a pen or paintbrush stroke.