JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
Javascript interview questions part 19
Javascript interview questions part 19
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. What is the purpose of the method forward()?
A. Loads any random URL in the history list
B. Loads the previous URL in the history list
C. Loads a specific URL from the history list
D. Loads the next URL in the history list
Show Correct Answer
Correct Answer is :
Loads the next URL in the history list
2. How will you update the URL displayed in the location bar?
A. location
B. location.URL
C. location.hash
D. url
Show Correct Answer
Correct Answer is :
location.hash
3. How do you add a particular state to the browsing history?
A. pushState()
B. replaceState()
C. state()
D. addstate()
Show Correct Answer
Correct Answer is :
pushState()
4. What does the pushState() method do?
A. Removes the state
B. Adds new state
C. Replaces the state
D. Change the state
Show Correct Answer
Correct Answer is :
Adds new state
5. Which of the following method is used to replace the current history state instead of adding a new state to the browsing history?
A. replaceState()
B. replace(state)
C. replace()
D. change()
Show Correct Answer
Correct Answer is :
replaceState()
6. How many parameters does the replaceState() method take?
A. 2
B. 3
C. 4
D. 5
Show Correct Answer
Correct Answer is :
3
7. What is the purpose of the event window.onpopstate?
A. When a state object is replaced
B. When a state object is added
C. When a state object is removed
D. When a state object is changed
Show Correct Answer
Correct Answer is :
When a state object is removed
8. Which program code doesn’t need preprocessing before being run?
A. Text
B. Script
C. Both Text and Script
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Script
9. What is the significance of scripting?
A. Convenient
B. Dynamic
C. Reachable
D. All of the mentioned
Show Correct Answer
Correct Answer is :
Dynamic
10. What is the purpose of XMLHttpRequest?
A. Multiple loading
B. Load content by loading new document
C. Load content without loading new document
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Load content without loading new document
11. Which API makes the user’s current location available to browser-based application?
A. Java API
B. SDL API
C. Object API
D. Geolocation API
Show Correct Answer
Correct Answer is :
Geolocation API
12. Which of the following ensures additional interactivity mechanism?
A. WAI ARIA
B. Geolocation API
C. Object API
D. None of the mentioned
Show Correct Answer
Correct Answer is :
WAI ARIA
13. What is the necessity to have API?
A. Guide to performing activities
B. Describe particular task
C. Both performing activities and Describe particular task
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Describe particular task
14. What is the purpose of the event onAirEvent?
A. Content is played
B. Content is transferred
C. Both Content is played and transferred
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Content is played
15. What is the purpose of the event disconnectionEvent?
A. Player demands for disconnection
B. Player disconnects from the channel
C. There is no user interaction
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Player disconnects from the channel
16. When does one use the event ready?
A. Before loading
B. During loading
C. After loading
D. None of the mentioned
Show Correct Answer
Correct Answer is :
After loading
17. When does one use the method startOverlays()?
A. Edit ad request
B. Delete ad request
C. Create ad request
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Create ad request
18. What is the reason for avoiding the attributes property in the HTML DOM?
A. Found unnecessary
B. Attributes don’t have attributes
C. Attributes have attributes
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Attributes don’t have attributes
19. What is the purpose of the method nodeMap.setNamedItem()?
A. Sets ID
B. Sets attribute node
C. Sets element name
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Sets attribute node
20. How is everything treated in HTML DOM?
A. Node
B. Attributes
C. Elements
D. All of the mentioned
Show Correct Answer
Correct Answer is :
Node
Similar Interview Questions
Search for latest jobs
Find Jobs