Home / CSE / Javascript - CS :: Sockets

CSE :: Javascript - CS

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

  2. A.

     Property

    B.

     Window

    C.

     Location

    D.

     Screen

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  4. A.

     3

    B.

     4

    C.

     5

    D.

     6

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  6. 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

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  8. A.

     location

    B.

     location.URL

    C.

     location.hash

    D.

     url

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  10. A.

     pushState()

    B.

     replaceState()

    C.

     state()

    D.

     none of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. What does the pushState() method do?

  12. A.

     Removes the state

    B.

     Adds new state

    C.

     Replaces the state

    D.

     None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  14. A.

     replaceState()

    B.

     replace(state)

    C.

     replace()

    D.

     none of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  16. A.

     2

    B.

     3

    C.

     4

    D.

     5

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  18. A.

     When a state object is replaced

    B.

     When a state object is added

    C.

     When a state object is removed

    D.

     None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. R is an extension of which of the following language?

  20. A.

     C

    B.

     C++

    C.

     S

    D.

     None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum