0% found this document useful (0 votes)
362 views16 pages

Midterm Lab Exam - Attempt Review

Uploaded by

Jher Molleda
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
362 views16 pages

Midterm Lab Exam - Attempt Review

Uploaded by

Jher Molleda
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

6/22/24, 9:20 PM Midterm Lab Exam: Attempt review

Home / My courses / UGRD-IT6316-2333T / MIDTERM EXMAINATION / Midterm Lab Exam

Started on Saturday, 22 June 2024, 9:12 PM


State Finished
Completed on Saturday, 22 June 2024, 9:19 PM
Time taken 7 mins 4 secs
Marks 50.00/50.00
Grade 100.00 out of 100.00

Question 1
Correct

Mark 1.00 out of 1.00

XSLT can transform an XML document into an XHTML document.

Select one:
True

False 

Question 2
Correct

Mark 1.00 out of 1.00

The symbol // is the XPath path expression that selects attribute.

Select one:
True

False 

Question 3
Correct

Mark 1.00 out of 1.00

XPath is not a W3C standard

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

Mark 1.00 out of 1.00

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

Mark 1.00 out of 1.00

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

Mark 1.00 out of 1.00

XSLT uses Namespaces and XPath in its syntax.

Select one:
True 

False

Question 7
Correct

Mark 1.00 out of 1.00

Which of the following statements is TRUE about XPath?

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

Mark 1.00 out of 1.00

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

Mark 1.00 out of 1.00

This is an XML DOM property that removes an attribute from an element

Select one:
a. insertBefore()
b. insertChild()
c. removeAttribute()
d. createTextNode()

Question 10
Correct

Mark 1.00 out of 1.00

This element is used to build templates.

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

Mark 1.00 out of 1.00

This returns all elements with a specified tag name.

Select one:
a. createElement()
b. getElementsByTagName()
c. removeChild()
d. replaceChild()

Question 12

Correct

Mark 1.00 out of 1.00

This is an XML DOM function used to replace an existing node.

Select one:
a. removeChild()
b. replaceChild()
c. createElement()
d. getElementsByTagName()

Question 13
Correct

Mark 1.00 out of 1.00

XSLT is used to extract data from XML.

Select one:
True

False 

Question 14
Correct

Mark 1.00 out of 1.00

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

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

Mark 1.00 out of 1.00

This XPath path expression selects from the root node.

Select one:
a. //
b. @
c. /
d. ..

Question 16

Correct

Mark 1.00 out of 1.00

This is a standard way of selecting data/information in XML documents.

Select one:
a. XPath
b. XSLT
c. DTD
d. XQuery

Question 17
Correct

Mark 1.00 out of 1.00

XSLT stands for

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

Mark 1.00 out of 1.00

This element is used to express multiple conditional tests.

Select one:
a. <xsl:template>
b. <xsl:value-of>
c. <xsl:sort>
d. <xsl:choose>

Question 19

Correct

Mark 1.00 out of 1.00

The symbol / is the XPath path expression selects the parent of the current node.

Select one:
True 

False

Question 20

Correct

Mark 1.00 out of 1.00

The XML DOM property getElementsByTagName() ________

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

Mark 1.00 out of 1.00

XSLT transforms an XML document into another XML document

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

Mark 1.00 out of 1.00

XSLT uses XPath to navigate in XML documents

Select one:
True 

False

Question 23

Correct

Mark 1.00 out of 1.00

This is a function used for creating text nodes

Select one:
a. createTextNode()
b. createComment()
c. createAttribute()
d. setAttribute ()

Question 24

Correct

Mark 1.00 out of 1.00

On the XML document below:


To get the contact number with type "work", we can use the XPath

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

Mark 1.00 out of 1.00

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 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

Mark 1.00 out of 1.00

XSLT describes how an XML document is displayed.

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

Mark 1.00 out of 1.00

Given the XML document:

<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

Mark 1.00 out of 1.00

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

Mark 1.00 out of 1.00

XPath is a fundamental part of some XML related technologies.

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

Mark 1.00 out of 1.00

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

Mark 1.00 out of 1.00

Which of the following statements is INCORRECT?

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

Mark 1.00 out of 1.00

Predicates in XPath are zero-based, meaning selection starts with 0.

Select one:
True

False 

Question 33
Correct

Mark 1.00 out of 1.00

XPath is a standard way of selecting data/information in XML documents.

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

Mark 1.00 out of 1.00

This XPath path expression selects attribute.

Select one:
a. /
b. //
c. @
d. ..

Question 35

Correct

Mark 1.00 out of 1.00

In XML DOM, a tag in an XML document is considered a ______ type of node.

Select one:
a. Text
b. Comment
c. Attribute
d. Element

Question 36
Correct

Mark 1.00 out of 1.00

This XPath expression selects all attributes of the current node.

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

Mark 1.00 out of 1.00

On the XML document below:


To get all the contact numbers we can use the XPath

Select one:
a. contactinfo/contactnumber[2]
b. contactinfo/contactnumber[0]
c. contactinfo/contactnumber
d. contactinfo/contactnumber[1]

Question 38
Correct

Mark 1.00 out of 1.00

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

Mark 1.00 out of 1.00

Which of the following statements is NOT TRUE?

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

Mark 1.00 out of 1.00

Which of the following statements is TRUE?

Select one:
a. XSLT uses namespace
b. XSLT can transform XML
c. All statements are TRUE
d. XSLT uses XPath

Question 41

Correct

Mark 1.00 out of 1.00

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 42
Correct

Mark 1.00 out of 1.00

XSLT stands for eXtensible Stylesheet Transformation

Select one:
True 

False

Question 43
Correct

Mark 1.00 out of 1.00

This XPath expression selects all child of the current node.

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

Mark 1.00 out of 1.00

Which of the following is TRUE about XML DOM?

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

Mark 1.00 out of 1.00

This XPath path expression selects the parent of the current node.

Select one:
a. @
b. /
c. ..
d. //

Question 46
Correct

Mark 1.00 out of 1.00

This is an XML DOM function use to remove a specified child node

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

Mark 1.00 out of 1.00

In the tree structure diagram below

Which of following is considered the root node?

Select one:
a. <name>
b. Sean Doe
c. <phone>
d. <contact>

Question 48

Correct

Mark 1.00 out of 1.00

This is an XML DOM function for removing nodes

Select one:
a. removeChild()
b. replaceChild()
c. createElement()
d. getElementsByTagName()

Question 49

Correct

Mark 1.00 out of 1.00

The symbol @ is the XPath path expression that selects attribute.

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

Mark 1.00 out of 1.00

The purpose of XSLT is to transform an XML document.

Select one:
True 

False

◄ MIDTERM EXAMINATION

Jump to...

https://trimestralexam.amaesonline.com/2333B/mod/quiz/review.php?attempt=60976&cmid=6422 16/16

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy