Javascript MCQ Questions And Answers
Javascript MCQs : 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
Ans : D
Explanation: Following are the JavaScript Data types:
Number
String
Boolean
Object
Undefined
2. Which company developed JavaScript?
A. Netscape
B. Bell Labs
C. Sun Microsystems
D. IBM
View Answer
Ans : A
Explanation:Netscape is the software company who developed JavaScript.
3. Inside which HTML element do we put the JavaScript?
A. <script>
B. <head>
C. <meta>
D. <style>
View Answer
Ans : A
Explanation: <script> is the element where we put the javascript.
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
Ans : B
Explanation: Some features of javascripts are as follow:-
1. JavaScript is a object-based scripting language.
2. Giving the user more control over the browser.
3. It Handling dates and time.
4. It Detecting the user's browser and OS,
5. It is light weighted.
6. JavaScript is a scripting language and it is not java.
7. JavaScript is interpreter based scripting language.
8. JavaScript is case sensitive.
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
Ans : B
Explanation:The correct syntax to access the element is document.getElementById("letsfindcourse"). Here we want to access the content written under that id, so we used .innerHTML to specify that and finally we replaced the content with whatever is written inside the quotes.
6. which of the following are advantages of JavaScript?
A. Less server interaction
B. Increased interactivity
C. Richer interfaces
D. All of the above
View Answer
Ans : D
Explanation:The merits of using JavaScript are : Less server interaction, Immediate feedback to the visitors, Increased interactivity and Richer interfaces.
7. Which of the following true about Javascript?
A. Client-side JavaScript does not allow the reading or writing of files
B. JavaScript cannot be used for networking applications
C. JavaScript doesn't have any multi-threading or multiprocessor capabilities
D. All of the above
View Answer
Ans : D
Explanation:All of the above are true statement about Javascript.
8. Microsoft has developed a popular HTML editor called?
A. Dreamweaver
B. FrontPage
C. HomeSite
D. Macromedia
View Answer
Ans : B
Explanation:Microsoft has developed a popular HTML editor called FrontPage. FrontPage also provides web developers with a number of JavaScript tools to assist in the creation of interactive websites.
9. HomeSite 5 is a well-liked HTML and JavaScript editor from Macromedia.
A. True
B. False
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation:True, HomeSite 5 is a well-liked HTML and JavaScript editor from Macromedia.
10. JavaScript ignores?
A. spaces
B. tabs
C. newlines
D. All of the above
View Answer
Ans : D
Explanation:JavaScript ignores spaces, tabs, and newlines that appear in JavaScript programs. You can use spaces, tabs, and newlines freely in your program and you are free to format and indent your programs in a neat and consistent way that makes the code easy to read and understand.
Also check :
Discussion