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

CSE :: Javascript - CS

  1. The central object in a larger API is known as

  2. A.

     Document Object Material

    B.

     Document Object Model

    C.

     Binary Object Model

    D.

     None of the mentioned


  3. The paragraph “p” is a part of

  4. A.

     h1

    B.

     body

    C.

     html

    D.

     Both body and html


  5. The node directly above a node is called

  6. A.

     sibling

    B.

     child

    C.

     parent

    D.

     ancestors


  7. The Text and Comment is part of

  8. A.

     CharacterData

    B.

     Document

    C.

     Attr

    D.

     Element


  9. The nodes that represent HTML elements are the

  10. A.

     Subclass nodes

    B.

     HTML nodes

    C.

     Window nodes

    D.

     Element nodes


  11. Which of the following is/are of Text nodes?

  12. A.

     Text

    B.

     Comment

    C.

     Both Text and Comment

    D.

     None of the mentioned


  13. Which is one of way to query a document for an element or elements?

  14. A.

     With a specified id attribute

    B.

     Matching the specified CSS selector

    C.

     With the specified tag name

    D.

     All of the mentioned


  15. Which of the following can be used to select HTML elements based on the value of their name attributes?

  16. A.

     getElementByName()

    B.

     getElementsByName()

    C.

     getElementsName()

    D.

     getElementName()


  • Which of the following property refers to the root element of the document?

  • A.

     documentElement

    B.

     elementdocument

    C.

     rootdocument

    D.

     none of the mentioned


  • The return type of getElementsByClassName() is

  • A.

     DOM

    B.

     Document

    C.

     Node

    D.

     NodeList