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

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  4. A.

     doctype name

    B.

     target

    C.

     #comment

    D.

     #document

    View Answer

    Workspace

    Discuss Discuss in Forum


  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

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  8. A.

     Key

    B.

     Index number

    C.

     Looping

    D.

     All of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  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

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  12. A.

     Document

    B.

     DocumentFragment

    C.

     DocumentType

    D.

     Entity

    View Answer

    Workspace

    Discuss Discuss in Forum


  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

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. How many nodetype – named constants are available?

  16. A.

     13

    B.

     11

    C.

     12

    D.

     10

    View Answer

    Workspace

    Discuss Discuss in Forum


  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

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. How many node object properties are there?

  20. A.

     12

    B.

     14

    C.

     16

    D.

     17

    View Answer

    Workspace

    Discuss Discuss in Forum