Explore topic-wise MCQs in Technical MCQs.

This section includes 7 Mcqs, each offering curated multiple-choice questions to sharpen your Technical MCQs knowledge and support exam preparation. Choose a topic below to get started.

1.

When will the browser invoke the handler?

A. Program begins
B. Any event occurs
C. Specified event occurs
D. None of the above
E.
Answer» D. None of the above
2.

function myfun()
{
var a = null;
document.getElementById ("demo").innerHTML = Boolean(a);
}}
7.The inner frame within a top-level window can be referred to as _____________

A. parent(parent)
B. parent.parent
C. parent*parent
D. parent/parent
Answer» C. parent*parent
3.

function myfun()
{
var a = "";
document.getElementById ("demo").innerHTML = Boolean(a);
}
6.What will be the output of the following JavaScript code?

A. true
B. false
C. error
D. undefined
Answer» C. error
4.

var b5 = Boolean('false');
document.getElementById ("demo").innerHTML =b5;
5.What will be the output of the following JavaScript code?

A. true
B. false
C. error
D. undefined
Answer» C. error
5.

function myfun()
{
document.getElementById ("demo").innerHTML = Boolean(15.00 === 15);
}
4.What will be the output of the following JavaScript code?

A. true
B. false
C. error
D. undefined
Answer» B. false
6.

function myfun()
{
document.getElementById ("demo").innerHTML = Boolean(21 > 15);
}
3.What will be the output of the following JavaScript code?

A. true
B. false
C. error
D. 0
Answer» C. error
7.

What is the code snippet to go back to a history thrice?

A. history(3);
B. history(-3);
C. history.go(-3);
D. history.go(3);
Answer» D. history.go(3);