Sail E0 Webinar

MCQs

Total Questions : 180 | Page 16 of 18 pages
Question 151. The central object in a larger API is known as
  1.    Document Object Material
  2.    Document Object Model
  3.    Binary Object Model
  4.    None of the mentioned
 Discuss Question
Answer: Option B. -> Document Object Model
Question 152. The paragraph “p” is a part of
  1.    h1
  2.    body
  3.    html
  4.    Both body and html
 Discuss Question
Answer: Option D. -> Both body and html
Question 153. The node directly above a node is called
  1.    sibling
  2.    child
  3.    parent
  4.    ancestors
 Discuss Question
Answer: Option C. -> parent
Question 154. The Text and Comment is part of
  1.    CharacterData
  2.    Document
  3.    Attr
  4.    Element
 Discuss Question
Answer: Option A. -> CharacterData
Question 155. The nodes that represent HTML elements are the
  1.    Subclass nodes
  2.    HTML nodes
  3.    Window nodes
  4.    Element nodes
 Discuss Question
Answer: Option D. -> Element nodes
Question 156. Which of the following is/are of Text nodes?
  1.    Text
  2.    Comment
  3.    Both Text and Comment
  4.    None of the mentioned
 Discuss Question
Answer: Option C. -> Both Text and Comment
Question 157. Which is one of way to query a document for an element or elements?
  1.    With a specified id attribute
  2.    Matching the specified CSS selector
  3.    With the specified tag name
  4.    All of the mentioned
 Discuss Question
Answer: Option D. -> All of the mentioned
Question 158. Which of the following can be used to select HTML elements based on the value of their name attributes?
  1.    getElementByName()
  2.    getElementsByName()
  3.    getElementsName()
  4.    getElementName()
 Discuss Question
Answer: Option B. -> getElementsByName()
Question 159. Which of the following property refers to the root element of the document?
  1.    documentElement
  2.    elementdocument
  3.    rootdocument
  4.    none of the mentioned
 Discuss Question
Answer: Option A. -> documentElement
Question 160. The return type of getElementsByClassName() is
  1.    DOM
  2.    Document
  3.    Node
  4.    NodeList
 Discuss Question
Answer: Option D. -> NodeList

Latest Videos

Latest Test Papers