JavaScript MCQ Quiz Hub

Javascript MCQ Questions Set 1

Choose a topic to test your knowledge and improve your JavaScript skills

Which of the following is not JavaScript Data Types?





✅ Correct Answer: 4

Which company developed JavaScript?





✅ Correct Answer: 1

Inside which HTML element do we put the JavaScript?





✅ Correct Answer: 1

Which of the following is correct about features of JavaScript?





✅ Correct Answer: 2

Choose the correct JavaScript syntax to change the content of the following HTML code.





✅ Correct Answer: 2

which of the following are advantages of JavaScript?





✅ Correct Answer: 4

Which of the following true about Javascript?





✅ Correct Answer: 4

Microsoft has developed a popular HTML editor called?





✅ Correct Answer: 2

HomeSite 5 is a well-liked HTML and JavaScript editor from Macromedia.





✅ Correct Answer: 1

JavaScript ignores?





✅ Correct Answer: 4

JavaScript is designed for following purpose -





✅ Correct Answer: 4

What will be the output of the following Javascript code? var string1 = "Letsfindcourse"; var intvalue = 30; alert( string1 + intvalue );





✅ Correct Answer: 3

Among the following, which one is a ternary operator in JavaScript? A.





✅ Correct Answer: 4

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





✅ Correct Answer: 2

What does javascript use instead of == and !=?





✅ Correct Answer: 2

What should appear at the very end of your JavaScript? The <script language="javascript"> tag





✅ Correct Answer: 2

Among the keywords below, which one is not a statement?





✅ Correct Answer: 4

How do we define the term Thread?





✅ Correct Answer: 3

Which symbol is used for comments in Javascript?





✅ Correct Answer: 2

What are the types of Pop up boxes available in JavaScript?





✅ Correct Answer: 4

what is the disadvantage of using innerHTML in JavaScript?





✅ Correct Answer: 3

What are the two basic groups of dataypes in JavaScript?





✅ Correct Answer: 3

Which of the following are the functional components in JavaScript?





✅ Correct Answer: 1

Which of the following is not the properties of screen objects in JavaScript?





✅ Correct Answer: 2

Find output of below code var a = '20'; var b = a = 30; document.write(a+b);





✅ Correct Answer: 4

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





✅ Correct Answer: 3

Which of the following function of Array object applies a function simultaneously against two values of the array (from right-to-left) as to reduce it to a single value?





✅ Correct Answer: 4

What is the output of following Javascript? var a = 'letsfind'; var b = 'course'; var c = a/b; document.write(c);





✅ Correct Answer: 3

How ++ works in Javascript? Find output of below Javascript code. var a = 1; document.write(a--); document.write(a);





✅ Correct Answer: 4

Find output of below Javascript addition code document.write("1 plus 1 is " + 1 + 1);





✅ Correct Answer: 3

Does JavaScript allow exception handling?





✅ Correct Answer: 1

Which of the following method checks if its argument is not a number?





✅ Correct Answer: 1

What if you use parseInt() to convert a string containing decimal value?





✅ Correct Answer: 3

What if you use parseInt() to convert a string containing decimal value?





✅ Correct Answer: 3

What is the output of below Javascript code? alert (typeof new Date() );





✅ Correct Answer: 2

What if we put ++ operator inside if condition? find the output of below code < script> var a = 10; if(a == a++) document.write(a);





✅ Correct Answer: 4

Which of the following is true?





✅ Correct Answer: 1

Syntax for creating a RegExp object: 1. var txt=new RegExp(pattern,attributes); 2. var txt=/pattern/attributes; Which of the above mentioned syntax will correct?





✅ Correct Answer: 3

If para1 is the DOM object for a paragraph, what is the correct syntax to change the text within the paragraph?





✅ Correct Answer: 2

The syntax of Eval is ________________





✅ Correct Answer: 2

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





✅ Correct Answer: 4

Which tag(s) can handle mouse events in Netscape?





✅ Correct Answer: 1

Consider the following code snippet const pi=3.14; var pi=4; console.log(pi); What will be the output for the above code snippet?





✅ Correct Answer: 1

What is the default value of the asyc attribute?





✅ Correct Answer: 4

What is the purpose of the Attr object in the HTML DOM?





✅ Correct Answer: 2

What is the purpose of the Attr object in the HTML DOM?





✅ Correct Answer: 2

Which among the following POSIX signals generate events?





✅ Correct Answer: 3

Javascript is ideal to?





✅ Correct Answer: 2

The meaning for Augmenting classes is that:





✅ Correct Answer: 1

Which is the handler method used to invoke when uncaught JavaScript exceptions occur?





✅ Correct Answer: 2

Consider the code snippet given below var count = [1,,3]; What is the observation made?





✅ Correct Answer: 1

What does the interpreter do when you reference variables in other scopes?





✅ Correct Answer: 2

What must be done in order to implement Lexical Scoping?





✅ Correct Answer: 3

What must be done in order to implement Lexical Scoping?





✅ Correct Answer: 3

From which version of IE is canvas supported?





✅ Correct Answer: 4

How many parameters does the method plot() accept?





✅ Correct Answer: 3

What is the purpose of script loading?





✅ Correct Answer: 3

JavaScript can be written __________





✅ Correct Answer: 1

When a class B can extend another class A, we say that:





✅ Correct Answer: 1

Which method receives the return value of setInterval() to cancel future invocations?





✅ Correct Answer: 3

The pop() method of the array does which of the following task ?





✅ Correct Answer: 1

What will be the return value of the write() method when the Node cannot write the data immediately and has to buffer it internally?





✅ Correct Answer: 4

What will happen if you reference document.location from within an object?





✅ Correct Answer: 3

What is a closure?





✅ Correct Answer: 3

Which is the method invoked to connect the last vertex back to the first?





✅ Correct Answer: 1

What is the need for bubble charts?





✅ Correct Answer: 2

How to get a particular value using the tagged name?





✅ Correct Answer: 3

Which of the following is the correct syntax to display "Letsfindcourse" in an alert box using JavaScript?





✅ Correct Answer: 4

What is the correct syntax for referring to an external script called "LFC.js"?





✅ Correct Answer: 1

Which of the following is not Javascript frameworks or libraries?





✅ Correct Answer: 3

Why so JavaScript and Java have similar name?





✅ Correct Answer: 2

What is the original name of JavaScript?





✅ Correct Answer: 3