wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Final Review - Unit 1

Total questions: 15

Worksheet time: 3hrs 30mins

Name
Class
Date
1.

Which keywords can you use to declare variables?

a)

var

b)

int

c)

let

d)

char

e)

const

2.

Which way of declaring a variable can not be reassigned

a)

var

b)

let

c)

const

3.

Variable names must begin with a letter, an underscore, or a dollar sign $

a)

True

b)

False

4.

Variable names are case sensitive.

a)

True

b)

False

5.

Reserved words cannot be used as names for variables.

a)

True

b)

False

6.

What is the following data type:

1

a)

String

b)

Number

c)

Boolean

d)

Array

e)

Object

7.

What is the following data type:

"10"

a)

Number

b)

String

c)

Boolean

d)

Array

e)

Object

8.

What is the following data type:

[2, "a", 10]

a)

Number

b)

String

c)

Boolean

d)

Array

e)

Object

9.

What is the following data type:

"hello world"

a)

Number

b)

String

c)

Boolean

d)

Array

e)

Object

10.

What is the following data type:

false

a)

Number

b)

String

c)

Boolean

d)

Array

e)

Object

11.

What is the correct way to declare an array?

a)

let arr = (0, 2, 3)

b)

let arr = [0, 2, 3]

c)

let arr = {0, 2, 3}

d)

let arr = <0, 2, 3>

12.

What is the correct syntax to return the John's age from the following object?

let me = {name: 'John', age: 12, favoriteFood: "pizza"}

a)

John.age

b)

age

c)

me.age

d)

12

13.

In JavaScript, "//" is known as a what?

a)

Comment

b)

Askii

c)

Double Division

d)

and

14.

_____ simply means the rules or guidelines for doing something in a language, in our case a programming language.

a)

Syntax

b)

Code

c)

Program

d)

Banana

15.

Creating a variable is called "_____" a variable.

a)

Declaring

b)

Initializing

c)

Setting

d)

Typing