JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
Javascript interview questions part 24
Javascript interview questions part 24
Back
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?
A. position
B. area
C. window
D. location
Show Correct Answer
Correct Answer is :
location
2. Which Window object method is used to display message in a dialog box?
A. alert()
B. prompt()
C. message()
D. console.log
Show Correct Answer
Correct Answer is :
alert()
3. The setTimeout() method is used to
A. Make the event sleep
B. Register a function to be invoked after a certain time
C. Invoke an event after a certain time
D. Time for iteration
Show Correct Answer
Correct Answer is :
Register a function to be invoked after a certain time
4. Which of the following is a global object?
A. Register
B. Location
C. Window
D. Position
Show Correct Answer
Correct Answer is :
Window
5. When will the window property come into play?
A. Representation convenience
B. Use as an extension of other objects
C. Use objects in the Window object
D. Refer to window object itself
Show Correct Answer
Correct Answer is :
Refer to window object itself
6. Which is the property that represents the content displayed in the window?
A. document
B. content
C. window
D. frame
Show Correct Answer
Correct Answer is :
document
7. How to pick a document element based on the value of its id attribute?
A. getElementsbyId()
B. getElementbyId()
C. both getElementsbyId() and getElementbyId()
D. getElement
Show Correct Answer
Correct Answer is :
getElementbyId()
8. What are the properties supporting CSS styles for a document element?
A. style and font
B. style and className
C. size and style
D. className and font
Show Correct Answer
Correct Answer is :
style and className
9. Which of the following object belongs to the style property?
A. Element
B. Window
C. Location
D. Dynamic
Show Correct Answer
Correct Answer is :
Element
10. What is the purpose of the event handlers in the JavaScript?
A. Adds innerHTML page to the code
B. Performs handling of exceptions and occurrences
C. Allows JavaScript code to alter the behaviour of windows
D. Change the server location
Show Correct Answer
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?
A. Modular functions
B. Nested functions
C. Split up programs
D. Global variables
Show Correct Answer
Correct Answer is :
Nested functions
12. What is the code snippet to find all container elements with class “reveal”?
A. var elements = document.getElementsByClassName("reveal");
B. var elements = document.getElementByClassName("reveal");
C. var elements = document.getElementByName("reveal");
D. var elements = document.getElementsClassName("reveal");
Show Correct Answer
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?
A. timestamp.onLoad = function() { this.innerHTML = new Date().toString(); }
B. timestamp.onclick = function() { this.innerHTML = new Date().toString(); }
C. timestamp.onload = function() { this.innerHTML = new Date().toString(); }
D. timestamp.onclick = function() { innerHTML = new Date().toString(); }
Show Correct Answer
Correct Answer is :
timestamp.onclick = function() { this.innerHTML = new Date().toString(); }
14. What is the purpose of minifying the JavaScript?
A. To streamline the visits
B. To save the visits
C. To save data
D. To increase the loading time
Show Correct Answer
Correct Answer is :
To streamline the visits
15. From which did Minification concept originate?
A. JavaScript code efficiency
B. JavaScript interpreter
C. JavaScript Compiler
D. JavaScript writer
Show Correct Answer
Correct Answer is :
JavaScript interpreter
16. What is the purpose of the product Minify?
A. Storing the data
B. Streamlining the data
C. Proxies the JavaScript file
D. Loading the data
Show Correct Answer
Correct Answer is :
Proxies the JavaScript file
17. What does the Minify set the encoding HTTP header?
A. deflate
B. gzip
C. both deflate and gzip
D. inflate
Show Correct Answer
Correct Answer is :
both deflate and gzip
18. What is in-built in the Minify?
A. Dynamic compression
B. Static compression
C. Static content
D. Dynamic content
Show Correct Answer
Correct Answer is :
Static compression
19. Which folder contains the Minify control panel?
A. /min/builder/
B. /builder/
C. /minify/build
D. /minify/builder
Show Correct Answer
Correct Answer is :
/min/builder/
20. Which of the following is the order of Minify process?
A. Remove extraneous characters, gzip the response, Read
B. Remove extraneous characters, Read, gzip the response
C. Read, Remove extraneous characters, gzip the response
D. Read, gzip, extract, remove
Show Correct Answer
Correct Answer is :
Read, Remove extraneous characters, gzip the response
Similar Interview Questions
Search for latest jobs
Find Jobs