MCQ 1 What will be the output of the following JavaScript code?
var myvar = Boolean('false');
document.getElementById ("demo").innerHTML = myvar;
MCQ 2 Variable declared is example of ________________ Variable.
function message() {
var varname = "Rajiv";
alert(name);
}
MCQ 3 What is the output of the following code?
<script language="javascript">
function x()
{
document.write(2+5+"8");
}
</script>
MCQ 4 Which tag(s) can handle mouse events in Netscape?
MCQ 5 What if you use parseInt() to convert a string containing decimal value?
MCQ 6 Javascript Addition : Addition is
document.write("1 plus 1 is " + 1 + 1);
MCQ 7 What will be the output of the following JavaScript code?
num1=5;
function cal() {
num1=10;
num2=5;
num3=num2*num1;
console.log(num3);
}
cal();
MCQ 8 Which of the following method checks if its argument is not a number?
MCQ 9 Which is the correct way to write a JavaScript array?
MCQ 10 State whether the following statements are True or False for strict equality operator(= = =).
MCQ 11 Which of the following attribute can hold the JavaScript version?
MCQ 12 Which of the following is not a valid JavaScript variable name?
MCQ 13 JavaScript is interpreted by _________
MCQ 14 If the operator value is null, then the unary operator returns the type of _____________
MCQ 15 Which operator is known as the strict equality operator, which checks whether its two operators are identical or not?
MCQ 16 JavaScript can be written __________
MCQ 17 what is the disadvantage of using innerHTML in JavaScript?
MCQ 18 Which operator is known as the equality operator, which checks whether its two operators are "equal"?
MCQ 19 What is the default value of the asyc attribute?
MCQ 20 What will be the output if we compare "ten" and 10 with less then comparison operator( "ten" <10)?
MCQ 21 When a class B can extend another class A, we say that:
MCQ 22 Which of the following is not considered a JavaScript operator?
MCQ 23 Which operator will return false if two value are equal?
MCQ 24 If var A = {B : 3, C : 5}, how to use the delete operator to delete one of the properties of an object.
MCQ 25 What is the purpose of script loading?
MCQ 26 What if we put ++ operator inside if condition? find the output
<script>
var a = 10;
if(a == a++)
document.write(a);
</script>
MCQ 27 What is mean by "this" keyword in javascript?
MCQ 28 What does the following JavaScript data.sort(function(a, b), b- a)
do?
MCQ 29 Which symbol is used for comments in Javascript?
MCQ 30 What is defination of an undefined value in JavaScript?