wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

JavaScript variable quiz

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What keyword do you need to use to define a variable in JavaScript?

a)

X

b)

Variable

c)

int

d)

Var

2.

Number, Boolean, String; are basic what?

a)

Data Types

b)

Data

c)

Variables

d)

Variable data

3.

int, is an example of a?

a)

Data Type

b)

Variable

c)

Data list

d)

Variable list

4.

3.97 is an example of a

a)

Data Type

b)

Boolean

c)

Float

d)

Integer

5.

var cost = 40.57; is an example of what?

a)

declearing

b)

initializing

c)

assigning

d)

none of the above

6.

var testTime = true; is an example of what data type?

a)

integer

b)

boolean

c)

string

d)

float

7.

True or False: $today_Scoer

is a proper naming convention

a)

True

b)

False

8.

True or False: SummerTime

Is a proper naming convention

a)

True

b)

False

9.

True or False: _Mondaylunch

is proper naming convention

a)

True

b)

False

10.

True or False: Var good Day;

is a proper naming for variables

a)

True

b)

False