Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

javascript

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What is JavaScript?

a)

A scripting language

b)

A nucleic acid present in all living cells

c)

A type of rice

d)

A style sheet language used for describing the presentation of a document

2.

These are all uses of JavaScript except for one...

a)

Adds interactive behavior to the webpages.

b)

Develops web server and gaming apps

c)

Creates web and mobile applications

d)

Control how elements are positioned and laid out

3.

What is the tag for External File Script?

a)

<script src="externalfile name.js"> </script>

b)

<script src="file name">

</script>

c)

<script src = "file name.js"> </script>

d)

<script scr="file name.js"> </script>

4.

When was JavaScript invented?

a)

1993

b)

1994

c)

1995

d)

1996

e)

1997

5.

-Used to store data keywords.

-Uses var keyword in declaring ________.

a)

variance

b)

various

c)

variety

d)

variable

6.

Has 'function' or 'block' scope.

a)

Function Scope

b)

Local Scope

c)

Global Scope

d)

Global Scoop

7.

Variables declared inside a block.

a)

Local Scope

b)

Block Scope

c)

Global Scope

d)

Function Scope

8.

Starts with a // and ends with //.

a)

Single Line Comment

b)

Double Line Comment

c)

Multi-Line Comments

d)

Multiple Comments

9.

An __________ (_) is used to assign

values to variables.

a)

Subtraction Sign -

b)

Equal Sign =

c)

Addition Sign +

d)

Parenthesis ()

10.

Used to identify actions to be performed.

a)

CamelCase

b)

Variables

c)

Identifiers

d)

Keywords