1. XML DOM is: |
XML Data Object Model |
XML Document Object Module |
XML Document Object Model |
XML Data Object Module
|
2. XML DOM defines a standard way for |
only accessing the XML documents |
accessing and manipulating XML documents |
only manipulating XML documents |
None of these
|
3. The DOM is separated into how many different parts ? |
2 |
3 |
4 |
5
|
4. XML DOM - defines a standard set of objects for XML documents only. |
True |
False |
Not always |
Can't say
|
5. The XML DOM is language- and platform |
dependent |
independent |
Not always dependent |
None of these
|
6. The XML DOM define a standard set of ______ for XML |
classes |
functions |
files |
objects
|
7. The DOM treats the XML document as |
table-structure |
file-structure |
tree-structure |
All the above
|
8. Each attribute,element and text in the XML document represents a |
node in the tree |
stumb in a tree |
leaf in a tree |
flowers in a tree
|
9. Both Mozilla and Internet Explorer support W3C's DOM specification. |
False |
Not always true |
True |
None of these
|
10. There are differences between Internet Explorer's DOM and Mozilla's DOM. The most important difference is that how they handle |
text nodes |
white-space text nodes |
nodes |
None of these
|
11. We can navigate between nodes with the use of their ________ to each other. |
degree |
relationship |
links |
levels
|
12. Which of these are not the valid XML DOM relationships ? |
parentNode |
previousSibling |
lastChild |
nextNode
|
13. Internet Explorer will skip white-space text node that are generated between nodes (e.g. new-line characters), while Mozilla will not. |
True |
False |
Not always true |
None of these
|
14. The ________ method return a nodelist that contains all elements with the specified tag name in the same order as they appear in the source document. |
getElementsByName() |
elementsByTagname() |
getElementsByTagname() |
byTagname()
|
15. The ________ method can be used to display the value of the specified attribute. |
attribute() |
getAttribute() |
showAttribute() |
printAttribute()
|
16. The ______ method can be used to remove the specified node. |
removeChild() |
deleteChild() |
reChild() |
dropChild()
|
17. How many parameters are there for deleteData() method ? |
0 |
1 |
2 |
3
|
18. The _____ method creates the new element node. |
buildElement() |
createElement() |
Element() |
None of these
|
19. How many parameters are there for replaceData() method method ? |
2 |
4 |
5 |
3
|
20. The _______ method is used to remove the attribute node. |
removeAttNode() |
rmAtNode() |
removeAttributeNode() |
None of these
|