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

CSE :: Javascript - CS

  1. What does a Node object represent?

  2. A.

     Single node

    B.

     Set of nodes

    C.

     Sequence of nodes

    D.

     Node array


  3. What does the nodeName of the nodeType Document return?

  4. A.

     doctype name

    B.

     target

    C.

     #comment

    D.

     #document


  5. What is the purpose of the method item()?

  6. A.

     Returns node after the specified index

    B.

     Returns node before the specified index

    C.

     Returns node at specified index

    D.

     None of the mentioned


  7. How can the nodes in the node list be accessed?

  8. A.

     Key

    B.

     Index number

    C.

     Looping

    D.

     All of the mentioned


  9. Which of the following is the child(s) of the node type EntityReference?

  10. A.

     Element

    B.

     Text

    C.

     Both Element and Text

    D.

     None of the mentioned


  11. Which node type represents the root-node of the DOM tree?

  12. A.

     Document

    B.

     DocumentFragment

    C.

     DocumentType

    D.

     Entity


  13. What is the purpose of the DocumentFragment node type?

  14. A.

     To hold a portion of a document

    B.

     To split the document into fragments

    C.

     To hold the entire document

    D.

     None of the mentioned


  15. How many nodetype – named constants are available?

  16. A.

     13

    B.

     11

    C.

     12

    D.

     10


  17. Which of the following Node types have a node value equal to null?

  18. A.

     Document

    B.

     DocumentFragment

    C.

     DocumentType

    D.

     All of the mentioned


  19. How many node object properties are there?

  20. A.

     12

    B.

     14

    C.

     16

    D.

     17