Midterm Lab Exam - Attempt Review
Midterm Lab Exam - Attempt Review
Question 1
Correct
Select one:
True
False
Question 2
Correct
Select one:
True
False
Question 3
Correct
Select one:
True
False
https://trimestralexam.amaesonline.com/2333B/mod/quiz/review.php?attempt=60976&cmid=6422 1/16
6/22/24, 9:20 PM Midterm Lab Exam: Attempt review
Question 4
Correct
This element is used to put a conditional test against the content of the XML file.
Select one:
a. <xsl:if>
b. <xsl:sort>
c. <xsl:for-each>
d. <xsl:template>
Question 5
Correct
This is an XML DOM function used for creating attributes for elements
Select one:
a. createAttribute()
b. setAttribute()
c. createComment ()
d. createTextNode
Question 6
Correct
Select one:
True
False
Question 7
Correct
Select one:
a. It does not use nodes
b. It is not a W3C standard
c. It is used to store data in XML
d. It is a fundamental part of some XML related technologies.
https://trimestralexam.amaesonline.com/2333B/mod/quiz/review.php?attempt=60976&cmid=6422 2/16
6/22/24, 9:20 PM Midterm Lab Exam: Attempt review
Question 8
Correct
This is an XML DOM property that inserts a new node before the given node
Select one:
a. documentElement()
b. createTextNode()
c. insertChild()
d. insertBefore()
Question 9
Correct
Select one:
a. insertBefore()
b. insertChild()
c. removeAttribute()
d. createTextNode()
Question 10
Correct
Select one:
a. <xsl:if>
b. <xsl:for-each>
c. <xsl:sort>
d. <xsl:template>
https://trimestralexam.amaesonline.com/2333B/mod/quiz/review.php?attempt=60976&cmid=6422 3/16
6/22/24, 9:20 PM Midterm Lab Exam: Attempt review
Question 11
Correct
Select one:
a. createElement()
b. getElementsByTagName()
c. removeChild()
d. replaceChild()
Question 12
Correct
Select one:
a. removeChild()
b. replaceChild()
c. createElement()
d. getElementsByTagName()
Question 13
Correct
Select one:
True
False
Question 14
Correct
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
https://trimestralexam.amaesonline.com/2333B/mod/quiz/review.php?attempt=60976&cmid=6422 4/16
6/22/24, 9:20 PM Midterm Lab Exam: Attempt review
Question 15
Correct
Select one:
a. //
b. @
c. /
d. ..
Question 16
Correct
Select one:
a. XPath
b. XSLT
c. DTD
d. XQuery
Question 17
Correct
Select one:
a. Extra Stylesheet Language Translation
b. Extended Stylesheet Language Translation
c. Extended Stylesheet Language Transformation
d. Extended Storage Language Transformation
https://trimestralexam.amaesonline.com/2333B/mod/quiz/review.php?attempt=60976&cmid=6422 5/16
6/22/24, 9:20 PM Midterm Lab Exam: Attempt review
Question 18
Correct
Select one:
a. <xsl:template>
b. <xsl:value-of>
c. <xsl:sort>
d. <xsl:choose>
Question 19
Correct
The symbol / is the XPath path expression selects the parent of the current node.
Select one:
True
False
Question 20
Correct
Select one:
a. returns a single element with a given ID
b. sets the value of an attribute on an element
c. returns array of tags that match given tag name
d. gets the value of a given attribute on an element
Question 21
Correct
Select one:
True
False
https://trimestralexam.amaesonline.com/2333B/mod/quiz/review.php?attempt=60976&cmid=6422 6/16
6/22/24, 9:20 PM Midterm Lab Exam: Attempt review
Question 22
Correct
Select one:
True
False
Question 23
Correct
Select one:
a. createTextNode()
b. createComment()
c. createAttribute()
d. setAttribute ()
Question 24
Correct
Select one:
a. contactinfo/contactnumber
b. contactinfo/contactnumber[2]
c. contactinfo/contactnumber[0]
d. contactinfo/contactnumber[1]
https://trimestralexam.amaesonline.com/2333B/mod/quiz/review.php?attempt=60976&cmid=6422 7/16
6/22/24, 9:20 PM Midterm Lab Exam: Attempt review
Question 25
Correct
Select one:
a. The node "Sean Doe" is a parent node.
b. The node "Sean Doe" is a child node of the <phone> node
c. The nodes <name>, <phone>, and <address> are sibling nodes
d. The <contact> node is the root node
Question 26
Correct
Select one:
True
False
https://trimestralexam.amaesonline.com/2333B/mod/quiz/review.php?attempt=60976&cmid=6422 8/16
6/22/24, 9:20 PM Midterm Lab Exam: Attempt review
Question 27
Correct
<songdetails>
<title>My Song</title>
<author>Ben Crows</author>
<year>1999</year>
</songdetails>
Which of the following is the correct XML DOM function to extract the text “My Song”?
Select one:
a. xmlDoc.getElementsByTagName("title").[0]childNodes[0].nodeValue;
b. xmlDoc.getElementsByTagName("title").[1]childNodes[0].nodeValue;
c. xmlDoc.getElementsByTagName("title").[0];
d. xmlDoc.getElementsByTagName("title").[0]childNodes[0];
Question 28
Correct
This is an XML DOM function is used to add a created element/tag on our XML document.
Select one:
a. getElementsByTagName()
b. appendChild()
c. replaceChild()
d. createElement()
Question 29
Correct
Select one:
True
False
https://trimestralexam.amaesonline.com/2333B/mod/quiz/review.php?attempt=60976&cmid=6422 9/16
6/22/24, 9:20 PM Midterm Lab Exam: Attempt review
Question 30
Correct
This element can be used to extract the value of an XML element and add it to the output stream of the transformation
Select one:
a. <xsl:choose>
b. <xsl:template>
c. <xsl:sort>
d. <xsl:value-of>
Question 31
Correct
Select one:
a. XSLT can sort elements
b. XSLT is not W3C recommended
c. XPath can be used in XSLT to select parts of an XML document to transform
d. XSLT is more powerful than CSS
Question 32
Correct
Select one:
True
False
Question 33
Correct
Select one:
True
False
https://trimestralexam.amaesonline.com/2333B/mod/quiz/review.php?attempt=60976&cmid=6422 10/16
6/22/24, 9:20 PM Midterm Lab Exam: Attempt review
Question 34
Correct
Select one:
a. /
b. //
c. @
d. ..
Question 35
Correct
Select one:
a. Text
b. Comment
c. Attribute
d. Element
Question 36
Correct
Select one:
a. attribute
b. descendant
c. following
d. child
https://trimestralexam.amaesonline.com/2333B/mod/quiz/review.php?attempt=60976&cmid=6422 11/16
6/22/24, 9:20 PM Midterm Lab Exam: Attempt review
Question 37
Correct
Select one:
a. contactinfo/contactnumber[2]
b. contactinfo/contactnumber[0]
c. contactinfo/contactnumber
d. contactinfo/contactnumber[1]
Question 38
Correct
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. createElement()
d. appendChild()
Question 39
Correct
Select one:
a. XPath defines paths on XML documents.
b. XPath paths are similar to the directories we use to access files on our computers.
c. Predicates are zero-based, meaning selection starts with 0.
d. Predicates are refinements for selecting data in XPath
https://trimestralexam.amaesonline.com/2333B/mod/quiz/review.php?attempt=60976&cmid=6422 12/16
6/22/24, 9:20 PM Midterm Lab Exam: Attempt review
Question 40
Correct
Select one:
a. XSLT uses namespace
b. XSLT can transform XML
c. All statements are TRUE
d. XSLT uses XPath
Question 41
Correct
Select one:
a. <xsl:transform>
b. <xsl:stylesheet>
c. <xsl:transform> <xsl:stylesheet>
d. <xsl:declaration>
Question 42
Correct
Select one:
True
False
Question 43
Correct
Select one:
a. attribute
b. following
c. child
d. descendant
https://trimestralexam.amaesonline.com/2333B/mod/quiz/review.php?attempt=60976&cmid=6422 13/16
6/22/24, 9:20 PM Midterm Lab Exam: Attempt review
Question 44
Correct
Select one:
a. XML DOM is used to get, update, add, and delete elements in a database
b. XML DOM stands for XML Data Object Manipulation
c. XML DOM is platform dependent
d. XML DOM is W3C recommended
Question 45
Correct
This XPath path expression selects the parent of the current node.
Select one:
a. @
b. /
c. ..
d. //
Question 46
Correct
Select one:
a. removeChild()
b. removeAttribute()
c. replaceElement()
d. replaceAttribute()
https://trimestralexam.amaesonline.com/2333B/mod/quiz/review.php?attempt=60976&cmid=6422 14/16
6/22/24, 9:20 PM Midterm Lab Exam: Attempt review
Question 47
Correct
Select one:
a. <name>
b. Sean Doe
c. <phone>
d. <contact>
Question 48
Correct
Select one:
a. removeChild()
b. replaceChild()
c. createElement()
d. getElementsByTagName()
Question 49
Correct
Select one:
True
False
https://trimestralexam.amaesonline.com/2333B/mod/quiz/review.php?attempt=60976&cmid=6422 15/16
6/22/24, 9:20 PM Midterm Lab Exam: Attempt review
Question 50
Correct
Select one:
True
False
◄ MIDTERM EXAMINATION
Jump to...
https://trimestralexam.amaesonline.com/2333B/mod/quiz/review.php?attempt=60976&cmid=6422 16/16