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


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

  4. A.

     3

    B.

     4

    C.

     5

    D.

     6


  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


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

  8. A.

     location

    B.

     location.URL

    C.

     location.hash

    D.

     url


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

  10. A.

     pushState()

    B.

     replaceState()

    C.

     state()

    D.

     none of the mentioned


  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


  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


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

  16. A.

     2

    B.

     3

    C.

     4

    D.

     5


  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


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

  20. A.

     C

    B.

     C++

    C.

     S

    D.

     None of the mentioned