www.ITISkill.com
Home
JAVASCRIPT AND CREATING WEB PAGE - Practice Mode
Categories
Computer Operator and Programming Assistant (COPA)
JAVASCRIPT AND CREATING WEB PAGE
Practice Mode
1) How will javascript treat a number, when it is enclosed with double or single quotes?
Error
Number
String
Zero
Show Answer
Report Question
What's wrong with this question?
Report
Correct Answer: String
Question Details
1) How will javascript treat a number, when it is enclosed with double or single quotes?
Error
Number
String
Zero
2) What will be the output for the following JavaScript code?
var x = 13 +'03'
Alert(x);
16
133
1303
13 03
Show Answer
Report Question
What's wrong with this question?
Report
Correct Answer: 1303
Question Details
2) What will be the output for the following JavaScript code?<br>var x = 13 +'03'<br>Alert(x);
16
133
1303
13 03
3) What will be the output, if the javascript code is executed
var x = 1324;
var y = new Number(1324);
if( x === y)
alert('Yes');
else
alert('No')
Infinity
Error
No
Yes
Show Answer
Report Question
What's wrong with this question?
Report
Correct Answer: Yes
Question Details
3) What will be the output, if the javascript code is executed<br>var x = 1324;<br>var y = new Number(1324);<br>if( x === y)<br>alert('Yes');<br>else<br>alert('No')
Infinity
Error
No
Yes
4) What is the output of the following JavaScript code?
var x = 'ITI';
var y = 'GOVT';
var o = y concat(x)
document.write(o);
ITI GOVT
ITIGOVT
GOVTITI
GOVT ITI
Show Answer
Report Question
What's wrong with this question?
Report
Correct Answer: GOVTITI
Question Details
4) What is the output of the following JavaScript code?<br>var x = 'ITI';<br>var y = 'GOVT';<br>var o = y concat(x)<br>document.write(o);
ITI GOVT
ITIGOVT
GOVTITI
GOVT ITI
5) What is the output of the following javascript code?
var name = 'Kanya Kumari' ;
var x = name.substr(8,2);
document.write(x);
um
ma
ar
Ku
Show Answer
Report Question
What's wrong with this question?
Report
Correct Answer: ma
Question Details
5) What is the output of the following javascript code?<br>var name = 'Kanya Kumari' ;<br>var x = name.substr(8,2);<br>document.write(x);
um
ma
ar
Ku
Previous Question Set
Back to Question Sets
Next Question Set
Try Another Topic
Try Another Quiz