www.ITISkill.com
Home
JAVASCRIPT AND CREATING WEB PAGE - Quiz
Categories
Computer Operator and Programming Assistant (COPA)
JAVASCRIPT AND CREATING WEB PAGE
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
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
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
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
Submit Quiz