NEW
Font size
WorksheetsJavaScript Math
Total questions: 20
Worksheet time: 10mins
Which of the following operator is used for the Assignment Operator?
==
!
=
+
What is the symbol pair used to write a new line within a string values?
\*
\'
\n
\br
What is the symbol used for the INCREMENT operator in JS?
+
++
=
==
Conditions return values of which data type?
Integer
boolean
floating-point
string
file extension for external JS files
.javascript
.js
.jscript
.script
built in object in JS that allows a script to perform mathematical task
Arithmetic
Math Object
Operation Object
Mathematics Object
used to write comments
++
=
//
--
What is the value of Z at the end of the code?
var x = 5;
var y = x;
y++;
x--;
var z = x +y;
z++;
10
11
9
12
What is the value of x at the end of the code?
var i;
var x=0;
for(i =0; i<10; i++){
x++;
}
10
11
9
12
What is the value of c at the end of the code?
var a = 20;
var b = 14;
a++;
b--;
var c = a - b;
c++;
10
9
11
12
What is the value of Z at the end of the code?
var x = 25;
var y = 11;
y++;
x++;
var z = x - y;
z--;
11
12
13
10
What is the value of t at the end of the code?
var w = 13;
var s = 45;
w++;
s--;
var t = w + s;
t++;
58
51
49
59
