MCQ 1 Inside which HTML element do we put the JavaScript?

Correct Answer Choice A < script >
See Answer

MCQ 2 Which is the correct way to write a JavaScript array?

Correct Answer Choice C var txt = new Array("tim","kim","jim")
See Answer

MCQ 3 Choose the client-side JavaScript object?

Correct Answer Choice C FileUpLoad
See Answer

MCQ 4 To set up the window to capture all Click events, we use which of the following statement?

Correct Answer Choice A window.captureEvents(Event.CLICK);
See Answer


MCQ 5 Which of the following best describes JavaScript?

Correct Answer Choice A an object-oriented scripting language.
See Answer

MCQ 6 What are the two basic groups of dataypes in JavaScript?

Correct Answer Choice C Both A and B
See Answer

MCQ 7 What is the output of the code given below

var a = '10';
var b = a = 20;
document.write(a+b);

Correct Answer Choice A 30
See Answer

MCQ 8 The _______ method of an Array object adds and/or removes elements from an array.

Correct Answer Choice D Splice
See Answer


MCQ 9 What will be the output of the below code ?

console.log( typeof( '5' + 5))

Correct Answer Choice D string
See Answer

MCQ 10 Which of the following is the structure of an if statement?

Correct Answer Choice D if (conditional expression is true) {then execute this code}
See Answer

MCQ 11 Which of the following is a JavaScript data type?

Correct Answer Choice C null
See Answer

MCQ 12 Javascript string using double quotes is exactly the same as a string using single quotes?

Correct Answer Choice A True
See Answer


MCQ 13 JavaScript entities start with _________________ and end with _________________.

Correct Answer Choice B Ampersand, semicolon
See Answer

MCQ 14 Which of the following can't be done with client-side JavaScript?

Correct Answer Choice B Storing the form's contents to a database file on the server
See Answer

MCQ 15 What will be the output of the below code ?

var package;
console.log("Package: " + package)
console.log("Amount: " + amount);

Correct Answer Choice A Package: undefined; An ReferenceError is thrown saying amount is not defined;
See Answer

MCQ 16 The syntax of close method for document object is ______________

Correct Answer Choice C Close()
See Answer


MCQ 17 The statement a===b refers to ____________________

Correct Answer Choice C Both a and b are equal in value and type
See Answer

MCQ 18 Why so JavaScript and Java have similar name?

Correct Answer Choice B JavaScript's syntax is loosely based on Java's
See Answer

MCQ 19 Which of the following is the correct syntax to display "knowledgeuniverseonline.com" in an alert box using JavaScript?

Correct Answer Choice D alert("MCQ Practice Test Series by knowledgeuniverseonline.com")
See Answer

MCQ 20 What is divide by 0 in Javascript?
var a = 10;
var b = 0;
document.write(a/b);

Correct Answer Choice D Infinity is printed
See Answer


MCQ 21 How to create a Date object in JavaScript?

Correct Answer Choice B dateObjectName = new Date([parameters])
See Answer

MCQ 22 Which of the following is a syntactically correct for loop?

Correct Answer Choice C for (i=0;i<=10;i++)
See Answer

MCQ 23 What is the code required to delete all "weight" tags?

Correct Answer Choice A delete pt..weight;
See Answer

MCQ 24 A _____________ object is a reference to one of the classes in a Java package, such as netscape.javascript .

Correct Answer Choice B JavaClass
See Answer


MCQ 25 What will be the output of the following JavaScript code?

function myfun()
{
document.getElementById ("demo").innerHTML = Boolean(21 > 15);
}

Correct Answer Choice A True
See Answer

MCQ 26 What are the three important manipulations done in a for loop on a loop variable?

Correct Answer Choice A Initialization, Testing, Updation
See Answer

MCQ 27 The inner frame within a top-level window can be referred to as _________________

Correct Answer Choice D parent.parent
See Answer

MCQ 28 JavaScript is designed for following purpose -

Correct Answer Choice D All of the above
See Answer


MCQ 29 What will be the output of the following Javascript code?

var string1 = "Integer";
var valueinteger = 55;
alert( string1 + valueinteger );

Correct Answer Choice B Integer55
See Answer

MCQ 30 Using _______ statement is how you test for a specific true and false condition.

Correct Answer Choice B if-else
See Answer

NTSE, NEET, AIEEE, Olympiad & Other Competive Exams Preparation

Publish Your Article / Write for Us

Article Writing Guide/Help

Trending Questions


Advantages Of NCERT, CBSE & State Boards Solutions For All Subjects

  • All the NCERT Solutions have been prepared by academic experts having 10+ years of teaching experience.
  • They have prepared all the solutions in simple and easy language, so that each and every student can understand the concepts easily.
  • All the solutions have been explained step to step wise in details with better explainations.
  • Students can also use these question and answers for your assignments and in homework help.
  • All the solutions have been explained in detail and the answers have been compiled in a step-wise manner.
  • All the question and asnwers are commonly prepared according to the Latest Syllabus of Board Education and Guidelines.
  • Students can know about the various types of questions asked in the exams with the help of these solutions.

Top Course Categories