Sail E0 Webinar

MCQs

Total Questions : 180 | Page 13 of 18 pages
Question 121. The URL property belongs to which of the following object?
  1.    Document
  2.    Element
  3.    Location
  4.    All of the mentioned
 Discuss Question
Answer: Option A. -> Document
Question 122. Which among the following is not a property of the Location object?
  1.    protocol
  2.    host
  3.    hostee
  4.    hostname
 Discuss Question
Answer: Option C. -> hostee
Question 123. What does the location property represent?
  1.    Current DOM object
  2.    Current URL
  3.    Both DOM object and URL
  4.    None of the mentioned
 Discuss Question
Answer: Option A. -> Current DOM object
Question 124. What is the return type of the hash property?
  1.    Query string
  2.    Packets
  3.    String
  4.    Fragment identifier
 Discuss Question
Answer: Option D. -> Fragment identifier
Question 125. What is the function used to extract arguments from the search property of a URL?
  1.    urlArgs()
  2.    url()
  3.    hash()
  4.    none of the mentioned
 Discuss Question
Answer: Option A. -> urlArgs()
Question 126. The decodeURIComponent() is defined by
  1.    Server-side JavaScript
  2.    Client-side JavaScript
  3.    Both Server-side and Client-side JavaScript
  4.    None of the mentioned
 Discuss Question
Answer: Option B. -> Client-side JavaScript
Question 127. Which is the method that removes the current document from the browsing history before laoding the new document?
  1.    modify()
  2.    assign()
  3.    replace()
  4.    remove()
 Discuss Question
Answer: Option C. -> replace()
Question 128. What is the purpose of the assign() method?
  1.    Only loading
  2.    Loading of window and display
  3.    Displays already present window
  4.    Unloading of window
 Discuss Question
Answer: Option B. -> Loading of window and display
Question 129. Why is the replace() method better than the assign() method?
  1.    Reliable
  2.    Highly managable
  3.    More efficient
  4.    Handles unconditional loading
 Discuss Question
Answer: Option D. -> Handles unconditional loading
Question 130. The history property belongs to which object?
  1.    Element
  2.    Window
  3.    History
  4.    Location
 Discuss Question
Answer: Option C. -> History

Latest Videos

Latest Test Papers