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

CSE :: Javascript - CS

  1. When are the mouse events generated?

  2. A.

     When user clicks the mouse over a document

    B.

     When user moves over a document

    C.

     All of the mentioned

    D.

     None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. The properties that specify the position and button state of the mouse are

  4. A.

     clientX and clientY

    B.

     clientY and clientX

    C.

     altKey and ctrlKey

    D.

     metaKey and shiftKey

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. Which of the following keys are set to true when the keyboard modifier keys are held down?

  6. A.

     altKey

    B.

     ctrlKey

    C.

     metaKey

    D.

     all of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. How to detect and respond to mouse drags?

  8. A.

     Registering a mouseover handler

    B.

     Releasing a mousedown handler

    C.

     Registering a mousedown handler

    D.

     None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. When is the mouseover event fired?

  10. A.

     When mouse is moved over a new element

    B.

     When mouse is clicked

    C.

     When mouse is both moved and clicked

    D.

     None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. When is the mouseout event fired?

  12. A.

     When mouse is no longer over an element

    B.

     When mouse is over an element

    C.

     When mouse is hovered

    D.

     None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. The focus and blur events are also part of

  14. A.

     Element events

    B.

     Handler events

    C.

     Window events

    D.

     Scroll events

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. The element that can also register handlers for load and error events is

  16. A.

     html

    B.

     img

    C.

     body

    D.

     form

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. The events that is emulated by the jQuery library are

  18. A.

     focusarea and focusover

    B.

     focusall and focusnone

    C.

     focusdown and focusup

    D.

     focusin and focusout

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. Which event is triggered sooner when the document and its elements are ready to manipulate?

  20. A.

     DOMContentLoaded

    B.

     readystatechange

    C.

     Both DOMContentLoaded & readystatechange

    D.

     None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum