| Snaprecruit.com

| Snaprecruit.com

Interview question based on skill :

Take as many assements as you can to improve your validate your skill rating

Total Questions: 20

1. Which property in the Window object is used to refer to a Location object?

Correct Answer is : location

2. Which Window object method is used to display message in a dialog box?

Correct Answer is : alert()

3. The setTimeout() method is used to

Correct Answer is : Register a function to be invoked after a certain time

4. Which of the following is a global object?

Correct Answer is : Window

5. When will the window property come into play?

Correct Answer is : Refer to window object itself

6. Which is the property that represents the content displayed in the window?

Correct Answer is : document

7. How to pick a document element based on the value of its id attribute?

Correct Answer is : getElementbyId()

8. What are the properties supporting CSS styles for a document element?

Correct Answer is : style and className

9. Which of the following object belongs to the style property?

Correct Answer is : Element

10. What is the purpose of the event handlers in the JavaScript?

Correct Answer is : Allows JavaScript code to alter the behaviour of windows

11. When a program contains extensive use of event handlers, which of the following is necessary?

Correct Answer is : Nested functions

12. What is the code snippet to find all container elements with class “reveal”?

Correct Answer is : var elements = document.getElementsByClassName("reveal");

13. What is the code snippet to update the content of the timestamp element when the user clicks on it?

Correct Answer is : timestamp.onclick = function() { this.innerHTML = new Date().toString(); }

14. What is the purpose of minifying the JavaScript?

Correct Answer is : To streamline the visits

15. From which did Minification concept originate?

Correct Answer is : JavaScript interpreter

16. What is the purpose of the product Minify?

Correct Answer is : Proxies the JavaScript file

17. What does the Minify set the encoding HTTP header?

Correct Answer is : both deflate and gzip

18. What is in-built in the Minify?

Correct Answer is : Static compression

19. Which folder contains the Minify control panel?

Correct Answer is : /min/builder/

20. Which of the following is the order of Minify process?

Correct Answer is : Read, Remove extraneous characters, gzip the response