My Report

JavaScript Socket Test – 2


Correct Answer: 2 points | Wrong: -1 point
Grades: A* (100% score) | A (80%-99%) | B (60%-80%) | C (40%-60%) | D (0%-40%)
advertisement

1. How do you add a particular state to the browsing history?

2. How many methods are there in the History object?

3. Which of the following method is used to replace the current history state instead of adding a new state to the browsing history?

4. What does a History object contain?

5. How will you update the URL displayed in the location bar?

6. The history object is a part of which object?

7. What is the purpose of the event window.onpopstate?

8. How many parameters does the replaceState() method take?

9. What does the pushState() method do?

10. What is the purpose of the method forward()?


 

Start practicing “1000 MCQs on JavaScript”, and once you are ready, you can take tests on all topics by attempting our “JavaScript Test Series”.

Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.