Home » General Knowledge » Computer » JavaScript Quiz Online Test Mcqs

JavaScript Quiz Online Test Mcqs

Test Instructions

Test Name : JavaScript MCQs
Subject : Computer General
Test Type : Mcqs
Total Question : 25
Total Marks : 50
Total Time : 20 Minutes

In the following quiz, mcq’s questions related to the JavaScript are included. Try to answer them all up to your best knowledge and find out how much you actually know about its usage and various functions.

JavaScript Quiz Online Test Mcqs Questions with Answers Objective Type PDF

  • Uncategorized
 

Question 1 of 25

Uncategorized

1. Which of the following can't be done with client-side JavaScript?

Question 1 of 25

Question 2 of 25

2. _____ JavaScript statements embedded in an HTML page can respond to user events such as mouse-clicks, form input, and page navigation?

Question 2 of 25

Question 3 of 25

3. What are variables used for in JavaScript Programs?

Question 3 of 25

Question 4 of 25

4. The __ operator determines whether an object is an instance of another object?

Question 4 of 25

Question 5 of 25

5. Which of the following is not a valid JavaScript variable name?

Question 5 of 25

Question 6 of 25

6. Which is the correct order of precedence of Arithmetic operators?

Question 6 of 25

Question 7 of 25

7. Why so JavaScript and Java have similar name?

Question 7 of 25

Question 8 of 25

8. ______ JavaScript is also called client-side JavaScript?

Question 8 of 25

Question 9 of 25

9. How does JavaScript store dates in a date object?

Question 9 of 25

Question 10 of 25

10. Consider the following code snippet

let succ = function(x) x+1, yes = function() true, no = function() false;

What convenience does the above code snippet provide?

Question 10 of 25

Question 11 of 25

11. What is the output of this expression? x = 2 + "2"; document.write(x)?

Question 11 of 25

Question 12 of 25

12. What is the correct JavaScript syntax to write "Hello World"?

Question 12 of 25

Question 13 of 25

13. Which of the following attribute can hold the JavaScript version?

Question 13 of 25

Question 14 of 25

14. Consider the following code snippet

data.sort(function(a,b),b-a);

What does the above code do?

Question 14 of 25

Question 15 of 25

15. When a user views a page containing a JavaScript program, which machine actually executes the script?

Question 15 of 25

Question 16 of 25

16. Which of the following is not a valid JavaScript variable name?

Question 16 of 25

Question 17 of 25

17. Which of the following are capabilities of functions in JavaScript?

Question 17 of 25

Question 18 of 25

18. Which of the following way can be used to indicate the LANGUAGE attribute?

Question 18 of 25

Question 19 of 25

19. What is the code to be used to trim whitespaces ?

Question 19 of 25

Question 20 of 25

20. The __ operator determines the type of a given object?

Question 20 of 25

Question 21 of 25

21. ______ tag is an extension to HTML that can enclose any number of JavaScript statements?