Worksheetsjava script
Total questions: 10
Worksheet time: 5mins
Which of the following is not JavaScript Data Types?
Undefined
Number
Boolean
Float
Which of the following is correct about features of JavaScript?
It can not Handling dates and time.
JavaScript is a object-based scripting language.
JavaScript is not interpreter based scripting language.
All of the above
Which of the following is the correct syntax to display "WadJava" in an alert box using JavaScript?
alert-box("WadJava");
confirm("WadJava");
msgbox("WadJava");
alert("WadJava");
Choose the correct JavaScript syntax to change the content of the following HTML code.
document.getElement (“WadJava").innerHTML = "I am a WadJava";
document.getElementById (“WadJava").innerHTML = "I am a WadJava";
document.getId (“WadJava") = "I am a WadJava";
document.getElementById (“WadJava").innerHTML = I am a WadJava;
What will be the output of the following Javascript code?
var string1 = "WadJava";
var intvalue = 30;
alert( string1 + intvalue );
WadJava 30
30
WadJava30
Exception
Which symbol is used for comments in Javascript?
\\
//
\* *\
\* */
Javascript string using double quotes is exactly the same as a string using single quotes?
True
False
Find output of below code
var a = '20';
var b = a = 30;
document.write(a+b);
Error in Script
'20'30
2030
50
What is divide by 0 in Javascript? var a = 10;
var b = 0;
document.write(a/b);
Nothing is printed
0 is printed
Infinity is printed
Some Garbage Value
In JavaScript, Arrays are data type. State True or False
True
False
