wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Javascript mine

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

Inside which HTML element do we put the JavaScript?

a)

<scripting>

b)

<Javascript>

c)

<Script>

d)

<Js>

2.

Where is the correct place to insert a JavaScript?

a)

Both the <head> and <body> section.

b)

<Head> section

c)

<Body> section

3.

How can you add a comment in a JavaScript?

a)

//This is a comment

b)

<!--This is a comment-->

c)

"This is a comment"

4.

How to insert a comment that has more than one line?

a)

/*This comment has more than one line*/

b)

//This comment has more than one line//

c)

<!- -This comment has more than one line- ->

5.

JavaScript is the same as Java.

a)

True

b)

False

6.

Is JavaScript case-sensitive?

a)

Yes

b)

No

7.

What is the main characteristic of a programming language that distinguishes it from a scripting language?

a)

Only Languages developed by Microsoft can be called Programming language

b)

Scripting languages are open source while programming language is developed by private organisations.

c)

Programming languages are compiled whereas scripting languages are interpreted.

8.

Official name of Javascript?

(a)  

9.

Javascript was created by (a)   -

10.

Mention one feature or use of Javascript.

4 lines
11.

A variable in Javascript is a (a)   for information you want to store.

12.

The keyword used to declare a variable is (a)  

13.

The variable's value can change during the script

a)

True

b)

False

14.

var x=100

x=x+25

What is the current value of the variable.

a)

100

b)

25

c)

125

d)

225

15.

A variable name can only start with ________, __________ and ________

(a)