ExamVeda
Login
Home
21
What does a Node object represent?
Discuss
Answer & Solution
Answer: Option A
Solution:
The Node object represents a single node in the document tree.
22
What does the nodeName of the nodeType Document return?
Discuss
Answer & Solution
Answer: Option D
Solution:
The nodeName of the nodeType Document returns #document.
23
What is the purpose of the method item()?
Discuss
Answer & Solution
Answer: Option C
Solution:
The method item() returns the node at the specified index in a node list.
24
How can the nodes in the node list be accessed?
Discuss
Answer & Solution
Answer: Option B
Solution:
The nodes in the node list can be accessed through their index number (starting from 0).
25
Which of the following is the child(s) of the node type EntityReference?
Discuss
Answer & Solution
Answer: Option C
Solution:
The children of the node tyoe EntityReference are Element, ProcessingInstruction, Comment, Text, CDATASection, EntityReference.
26
Which node type represents the root-node of the DOM tree?
Discuss
Answer & Solution
Answer: Option A
Solution:
The node type Document represents the root-node of the DOM tree, the entire document.
27
What is the purpose of the DocumentFragment node type?
Discuss
Answer & Solution
Answer: Option A
Solution:
The DocumentFragment node type represents a “lightweight” Document object, which can hold a portion of a document.
28
How many nodetype – named constants are available?
Discuss
Answer & Solution
Answer: Option C
Solution:
There are totally 12 nodetype – named constants available.
29
Which of the following Node types have a node value equal to null?
Discuss
Answer & Solution
Answer: Option D
Solution:
All the three node types namely, Document, DocumentFragment, DocumentType have a node value equal to null.
30
How many node object properties are there?
Discuss
Answer & Solution
Answer: Option C
Solution:
There are totally 16 node object properties.