NEW
Font size
WorksheetsIndividuals and Variables of Data
Total questions: 10
Worksheet time: 5mins
Which of the following is/are strings?
4
4.0
'4'
3.9
What is the result of 80 + 71.2?
151.2
151
8071.2
-151
What is the result of 2 + "2"?
4
"4"
2
22
Does 100 + 30 produce a number or a string?
Number
String
Which of this are datatype?
String
variable
Which of this is a valid variable name in Javascript?
111abc
abc111
abc 111
abc111!
Which of this lines show the correct way to reassign a variable to a new value?
ironMAN=1000;
1000->ironMAN;
var ironMAN=1000;
1000 = ironMAN;
Which of this lines of code is a valid JavaScript for defining a variable?
var carBmw = 10;
carBmw is 10;
var carBmw == 10;
var = carBmw 10;
Variable in JavaScript can hold ___ value at a time
Multiple
Double
None of these
Single
We can declare all type of variables in JavaScript with the keyword ____
var
obj
jvar
None of these
