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

CSE :: Javascript - CS

  1. When are the keyboard events fired?

  2. A.

     When user manually calls the button

    B.

     When user clicks a key

    C.

     When the user calls the modifier

    D.

     All of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. How does a user generate multiple keydown events?

  4. A.

     Repeating the same process

    B.

     Pressing multiple keys

    C.

     Pressing the key longer than usual

    D.

     None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. Which property is used to specify the key type when pressed?

  6. A.

     keyCode

    B.

     keyType

    C.

     keyName

    D.

     keyProperty

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. What value does the keyCode property holds when a Shift key is pressed for adding punctuation character?

  8. A.

     Special characters

    B.

     Alphabets

    C.

     Alphanumeric

    D.

     Digits

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. Which of the following are not key event properties?

  10. A.

     Code key

    B.

     Alt Key

    C.

     Ctrl Key

    D.

     Shift Key

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. Which of the following key property holds the key name as a string?

  12. A.

     keyName

    B.

     key

    C.

     keyName(string)

    D.

     Nameofkey(string)

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. Which of the following is not the value the key property will hold if the key is a function key?

  14. A.

     F8

    B.

     F2

    C.

     Home

    D.

     Left

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. Which method is used to add a binding?

  16. A.

     binding()

    B.

     add_bind()

    C.

     bind()

    D.

     None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. Which method is used to remove a binding?

  18. A.

     Unbind()

    B.

     removebind()

    C.

     remove(Bind b)

    D.

     unbind()

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. Which of the following are the parameters passed to the keymap after installation?

  20. A.

     Key property

    B.

     Key name

    C.

     Keydown event’s object

    D.

     Key stroke

    View Answer

    Workspace

    Discuss Discuss in Forum