Home / CSE / Javascript - CS :: Document Object Model and Event Handling

CSE :: Javascript - CS

  1. The URL property belongs to which of the following object?

  2. A.

     Document

    B.

     Element

    C.

     Location

    D.

     All of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. What does the location property represent?

  4. A.

     Current DOM object

    B.

     Current URL

    C.

     Both DOM object and URL

    D.

     None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. Which among the following is not a property of the Location object?

  6. A.

     protocol

    B.

     host

    C.

     hostee

    D.

     hostname

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. What is the return type of the hash property?

  8. A.

     Query string

    B.

     Packets

    C.

     String

    D.

     Fragment identifier

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. What is the function used to extract arguments from the search property of a URL?

  10. A.

     urlArgs()

    B.

     url()

    C.

     hash()

    D.

     none of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. The decodeURIComponent() is defined by

  12. A.

     Server-side JavaScript

    B.

     Client-side JavaScript

    C.

     Both Server-side and Client-side JavaScript

    D.

     None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. Which is the method that removes the current document from the browsing history before laoding the new document?

  14. A.

     modify()

    B.

     assign()

    C.

     replace()

    D.

     remove()

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. Why is the replace() method better than the assign() method?

  16. A.

     Reliable

    B.

     Highly managable

    C.

     More efficient

    D.

     Handles unconditional loading

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. What is the purpose of the assign() method?

  18. A.

     Only loading

    B.

     Loading of window and display

    C.

     Displays already present window

    D.

     Unloading of window

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. The history property belongs to which object?

  20. A.

     Element

    B.

     Window

    C.

     History

    D.

     Location

    View Answer

    Workspace

    Discuss Discuss in Forum