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

CSE :: Javascript - CS

  1. Which function among the following lets to register a function to be invoked once?

  2. A.

     setTimeout()

    B.

     setTotaltime()

    C.

     setInterval()

    D.

     none of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. Which function among the following lets to register a function to be invoked repeatedly after a certain time?

  4. A.

     setTimeout()

    B.

     setTotaltime()

    C.

     setInterval()

    D.

     none of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. Which is the handler method used to invoke when uncaught JavaScript exceptions occur?

  6. A.

     Onhalt

    B.

     Onerror

    C.

     Both onhalt and onerror

    D.

     None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. Which property is used to obtain browser vendor and version information?

  8. A.

     modal

    B.

     version

    C.

     browser

    D.

     navigator

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. Which method receives the return value of setInterval() to cancel future invocations?

  10. A.

     clearInvocation()

    B.

     cancelInvocation()

    C.

     clearInterval()

    D.

     None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. The setTimeout() belongs to which object?

  12. A.

     Element

    B.

     Window

    C.

     Location

    D.

     None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. Which method receives the return value of setTimeout() to cancel future invocations?

  14. A.

     clearTimeout()

    B.

     clearInterval()

    C.

     clearSchedule()

    D.

     none of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. What will happen if we call setTimeout() with a time of 0 ms?

  16. A.

     Placed in stack

    B.

     Placed in queue

    C.

     Will run continuously

    D.

     None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. To which object does the location property belong?

  18. A.

     Window

    B.

     Position

    C.

     Element

    D.

     Location

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. What is the result of the following code snippet?

    window.location === document.location

  20. A.

     False

    B.

     True

    C.

     0

    D.

     1

    View Answer

    Workspace

    Discuss Discuss in Forum