Sail E0 Webinar

MCQs

Total Questions : 180 | Page 5 of 18 pages
Question 41. How many node types are there in total?
  1.    11
  2.    12
  3.    13
  4.    14
 Discuss Question
Answer: Option B. -> 12
Question 42. What is the purpose of the Node object property ownerDocument?
  1.    Returns the root element
  2.    Returns the last element
  3.    Returns the parent node
  4.    Returns the immediate node
 Discuss Question
Answer: Option A. -> Returns the root element
Question 43. Which of the following Node object property returns the local part of the name of a node?
  1.    lastName
  2.    localName
  3.    firstName
  4.    none of the mentioned
 Discuss Question
Answer: Option B. -> localName
Question 44. What is the property textContent?
  1.    Sets the textual content of a node
  2.    Returns the textual content of a node
  3.    Sets & Returns the textual content of a node
  4.    None of the mentioned
 Discuss Question
Answer: Option C. -> Sets & Returns the textual content of a node
Question 45. How many Node object methods are available?
  1.    18
  2.    19
  3.    20
  4.    21
 Discuss Question
Answer: Option A. -> 18
Question 46. Which of the following Node object property returns the node immediately before a node?
  1.    previousSibling
  2.    textContent
  3.    index
  4.    localName
 Discuss Question
Answer: Option A. -> previousSibling
Question 47. What is the purpose of the method getUserData(key)?
  1.    Returns the associated object
  2.    Gets the user data
  3.    Returns the user data
  4.    None of the mentioned
 Discuss Question
Answer: Option A. -> Returns the associated object
Question 48. How to associate an object to a key on a node?
  1.    getUserData()
  2.    cloneNode()
  3.    setUserData(key,data,handler)
  4.    none of the mentioned
 Discuss Question
Answer: Option C. -> setUserData(key,data,handler)
Question 49. How to test if two nodes are equal?
  1.    isEqualNode()
  2.    equal()
  3.    ==
  4.    none of the mentioned
 Discuss Question
Answer: Option A. -> isEqualNode()
Question 50. Which method is used to compare the placement of two nodes in the DOM hierarchy (document)?
  1.    compareDocumentPosition()
  2.    cloneNode()
  3.    getUserData()
  4.    getFeature()
 Discuss Question
Answer: Option A. -> compareDocumentPosition()

Latest Videos

Latest Test Papers