Logo

Javascript Questions Set 11:

Quiz Mode

Which type of program code doesn't need preprocessing before being run?

1
2
3
4

Solution:

Which jQuery UI method is used to apply the select menu widget on an HTML element?

1
2
3
4

Solution:

Which statement declares a function-scoped or globally-scoped variable that can be optionally initialized to a value?

1
2
3
4

Solution:

Which of the following browsers support the usage of the JavaScript logging library log4javascript?

1
2
3
4

Solution:

What is the object on which the event occurred or with which the event is associated?

1
2
3
4

Solution:

If A is the superclass and B is the subclass, then subclass inheriting the superclass can be represented as _________

1
2
3
4

Solution:

What will be the output of the following JavaScript code?


var val1=[1,2,3,4];  

var val2=[5,6,7,8];  

var result=val1.concat(val2);  

document.writeln(result);

1
2
3
4

Solution:

What will be the output for the following code snippet?

<p id="example"></p> <script> function Func(){ document.getElementById("example").innerHTML = Math.sqrt(49); } </script>

1
2
3
4

Solution:

Insert the correct line of code to create an object named 'student' from a JSON string variable named 'json'.

1
2
3
4

Solution:

What does this script do?

<script>

var p = document.createElement("p");

var node = document.createTextNode("This is new");

p.appendChild(node);

var parent = document.getElementById("demo");

var child = document.getElementById("p1");

parent.replaceChild(p, child);

</script>

1
2
3
4

Solution: