wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Individuals and Variables of Data

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Which of the following is/are strings?

a)

4

b)

4.0

c)

'4'

d)

3.9

2.

What is the result of 80 + 71.2?

a)

151.2

b)

151

c)

8071.2

d)

-151

3.

What is the result of 2 + "2"?

a)

4

b)

"4"

c)

2

d)

22

4.

Does 100 + 30 produce a number or a string?

a)

Number

b)

String

5.

Which of this are datatype?

a)

String

b)

variable

6.

Which of this is a valid variable name in Javascript?

a)

111abc

b)

abc111

c)

abc 111

d)

abc111!

7.

Which of this lines show the correct way to reassign a variable to a new value?

a)

ironMAN=1000;

b)

1000->ironMAN;

c)

var ironMAN=1000;

d)

1000 = ironMAN;

8.

Which of this lines of code is a valid JavaScript for defining a variable?

a)

var carBmw = 10;

b)

carBmw is 10;

c)

var carBmw == 10;

d)

var = carBmw 10;

9.

Variable in JavaScript can hold ___ value at a time

a)

Multiple

b)

Double

c)

None of these

d)

Single

10.

We can declare all type of variables in JavaScript with the keyword ____

a)

var

b)

obj

c)

jvar

d)

None of these