Javascript Interview Questions - 42 | Snaprecruit.com
Javascript Interview Questions - 42 | Snaprecruit.com
JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing
Enterprises
Javascript interview questions part 42
Javascript interview questions part 42
Back
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?
A. altKey
B. ctrlKey
C. metaKey
D. all of the mentioned
Show Correct Answer
Correct Answer is :
all of the mentioned
2. How to detect and respond to mouse drags?
A. Registering a mouseover handler
B. Releasing a mousedown handler
C. Registering a mousedown handler
D. Releasing a mouseover handler
Show Correct Answer
Correct Answer is :
Registering a mousedown handler
3. When is the mouseover event fired?
A. When mouse is moved over a new element
B. When mouse is clicked
C. When mouse is both moved and clicked
D. When mouse is released
Show Correct Answer
Correct Answer is :
When mouse is moved over a new element
4. When is the mouseout event fired?
A. When mouse is no longer over an element
B. When mouse is over an element
C. When mouse is hovered
D. When mouse is clicked
Show Correct Answer
Correct Answer is :
When mouse is no longer over an element
5. The focus and blur events are also part of
A. Element events
B. Handler events
C. Window events
D. Scroll events
Show Correct Answer
Correct Answer is :
Window events
6. The element that can also register handlers for load and error events is
A. html
B. img
C. body
D. form
Show Correct Answer
Correct Answer is :
img
7. The events that is emulated by the jQuery library are
A. focusarea and focusover
B. focusall and focusnone
C. focusdown and focusup
D. focusin and focusout
Show Correct Answer
Correct Answer is :
focusall and focusnone
8. Which event is triggered sooner when the document and its elements are ready to manipulate?
A. DOMContentLoaded
B. readystatechange
C. Both DOMContentLoaded & readystatechange
D. Statechange
Show Correct Answer
Correct Answer is :
Both DOMContentLoaded & readystatechange
9. What is the purpose of the simple mode?
A. Removes whitespaces
B. Does not remove white spaces
C. Removes the unwanted words
D. Removes characters
Show Correct Answer
Correct Answer is :
Removes whitespaces
10. What is a closure compiler UI?
A. Run time application
B. Web application
C. Standalone application
D. All of the mentioned
Show Correct Answer
Correct Answer is :
Web application
11. What are the benefits of closure compiler?
A. Efficiency
B. Code checking
C. Both Efficiency and Code checking
D. Modularity
Show Correct Answer
Correct Answer is :
Modularity
12. In what way is the closure compiler efficient?
A. Increases the size of the JavaScript files
B. Reduces the size of the JavaScript files
C. Reduces the execution time
D. Reduces the speed
Show Correct Answer
Correct Answer is :
Reduces the size of the JavaScript files
13. In which way can the closure compiler can be used?
A. Open source
B. Run time application
C. Web application
D. Only Open source and Web application
Show Correct Answer
Correct Answer is :
Only Open source and Web application
14. What is the purpose of the advanced mode in the closure compiler?
A. Renames variables
B. Renames function
C. Both Renames variables and function
D. Changes structures
Show Correct Answer
Correct Answer is :
Both Renames variables and function
15. Why is a closure template used?
A. Statically updating in JavaScript
B. To increase the efficiency and convenience
C. Dynamically generating HTML in Java and JavaScript
D. Changing code
Show Correct Answer
Correct Answer is :
Dynamically generating HTML in Java and JavaScript
16. In what way does the closure compiler help in checking the code?
A. Warnings
B. Suddenly aborts
C. Rejects malicious inputs
D. Terminates the execution
Show Correct Answer
Correct Answer is :
Warnings
17. What is the function of the closure compiler?
A. Download faster
B. Run faster
C. Both Download faster and Run faster
D. Changes the code
Show Correct Answer
Correct Answer is :
Both Download faster and Run faster
18. Which function among the following lets to register a function to be invoked once?
A. setTimeout()
B. setTotaltime()
C. setInterval()
D. settime()
Show Correct Answer
Correct Answer is :
setTimeout()
19. Which function among the following lets to register a function to be invoked repeatedly after a certain time?
A. setTimeout()
B. setTotaltime()
C. setInterval()
D. settime()
Show Correct Answer
Correct Answer is :
setInterval()
20. Which is the handler method used to invoke when uncaught JavaScript exceptions occur?
A. Onhalt
B. Onerror
C. Both onhalt and onerror
D. Onsuspend
Show Correct Answer
Correct Answer is :
Onerror
Similar Interview Questions
Search for latest jobs
Find Jobs