WorksheetsJavaScript Operators & Expressions – Day 2 Quiz (20 MCQs)
Total questions: 20
Worksheet time: 10mins
What is the output of 5 + 3 * 2?
16
11
10
13
Which operator is used for exponentiation in JavaScript?
^
**
exp()
pow()
Which operator checks both value and type equality?
==
!=
===
=
What is the output of 10 % 3?
3
1
0
10
The result of typeof(10 + "5") is:
"number"
"string"
"object"
"undefined"
What does a += 5 mean?
a = a + 5
a = a - 5
a = 5
a = 5 + 5
Which of the following is not a comparison operator?
>=
!=
&&
<
What is the output of "5" == 5 and "5" === 5?
true, true
false, true
true, false
false, false
Which operator is used for logical AND?
||
&&
&
AND
What will be printed?
true
false
undefined
Error
What is the output of the code?
25
10
15
20
What is the output of !(5 > 2)?
true
false
undefined
NaN
What will be printed?
A
B
true
false
What is the value of this expression?
9
12
18
6
What is the output of the following?
22
2
20
NaN
What is the output of:
2
true
false
NaN
Evaluate this:
true
false
Error
undefined
What will be printed?
Hello ${name}
Hello name
Hello John
Error
Which of the following has highest precedence?
*
+
()
&&
What is the result of:
38
58
83
8
88
