wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

DTJSQuiz

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Which one is a good example of data type string value?

a)

123string

b)

 ‘string123’

c)

string

d)

Iam + ‘String’

2.

Which is NOT considered as javascript number data type

a)

456.0

b)

456e7

c)

1223456n

d)

789f

3.

What is the result of this statement?

console.log('Boolean(10) is ' + Boolean(10));

a)

true

b)

false

4.

var motorcyle =["honda,"" kawasaki"," yamaha"];

this line of statement is an example of data type

a)

string

b)

object

c)

array

d)

undefined

5.

let student;

console.log(student);

the variable student is an example of data type

a)

string

b)

object

c)

array

d)

undefined

6.

This data type value is treated as special which represents empty or unknown. Which keyword is being used to characterize this variable?

a)

variable

b)

null

c)

void

d)

zero

7.

let mobilePhone = {

name: 'iphone',

model: '15',

price: 'Php 56,990' };

This js code is an example of data type

a)

array

b)

string

c)

object

d)

number

8.

let o = "Ocean" + 5 + 3;

console.log(o);

The result is:

a)

error

b)

NaN

c)

Ocean53

d)

"Ocean"53

9.

When you code and run this line of code

console.log(typeof 123)

will result into

a)

string

b)

number

c)

undefined

d)

null

10.

This data type is very useful when a programmer wants to check the condition while validating something in the script.

a)

string

b)

object

c)

array

d)

boolean