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


  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


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

  6. A.

     keyCode

    B.

     keyType

    C.

     keyName

    D.

     keyProperty


  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


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

  10. A.

     Code key

    B.

     Alt Key

    C.

     Ctrl Key

    D.

     Shift Key


  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)


  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


  15. Which method is used to add a binding?

  16. A.

     binding()

    B.

     add_bind()

    C.

     bind()

    D.

     None of the mentioned


  17. Which method is used to remove a binding?

  18. A.

     Unbind()

    B.

     removebind()

    C.

     remove(Bind b)

    D.

     unbind()


  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