wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

untitled

Total questions: 10

Worksheet time: 7mins

Name
Class
Date
1.

How do you call a function in JavaScript?

a)

function: name()

b)

callFunction()

c)

functionName()

d)

function call()

2.

What is a variable in JavaScript?

a)

A variable in JavaScript is a method for defining classes.

b)

A variable in JavaScript is a type of loop used for iteration.

c)

A variable in JavaScript is a function that performs calculations.

d)

A variable in JavaScript is a named container for storing data values.

3.

Which of the following is a data type in JavaScript: String, Number, or Both?

a)

Array

b)

Both

c)

Boolean

d)

Character

4.

How do you declare a variable in JavaScript?

a)

You can only use 'let' to declare variables.

b)

Variables are declared with 'declare'.

c)

You declare a variable in JavaScript using 'var', 'let', or 'const'.

d)

You declare a variable using 'define'.

5.

How do you declare a variable in JavaScript?

a)

You can only use 'let' to declare variables.

b)

Variables are declared with 'declare'.

c)

You declare a variable in JavaScript using 'var', 'let', or 'const'.

d)

You declare a variable using 'define'.

6.

In which year was JavaScript developed

a)

1995

b)

1985

c)

1975

d)

1997

7.

Which og the following is used to add single line comments in JavaScript

a)

:

b)

//

c)

;

d)

" "

8.

Which of the following languages is used to make dynamic web pages?

a)

HTML

b)

CSS

c)

javaScript

d)

None of these

9.

Java is developed by (a)   , a Netscape Communication Corporation programmer.

10.

Which of the following tags is used to add JavaScript in web pages?

a)

<JavaScript>

b)

<head>

c)

<script>

d)

All of these