Javascript Interview Questions - 42 | Snaprecruit.com

Javascript Interview Questions - 42 | Snaprecruit.com

Javascript interview questions part 42

Javascript interview questions part 42

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

Total Questions: 20

1. Which of the following keys are set to true when the keyboard modifier keys are held down?

Correct Answer is : all of the mentioned

2. How to detect and respond to mouse drags?

Correct Answer is : Registering a mousedown handler

3. When is the mouseover event fired?

Correct Answer is : When mouse is moved over a new element

4. When is the mouseout event fired?

Correct Answer is : When mouse is no longer over an element

5. The focus and blur events are also part of

Correct Answer is : Window events

6. The element that can also register handlers for load and error events is

Correct Answer is : img

7. The events that is emulated by the jQuery library are

Correct Answer is : focusall and focusnone

8. Which event is triggered sooner when the document and its elements are ready to manipulate?

Correct Answer is : Both DOMContentLoaded & readystatechange

9. What is the purpose of the simple mode?

Correct Answer is : Removes whitespaces

10. What is a closure compiler UI?

Correct Answer is : Web application

11. What are the benefits of closure compiler?

Correct Answer is : Modularity

12. In what way is the closure compiler efficient?

Correct Answer is : Reduces the size of the JavaScript files

13. In which way can the closure compiler can be used?

Correct Answer is : Only Open source and Web application

14. What is the purpose of the advanced mode in the closure compiler?

Correct Answer is : Both Renames variables and function

15. Why is a closure template used?

Correct Answer is : Dynamically generating HTML in Java and JavaScript

16. In what way does the closure compiler help in checking the code?

Correct Answer is : Warnings

17. What is the function of the closure compiler?

Correct Answer is : Both Download faster and Run faster

18. Which function among the following lets to register a function to be invoked once?

Correct Answer is : setTimeout()

19. Which function among the following lets to register a function to be invoked repeatedly after a certain time?

Correct Answer is : setInterval()

20. Which is the handler method used to invoke when uncaught JavaScript exceptions occur?

Correct Answer is : Onerror

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon