JavaScript Quiz Online test

1. Consider the following code snippet


What does the above code do?


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


 3. 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?


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


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


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


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


 8. What is the alternate name for Java script?


 9. JavaScript variables are case-sensitive?


 10. What is the correct JavaScript syntax to write “Hello World”?


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


 12. What should appear at the very end of your JavaScript?

The <script LANGUAGE=”JavaScript”>tag

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


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


 15. __________ JavaScript is also called server-side JavaScript?


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


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


 18. Why so JavaScript and Java have similar name?


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


(Visited 36 times, 1 visits today)



Leave a Reply