Javascript Multiple Choice Questions

This section focuses on javascript mcq. These Multiple Choice Questions should be practiced to improve the Javascript skills required for various interviews (campus interview, walk-in interview, company interview), placement, entrance exam and other competitive examinations.

1. Which of the following is not JavaScript Data Types?

A. Undefined
B. Number
C. Boolean
D. Float

View Answer

2. Which company developed JavaScript?

A. Netscape
B. Bell Labs
C. Sun Microsystems

View Answer

3. Inside which HTML element do we put the JavaScript?

A. <script>
B. <head>
C. <meta>
D. <style>

View Answer

4. Which of the following is correct about features of JavaScript?

A. It can not Handling dates and time.
B. JavaScript is a object-based scripting language.
C. JavaScript is not interpreter based scripting language.
D. All of the above

View Answer

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

A. document.getElement (“letsfindcourse”).innerHTML = ”I am a letsfindcourse”;
B. document.getElementById (“letsfindcourse”).innerHTML = ”I am a letsfindcourse”;
C. document.getId (“letsfindcourse”) = ”I am a letsfindcourse”;
D. document.getElementById (“letsfindcourse”).innerHTML = I am a letsfindcourse;

View Answer

6. Which of the following is the correct syntax to display “Letsfindcourse” in an alert box using JavaScript?

A. alert-box(“Letsfindcourse”);
B. confirm("Letsfindcourse");
C. msgbox(“Letsfindcourse”);
D. alert(“Letsfindcourse”);

View Answer

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

A. <script src=“LFC.js”>
B. <script source=“LFC.js”>
C. <script ref=“LFC.js”>
D. <script type=“LFC.js”>

View Answer

8. Which of the following is not Javascript frameworks or libraries?

A. Polymer
B. Meteor
C. Cassandra
D. jQuery

View Answer

9. Why so JavaScript and Java have similar name?

A. JavaScript is a stripped-down version of Java
B. JavaScript's syntax is loosely based on Java's
C. They both originated on the island of Java
D. None of the above

View Answer

10. What is the original name of JavaScript?

A. LiveScript
B. EScript
C. Mocha
D. JavaScript

View Answer

Also check :


* You must be logged in to add comment.