Home / My courses / UGRD-IT6316-2213T / FINAL EXAMINATION / FINAL EXAMINATION
Started on Monday, 19 December 2022, 6:22 PM
State Finished
Completed on Monday, 19 December 2022, 6:32 PM
Time taken 10 mins 2 secs
Marks 50/50.
Grade 100 out of 100.
Question 1
Correct
Mark 1 out of 1.
<xsl:stylesheet version="1" xmlns:xsl="w3/1999/XSL/Transform"> is not interchangeable with <xsl:transform version="1"
xmlns:xsl="w3/1999/XSL/Transform">
Select one:
True
False
Question 2
Correct
Mark 1 out of 1.
If we refer to the given xml and xsl codes below, how many table column would display in our browser once we run the xml file against the
xsl file?
------------------------xml------------------------------
<?xml version="1" encoding="UTF-8"?>
<books>
<book genre="educational">
<title lang="en">Guide to Learn Faster</title>
<author>Dan Morgan</author>
<year>1965</year>
</book>
<book genre="culture">
<title lang="en">Within Philippine's Hospitality</title>
<author>Jake Johnson</author>
<year>1966</year>
</book>
<book genre="computer">
<title lang="en">Introduction to Programming</title>
<author>Sam Clover</author>
<year>1975</year>
</book>
<book genre="philosophy">
<title lang="en">Philosophy of Man</title>
<author>Jon Mills</author>
<year>1989</year>
</book>
</books>
------------------------xsl---------------------------------
<?xml version="1" encoding="UTF-8" ?>
<xsl:transform xmlns:xsl="w3/1999/XSL/Transform" version="2">
<xsl:output method="html" doctype-public="XSLT-compat" omit-xml-declaration="yes" encoding="UTF-8" indent="yes" />
<xsl:template match="/">
<html>
<body>
<h2>Books</h2>
<table border="1">
<tr bgcolor="cyan">
<th style="text-align:left">Book Title</th>
Question 4
Correct
Mark 1 out of 1.
XML Schema is the only way that we can validate xml documents
Select one:
True
False
Question 5
Correct
Mark 1 out of 1.
The internal DTD included inside of the xml document as shown below will not produce any error
<?xml version="1" encoding="UTF-8"?>
<!DOCTYPE students [
<!ELEMENT students (student)*>
<!ELEMENT student (name,age,id,benefactor*)>
<!ATTLIST student enrolled CDATA "yes">
<!ELEMENT name (#PCDATA)>
<!ELEMENT id (#PCDATA)>
<!ELEMENT age (#PCDATA)>
<!ELEMENT benefactor (bnname,age)>
<!ELEMENT bname (#PCDATA)>
]>
<students>
<student enrolled="yes">
<name>Gerard</name>
<age>30</age>
<id>200903939</id>
<benefactor>
<bname>Carlito</bname>
<age>45</age>
</benefactor>
<benefactor>
<bname>Michelle</bname>
<age>35</age>
</benefactor>
</student>
<student enrolled="no">
<name>Christian</name>
<age>34</age>
<id>200703939</id>
<benefactor>
<bname>Andrea</bname>
<age>34</age>
</benefactor>
</student>
</students>
A. True
B. False
ANSWER: B
What should be the root tag of our xml document if we validate it against the given DTD codes below?
Question 7
Correct
Mark 1 out of 1.
If we refer to the given xml and xsl codes below, how many table rows would display in our browser once we run the xml file against the xsl
file?
------------------------xml------------------------------
<?xml version="1" encoding="UTF-8"?>
<books>
<book genre="educational">
<title lang="en">Guide to Learn Faster</title>
<author>Dan Morgan</author>
<year>1965</year>
</book>
<book genre="culture">
<title lang="en">Within Philippine's Hospitality</title>
<author>Jake Johnson</author>
<year>1966</year>
</book>
<book genre="computer">
<title lang="en">Introduction to Programming</title>
<author>Sam Clover</author>
<year>1975</year>
</book>
<book genre="philosophy">
<title lang="en">Philosophy of Man</title>
<author>Jon Mills</author>
<year>1989</year>
</book>
</books>
------------------------xsl---------------------------------
<?xml version="1" encoding="UTF-8" ?>
<xsl:transform xmlns:xsl="w3/1999/XSL/Transform" version="2">
<xsl:output method="html" doctype-public="XSLT-compat" omit-xml-declaration="yes" encoding="UTF-8" indent="yes" />
<xsl:template match="/">
<html>
<body>
<h2>Books</h2>
<table border="1">
<tr bgcolor="cyan">
<th style="text-align:left">Book Title</th>
Question 8
Correct
Mark 1 out of 1.
<th style="text-align:left">Author</th>
</tr>
<xsl:for-each select="books/book">
<tr>
<td><xsl:value-of select="title"/></td>
<td><xsl:value-of select="author"/></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:transform>
a. 2
b. 3
c. 5
d. 7
Your answer is correct.
This is used to declare an element in DTD
a. <ELEMENT>
b. <ELEMENT
c. !ELEMENT
d. ?ELEMENT
Your answer is correct.
Question 12
Correct
Mark 1 out of 1.
Question 13
Correct
Mark 1 out of 1.
Choose the correct sytanx to successfully declare xslt documents
a. <xd:stylesheet version="1"
xmlns:xsl="w3/1999/XSL/Transform">
b. <xsl:transformation version="1"
xmlns:xsl="w3/1999/XSL/Transform">
c. <xsl:stylesheet version="1"
xmlns:xsl="w3/1999/XSL/Transform">
d. <xd:transform version="1"
xmlns:xsl="w3/1999/XSL/Transform">
Your answer is correct.
What technology does XSLT use to navigate through XML documents and to define parts of the source document that should match one or
more predefined templates.
a. DTD
b. XPath
c. XSD
d. CDATA
Your answer is correct.
Question 14
Correct
Mark 1 out of 1.
Question 15
Correct
Mark 1 out of 1.
Question 16
Correct
Mark 1 out of 1.
Which of the following statements is true if XML Schemas support Data Types
a. It is difficult to describe allowable document content
b. It is challenging to define data restrictions
c. It is not possible to convert data between different data types
d. It is easier to validate the correctness of data
Your answer is correct.
This is the extension name we use to save a file as DTD
a. .d
b. .dtd
c. .xdtd
d. .xsd
Your answer is correct.
XSD and DTD share the same structure
Select one:
True
False
Question 20
Correct
Mark 1 out of 1.
Question 21
Correct
Mark 1 out of 1.
Question 22
Correct
Mark 1 out of 1.
XSLT has its own processor
Select one:
True
False
This DTDs are included inside of an xml document
a. Intrinsic DTD
b. In DTD
c. Inline DTD
d. Internal DTD
Your answer is correct.
XML Schema uses XML to define its rules which an xml document should adhere to
Select one:
True
False
Question 23
Correct
Mark 1 out of 1.
Question 24
Correct
Mark 1 out of 1.
Question 25
Correct
Mark 1 out of 1.
RSS stands for
a. Real Simple Syndication/Rich Site Summary
b. Real Simple Syndication/Rich Site Summarization
c. Really Simple Syndication/Rich Site Summary
d. Really Simple Syndication/Rich Site Summarization
Your answer is correct.
XSLT: This stands for
a. eXtensive Stylesheet Transformation
b. eXtended Stylesheet Translation
c. eXtended Stylesheet Transformation
d. eXtensive Stylesheet Translation
Your answer is correct.
The population limit in DTD which means zero or one element
a. *
b. +
c. ?
d.!
Your answer is correct.
Question 29
Correct
Mark 1 out of 1.
Question 30
Correct
Mark 1 out of 1.
Question 31
Correct
Mark 1 out of 1.
The population limit in DTD which means one or more element
a. *
b. +
c.?
d.!
Your answer is correct.
This xml database is relational database, where data are stored in tables consisting of rows and columns.
a. Relational XML database
b. Native XML database
c. Container Based XML database
d. XML-enabled database
Your answer is correct.
This content model in DTD can contain elements and character data
a. ANY content
b. Element content
c. Mixed content
d. EMPTY content
Your answer is correct.
Question 32
Correct
Mark 1 out of 1.
Question 33
Correct
Mark 1 out of 1.
Question 34
Correct
Mark 1 out of 1.
This xslt element is used to build templates.
a. $xsl:value-of
b. $xsl:transform
c. xsl:template>
d. $xsl:stylesheet
Your answer is correct.
XML database is queried by the XPath-expressions
a. Relational XML database
b. Native XML database
c. Container Based XML database
d. XML-enabled database
Your answer is correct.
In order for an XML document to be considered valid, the XML file should abide by the rules set by the DTD.
Select one:
True
False
Question 38
Correct
Mark 1 out of 1.
Question 39
Correct
Mark 1 out of 1.
What child elements must be inside the benefactor element of an xml file if we use the following DTD codes below to validate it?
<!ELEMENT students (student)*>
<!ELEMENT student (name,age,id,benefactor*)>
<!ATTLIST student enrolled CDATA "yes">
<!ELEMENT name (#PCDATA)>
<!ELEMENT id (#PCDATA)>
<!ELEMENT age (#PCDATA)>
<!ELEMENT benefactor (bname,age)>
<!ELEMENT bname (#PCDATA)>
]>
a. name,age,id,benefactor
b. student
c. bname,age
d. name,age,id,benefactor,bname
Your answer is correct.
This xslt attribute is used to associate a template with an XML element. This attribute can also be used to define a template for the entire XML
document.
a. Connect
b. Define
c. Associate
d. Match
Your answer is correct.
Question 40
Correct
Mark 1 out of 1.
Question 41
Correct
Mark 1 out of 1.
Question 42
Correct
Mark 1 out of 1.
This xslt element can be used to extract the value of an XML element and add it to the output stream of the transformation
b. $xsl:transform
c. $xsl:template
d. $xsl:stylesheet
Your answer is correct.
This content model in DTD can contain specified elements
a. ANY content
b. Element content
c. Mixed content
d. EMPTY content
Your answer is correct.
This is a query and functional programming language that queries and transforms collections of structured and unstructured data, usually in
the form of XML, text and with vendor-specific extensions for other data formats
a. XQuery
b. Query
c. XMLQuery
d. RQuery
Your answer is correct.