wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Brian Quizz

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

How many columns can fit in a row?

a)

4

b)

6

c)

12

d)

15

2.

8%2

a)

4

b)

0.16

c)

NaN

d)

0

3.

You know how to declare variables, right? Which of the following is not correct?

a)

var

b)

constant

c)

let

d)

all are correct

4.

Which is the odd one out?

a)

var

b)

let

c)

const

5.

Which operator can you use instead of .concat( ) ?

a)

/

b)

+

c)

-

d)

*

e)

%

6.

Which of the following is not a data type?

a)

null

b)

strings

c)

booleans

d)

none

7.

All values returned from a prompt are saved as strings. True or False?

a)

True

b)

False

c)

I don't know

8.

Fizz Buzz challenge:

11, __, 13, 14, fizz, buzz, 17, fizz, 19, buzz

Fill in the __

a)

fizz

b)

buzz

c)

fizbuzz

9.

Adding numbers with loops. What will be be printed as the total?

var total = 5;

var summands = [1, 2, 3, 4, 5];

summands.forEach(function(summand) {

total += summand;

});

alert(total);

a)

5

b)

10

c)

15

d)

20

10.

Which is not a way of converting data types?

a)

parseNum( )

b)

parseInt( )

c)

parseFloat( )

d)

.toString( )