XML Midterm Quiz1
XML Midterm Quiz1
1
Correct
Mark 1.00 out of 1.00
Flag question
Question text
This is an XML DOM property that inserts an element at the end of a given
element's children.
Select one:
a.
createTextNode()
b.
getAttribute()
c.
appendChild()
d.
createElement()
Question 2
Correct
Mark 1.00 out of 1.00
Flag question
Question text
This is an XML DOM property that removes an attribute from an element
Select one:
a.
insertChild()
b.
insertBefore()
c.
removeAttribute()
d.
createTextNode()
Question 3
Correct
Mark 1.00 out of 1.00
Flag question
Question text
The XML DOM property getElementsByTagName() ________
Select one:
a.
returns a single element with a given ID
b.
returns array of tags that match given tag name
c.
sets the value of an attribute on an element
d.
gets the value of a given attribute on an element
Question 4
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Observe the trees structure below
Which of the following statement is incorrect?
Select one:
a.
The node "Sean Doe" is a parent node.
b.
The nodes <name>, <phone>, and <address> are sibling nodes
c.
The <contact> node is the root node
d.
The node "Sean Doe" is a child node of the <phone> node
Question 5
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Which of the following is TRUE about XML DOM?
Select one:
a.
XML DOM stands for XML Data Object Manipulation
b.
XML DOM is platform dependent
c.
XML DOM is used to get, update, add, and delete elements in a database
d.
XML DOM is W3C recommended
Question 6
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Which of the following statement is TRUE?
Select one:
a.
All statements are TRUE
b.
A tree structure is based around nodes
c.
XML DOM is presented in a tree structure
d.
A XML document is considered a document node
Question 7
Correct
Mark 1.00 out of 1.00
Flag question
Question text
This is an XML DOM property that references the root document element.
Select one:
a.
getAttribute()
b.
createElement()
c.
documentElement()
d.
removeChild()
Question 8
Correct
Mark 1.00 out of 1.00
Flag question
Question text
This is an XML DOM property that inserts a new node before the given
node
Select one:
a.
documentElement()
b.
insertChild()
c.
insertBefore()
d.
createTextNode()
Question 9
Correct
Mark 1.00 out of 1.00
Flag question
Question text
In XML DOM, a tag in an XML document is considered a ______ type of
node.
Select one:
a.
Text
b.
Attribute
c.
Element
d.
Comment
Question 10
Correct
Mark 1.00 out of 1.00
Flag question
Question text
In the tree structure diagram below
Which of following is considered the root node?
Select one:
a.
Sean Doe
b.
<name>
c.
<phone>
d.
<contact>