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

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. The paragraph “p” is a part of

  4. A.

     h1

    B.

     body

    C.

     html

    D.

     Both body and html

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. The node directly above a node is called

  6. A.

     sibling

    B.

     child

    C.

     parent

    D.

     ancestors

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. The Text and Comment is part of

  8. A.

     CharacterData

    B.

     Document

    C.

     Attr

    D.

     Element

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. The nodes that represent HTML elements are the

  10. A.

     Subclass nodes

    B.

     HTML nodes

    C.

     Window nodes

    D.

     Element nodes

    View Answer

    Workspace

    Discuss Discuss in Forum


  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

    View Answer

    Workspace

    Discuss Discuss in Forum


  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

    View Answer

    Workspace

    Discuss Discuss in Forum


  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()

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  • A.

     documentElement

    B.

     elementdocument

    C.

     rootdocument

    D.

     none of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  • The return type of getElementsByClassName() is

  • A.

     DOM

    B.

     Document

    C.

     Node

    D.

     NodeList

    View Answer

    Workspace

    Discuss Discuss in Forum