You are on page 1of 7

Question 

1
Correct
Mark 1.00 out of 1.00

Flag question

Question text
This element is used to sort the output.

Select one:

a.
<xsl:if>

b.
<xsl:sort>

c.
<xsl:template>

d.
<xsl:for-each>

Question 2
Correct
Mark 1.00 out of 1.00

Flag question

Question text
Which of the following statement is TRUE?

Select one:

a.
XML DOM is presented in a tree structure

b.
All statements are TRUE
c.
A XML document is considered a document node

d.
A tree structure is based around nodes

Question 3
Correct
Mark 1.00 out of 1.00

Flag question

Question text
Which of the following can be used for declaring XSLT?

Select one:

a.
<xsl:transform>

b.
<xsl:stylesheet>

c.
<xsl:transform> <xsl:stylesheet>

d.
<xsl:declaration>

Question 4
Correct
Mark 1.00 out of 1.00

Flag question

Question text
This is an XML DOM function used to replace an existing node.
Select one:

a.
replaceChild()

b.
removeChild()

c.
createElement()

d.
getElementsByTagName()

Question 5
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 child node of the <phone> node

b.
The node "Sean Doe" is a parent node.

c.
The <contact> node is the root node

d.
The nodes <name>, <phone>, and <address> are sibling nodes

Question 6
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.
insertBefore()

b.
removeAttribute()

c.
insertChild()

d.
createTextNode()

Question 7
Correct
Mark 1.00 out of 1.00
Flag question

Question text
Which of the following statements is TRUE?

Select one:

a.
XSLT can transform XML

b.
All statements are TRUE

c.
XSLT uses XPath

d.
XSLT uses namespace

Question 8
Correct
Mark 1.00 out of 1.00

Flag question

Question text
On the XML document below:
 
To get the contact number with type “work”, we can use the XPath

Select one:

a.
contactinfo/contactnumber[1]

b.
contactinfo/contactnumber[0]

c.
contactinfo/contactnumber

d.
contactinfo/contactnumber[2]

Question 9
Correct
Mark 1.00 out of 1.00

Flag question

Question text
This XPath path expression selects from the root node.

Select one:

a.
/

b.
@

c.
//

d.
..

Question 10
Correct
Mark 1.00 out of 1.00

Flag question

Question text
This is an XML DOM function is used to create new elements/tags that we
can add to our existing XML document.

Select one:

a.
createElement()

b.
removeChild()

c.
replaceChild()

d.
getElementsByTagName()

You might also like