Sail E0 Webinar

MCQs

Total Questions : 67 | Page 2 of 7 pages
Question 11. The history object is a part of which object?
  1.    Property
  2.    Window
  3.    Location
  4.    Screen
 Discuss Question
Answer: Option B. -> Window
Question 12. How many methods are there in the History object?
  1.    3
  2.    4
  3.    5
  4.    6
 Discuss Question
Answer: Option A. -> 3
Question 13. What is the purpose of the method forward()?
  1.    Loads any random URL in the history list
  2.    Loads the previous URL in the history list
  3.    Loads a specific URL from the history list
  4.    Loads the next URL in the history list
 Discuss Question
Answer: Option D. -> Loads the next URL in the history list
Question 14. How do you add a particular state to the browsing history?
  1.    pushState()
  2.    replaceState()
  3.    state()
  4.    none of the mentioned
 Discuss Question
Answer: Option A. -> pushState()
Question 15. How will you update the URL displayed in the location bar?
  1.    location
  2.    location.URL
  3.    location.hash
  4.    url
 Discuss Question
Answer: Option C. -> location.hash
Question 16. What does the pushState() method do?
  1.    Removes the state
  2.    Adds new state
  3.    Replaces the state
  4.    None of the mentioned
 Discuss Question
Answer: Option B. -> Adds new state
Question 17. Which of the following method is used to replace the current history state instead of adding a new state to the browsing history?
  1.    replaceState()
  2.    replace(state)
  3.    replace()
  4.    none of the mentioned
 Discuss Question
Answer: Option A. -> replaceState()
Question 18. How many parameters does the replaceState() method take?
  1.    2
  2.    3
  3.    4
  4.    5
 Discuss Question
Answer: Option B. -> 3
Question 19. What is the purpose of the event window.onpopstate?
  1.    When a state object is replaced
  2.    When a state object is added
  3.    When a state object is removed
  4.    None of the mentioned
 Discuss Question
Answer: Option C. -> When a state object is removed
Question 20. R is an extension of which of the following language?
  1.    C
  2.    C++
  3.    S
  4.    None of the mentioned
 Discuss Question
Answer: Option C. -> S

Latest Videos

Latest Test Papers