wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

JavaScript Operators

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

What symbol represents the and operator in JavaScript?

a)

AND

b)

and

c)

&

d)

&&

2.

What symbol represents the or operator in JavaScript?

a)

OR

b)

or

c)

||

d)

|

3.
Which of the following is the correct way to declare a variable?
a)
variable myName
b)
var myName
c)
MY_NAME
d)
VAR myName
4.
Which one of the following is NOT a logical operator?
a)
||
b)
&&
c)
$$
d)
!
5.
Arithmetic Operators - 
What is + ?
a)
Addition
b)
Subtraction
c)
Multiplication
d)
Division
6.
Arithmetic Operator
What is a - ?
a)
Addition
b)
Subtraction
c)
Multiplication
Multiplication
d)
Modulo
7.
Arithmetic Operator
What is a * ?
a)
Addition
b)
Subtraction
c)
Multiplication
d)
Modulo
8.
Arithmetic Operators
What is a / ? 
a)
Addition
b)
Subtraction
c)
Division
d)
Modulo
9.
Arithmetic Operators
What is ++ ?
a)
Modulo
b)
increment
c)
Decrement
d)
Addition
10.
Comparision Operators
What is == ? 
a)
Equal to 
b)
Equal value and equal type
c)
Not equal
d)
Not equal value or not equal type
11.
Arithmetic Operators
What is -- ?
a)
Division
b)
Modulo
c)
Increment
d)
Decrement
12.
Comparision Operators
What is === ? 
a)
Equal to
b)
Equal value and equal type
c)
Not equal
d)
Not equal value or not equal type
13.
Comparison Operators
What is != ?
a)
Equal to
b)
Equal value and equal type
c)
Not equal
d)
Not equal value or not equal type
14.
Comparision Operators
What is ! == ?
a)
Equal to 
b)
Equal value and equal type
c)
Not equal
d)
Not equal value or not equal type
15.
Comparison Operators
What is >= ?
a)
Greater than
b)
Less than
c)
Greater than or equal to
d)
Less than or equal to
16.
Comparison Operator
What is <= ?
a)
Greater than
b)
Less than
c)
Greater than or equal to
d)
Less than or equal to 
17.
Logical Operators
What is && ? 
a)
And
b)
Or
c)
Not
d)
Less than
18.
Logical Operators
What is ! ?
a)
And
b)
Or
c)
Not
d)
Less than
19.
The conditional statement, in Javascript, begins with the word _______.
a)
Then
b)
Else
c)
If
d)
OK
20.
What syntax follows after an if statement?
a)
parenthesis
b)
curly braces
c)
a colon
d)
square brackets