0% found this document useful (0 votes)
60 views

XML Based Web Applications

This document provides an overview of XML-based web applications. It discusses topics like XML DOM, XML Schema, DTD, and other XML technologies. The student must have basic knowledge of HTML, CSS, and JavaScript. It includes multiple choice questions about XML, XML Schema, XSLT, XPath, and DOM.

Uploaded by

amascualjustin
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
60 views

XML Based Web Applications

This document provides an overview of XML-based web applications. It discusses topics like XML DOM, XML Schema, DTD, and other XML technologies. The student must have basic knowledge of HTML, CSS, and JavaScript. It includes multiple choice questions about XML, XML Schema, XSLT, XPath, and DOM.

Uploaded by

amascualjustin
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 108

lOMoARcPSD|21479911

XML Based Web Applications

Web application development 1 (AMA Computer University)

Scan to open on Studocu

Studocu is not sponsored or endorsed by any college or university


Downloaded by James John ([email protected])
lOMoARcPSD|21479911

XML-Based Web Applications


XML-Based Web Applications
(PreQ1&Q2)
(PreLabQ1&Q2)
(PreXam)
(MidQ1, Q2)
(MidLQ1, LQ2)
(MXam, MLab)
(FinQ1, Q2)
(FinLQ1, LQ2)
(FinXAm, FinaLab)

This course will provide the student with a detailed overview of eXtensible
Markup Language XML. This course will enable the student to integrate XML
in web applications. Topics like XML DOM (Document Object Model), XML
Schema, DTD (Document Type Definition), and other XML related
technologies will be discussed.

The student must have basic knowledge of HTML and CSS as well as a basic
understanding of scripting/programming language such JavaScript

Question text
XSLT processors accept as input:
Select one:
a.
an XML conforming document file and an XSLT specification file
b.
either an XML document or an XSLT specification
c.
only an XSLT specification
d.

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

only an XML document


Question text
What does XSLT stands for?
Select one:
a.
Extended Stylesheet Language Translation
b.
Extended Stylesheet Language Transformation
c.
Extra Stylesheet Language Translation
d.
Extended Storage Language Transformation
Question text
This is a language used to transform XML documents into other XML documents,
XHTML file, or any other XML document formats.
Select one:
a.
DTD
b.
XSLT
c.
XPath
d.
XML Schema
Question text
Given the XML document:
<movie>
<title>The House</title>
<director>Ben Crows</director>
<year>1997</year>
</movie>
Which of the following is the correct XML DOM function to extract the text "The
House"?
Select one:
a.
xmlDoc.getElementsByTagName("title").[0]childNodes[0];
b.
xmlDoc.getElementsByTagName("title").[1]childNodes[0].nodeValue;

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

c.
xmlDoc.getElementsByTagName("title").[0];
d.
xmlDoc.getElementsByTagName("title").[0]childNodes[0].nodeValue;
Question text
This is an XML DOM element that sets the value of an attribute on an element
Select one:
a.
setAttribute()
b.
innerHTML
c.
removeAttribute()
d.
getAttribute()
Question text
This is an XML DOM element that gets or sets the HTML content of the given tag
Select one:
a.
removeAttribute()
b.
getAttribute()
c.
innerHTML
d.
setAttribute()
Question text
In XML Schema to declare Boolean elements, we use _______
Select one:
a.
<xsd:boolean>
b.
<xsd:date>
c.
<xsd:integer>
d.
<xsd:anyURI>

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

Question text
Which of the following statements is NOT TRUE about XML Namespaces?
Select one:
a.
Namespace is a way of describing an XML document.
b.
Namespace is special set of rules are that a well-formed XML document should
abide to be considered a valid document.
c.
Namespace is a process of validating an XML document
d.
All of the choices
Question text
Observe the XML document below:

<cinema>
<movie genre="horror">
<title lang="en">House in the Woods</title>
<director>Dan Morgan</director>
<year>1965</year>
</movie>
<movie genre="action">
<title lang="en">A time to Fight</title>
<director>Jake Johnson</director>
<year>1966</year>
</movie>
<movie genre="comedy">
<title lang="en">The adventures of Earl</title>
<director>Sam Clover</director>
<year>1975</year>
<price>49.99</price>
</movie>
If we use the XPath expression //director, the output will be:
Select one:
a.
This will produce an error

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

b.
The first director on the XML document
c.
All director element text
d.
All director elements
Question text
Which of the following is a valid tag name for an XML Document?
Select one:
a.
3myTag
b.
xml
c.
my_tag
d.
xmlMyTag
Question text
To create new elements/tags that we can add to our existing XML document we use
the XML DOM function _________.
Select one:
a.
removeChild()
b.
getElementsByTagName()
c.
replaceChild()
d.
createElement()
Question text
Which of the following statements about XSLT is NOT TRUE?
Select one:
a.
XSLT can transform XML
b.
XSLT stores data
c.
XSLT uses namespace

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

d.
XSLT uses XPath
Question text
Which of the following strings are correct XML names?
Select one:
a.
_myElement
b.
ww3
c.
None of the choices
d.
my Element
Question text
Which of the following web services is XML RSS NOT applicable?
Select one:
a.
Companies
b.
Database
c.
News sites
d.
Calendars
Question text
Which of the following about XML attributes is INCORRECT?
Select one:
a.
Attributes are declared inside the opening tag.
b.
The opening and closing tags should be identical
c.
Tags are not case sensitive.
d.
Attributes should appear only once inside a tag.
Question text

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

The transformation of XML document in to another type of document by XSLT can


be done by
(i)In the server
(ii)In the client
(iii)With a separate program
Select one:
a.
only(i) & (ii)
b.
only (i) & (iii)
c.
all are correct
d.
only (ii) & (iii)
Question text
This is an XML DOM element that removes an attribute from an element
Select one:
a.
getAttribute()
b.
setAttribute()
c.
innerHTML
d.
removeAttribute()
Question text
Which of the following about RSS is CORRECT?
Select one:
a.
RSS allows you to syndicate your site content
b.
RSS files can be automatically updated
c.
All of the choices
d.
RSS defines an easy way to share and view headlines and content
Question text
Which of the following is NOT a real-life application of XML?

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

Select one:
a.
Used for tracking GPS Locations.
b.
Used for describing MS Office documents
c.
Used for updating web content
d.
Used for websites about news and weather
Question text
Which of the following statement is a correct description of a well-formed XML
document?
Select one:
a.
This is an XML Document that follows all the syntax rules.
b.
This is a process of validating an XML document
c.
These are used to avoid conflict among element/tag names.
d.
None of the choices
Question text
What is the role of the XPath language in XSL processing?
Select one:
a.
XPath identifies the order or path of processing to be followed as the XSL language
is processed
b.
XPath identifies the path to be followed in the execution of XSL translation
prescriptions
c.
XPath specifies which XSL transform files are to be used in the translation of XML
d.
XPath identifies locations in XML data to be transformed in the source tree and the
locations to be generated in output tree specified in XSL translation prescriptions
Question text
The default model for complex type, in XML schemas for element is
Select one:

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

a.
textOnly
b.
elementOnly
c.
no default type
d.
None of the choices
Question text
If we want to remove an attribute using XML DOM, the ______ function is used.
Select one:
a.
replaceAttribute()
b.
changeAttribute()
c.
removeAttribute()
d.
deleteAttribute()
Question text
This element is used to express multiple conditional tests.
Select one:
a.
<xsl:value-of>
b.
<xsl:choose>
c.
<xsl:sort>
d.
<xsl:template>
Question text
In XML Schema, this is a container for other element definitions.
Select one:
a.
Complex Type
b.
Simple Type

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

c.
Elements
d.
Attributes
Question text
What does XML stands for?
Select one:
a.
Extreme Markup Language
b.
Extra Markup Language
c.
Extensive Markup Language
d.
X-Markup Language
Question text
A tag in an XML document is considered a ______ type of node.
Select one:
a.
Attribute
b.
Comment
c.
Text
d.
Element
Question text
Which of the following is the correct description of RSS?
Select one:
a.
This is the syntax for defining parts of an XML document as well as to extract
information on it.
b.
This technology takes an XML file and converts it into other format.
c.
This is a combination of both HTML and XML.
d.
This is a format for delivering dynamic content in the internet

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

Question text
The process of validating an XML document is called _____.
Select one:
a.
id XML Documents
b.
Val
c.
XML Schema
d.
Validation
e.
Well-defined XML Document
Question text
Which of the following is a valid XPath expression?
Select one:
a.
((
b.
.,
c.
;;
d.
//
Question text
To create text nodes in XML documents the _____________ XML DOM function is used.
Select one:
a.
setAttribute ()
b.
createComment()
c.
createAttribute()
d.
createTextNode()
Question text
Which of the following about CDATA is CORRECT?

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

Select one:
a.
All of the choices
b.
Nesting is not allowed in CDATA.
c.
Anything that is written inside the CDATA component is treated as regular text.
d.
Character Data Section
Question text
The use of Document definition in XML is:
Select one:
a.
creating XML templates
b.
This is used to validate XML documents
c.
XML doesn't need document definitions
d.
used to transform data
Question text
<!DOCTYPE PersonalInformation [
<!ELEMENT PersonalInformation (name,contactnumber+,email?)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT contactnumber (#PCDATA)>
<!ELEMENT email (#PCDATA)>
]>

In the XML DTD example above, contactnumber+ means ________.


Select one:
a.
It does not mean anything
b.
<contactnumber> element should contain at least one element or more
c.
<contactnumber> element is optional
d.

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

<contactnumber> element should contain zero element or more


Question text
Which of the following describes an XML element/tag?
Select one:
a.
This is a way for XML to send special instructions to the XML Parser.
b.
his XML component shortens XML documents.
c.
This is an XML component contains details that set up an XML processor in parsing
the document.
d.
These are considered as a foundation of an XML document.
Question text
Which of the following statements about XML DOM is TRUE?
Select one:
a.
XML DOM is platform independent
b.
XML DOM is used to get, update, add, and delete elements in a database
c.
XML DOM is not recommended by W3C
d.
XML DOM stands for XML Data Object Manipulation
Question text
Which of the following describes an XML Processing Instruction?
Select one:
a.
This XML component shortens XML documents.
b.
This is a way for XML to send special instructions to the XML Parser.
c.
This is an XML component contains details that set up an XML processor in parsing
the document.
d.
These are considered as a foundation of an XML document.
Question text
In the tree structure below

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

Which tags are considered siblings?


Select one:
a.
<song> and <title>
b.
<compose>, <genre>, <song> and <title>
c.
<song>, <title>, and "Long Song"
d.
<title>, <composer>, and <genre>
Question text
This is an XML DOM function that returns all elements with a specified tag name.
Select one:
a.
createElement()
b.
replaceChild()
c.
removeChild()
d.
getElementsByTagName()
Question text
Which of the following statements about XML Namespaces is CORRECT?
Select one:
a.
Namespace is a way of describing an XML document.
b.
Namespaces make an element in an XML document unique..
c.
Namespace is special set of rules are that a well-formed XML document should
abide to be considered a valid document
d.
Namespace is a process of validating an XML document
Question text
Which of the following statement about XML RSS is TRUE?
Select one:

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

a.
With RSS you can create your own news channel, and publish it to the Internet
b.
With RSS you can separate wanted information from unwanted information
c.
All of the choices
d.
With RSS you can choose to view the news you want, the news that interest you and
are relevant to your work.

Question text
Which of the following web services is XML RSS NOT applicable?
Select one:
a.
Calendars
b.
News sites
c.
Database
d.
Companies
Question text
This is a language used to transform XML documents into other XML documents,
XHTML file, or any other XML document formats.
Select one:
a.
XML Schema
b.
XPath
c.
DTD
d.
XSLT
Question text
To declare a complex type of XML schema, we use the tag/element _____
Select one:
a.
<xsd:sequence>

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

b.
<xsd:complex>
c.
<xsd:restriction>
d.
<xsd:choose>
Question text
A standard way of selecting data/information in XML documents by means of using
paths.
Select one:
a.
XPath
b.
XQuery
c.
XSLT
d.
DTD
Question text
In declaring XSLT, we can use the tag __________
Select one:
a.
b.
c.
xsl:declaration>
Question text
Which following applications can be used to view XML document?
Select one:
a.
Mozilla Firefox
b.
None of the choices
c.
All of the choices
d.
Google Chrome
Question text

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

This is an XML DOM function that returns all elements with a specified tag name.
Select one:
a.
replaceChild()
b.
createElement()
c.
getElementsByTagName()
d.
removeChild()
Question text
Which of the following about CDATA is CORRECT?
Select one:
a.
Nesting is not allowed in CDATA.
b.
Anything that is written inside the CDATA component is treated as regular text.
c.
All of the choices
d.
Character Data Section
Question text
Which of the following about XML attributes is INCORRECT?
Select one:
a.
Attributes are declared inside the opening tag.
b.
The opening and closing tags should be identical
c.
Tags are not case sensitive.
d.
Attributes should appear only once inside a tag.
Question text
Which of the following is NOT an XML related technology?
Select one:
a.
MAC

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

b.
XSLT
c.
XPath
d.
RSS
Question text
To add a created element/tag on our XML document we use the XML DOM function
________.
Select one:
a.
getElementsByTagName()
b.
appendChild()
c.
createElement()
d.
replaceChild()
Question text
Valid XML Documents ___________
Select one:
a.
Have one root tag
b.
Nests each elements correctly
c.
Have at least one or more root tag
d.
Have Document Definitions associated with it
Question text
Which of the following is the correct description of a valid XML document?
Select one:
a.
This contains all the basic syntax rules that an XML Document should follow to be
considered well-formed.
b.
This is a process of validating an XML document.
c.

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

This is an XML Document that follows all the syntax rules.


d.
This is an XML document that is well-formed and follows a special set of rules from a
document definition.
Question text
Which of the following is a valid XPath expression?
Select one:
a.
//
b.
.,
c.
;;
d.
((
Question text
A software capable of handling large amounts of data in XML form is called ________
Select one:
a.
XML Database
b.
XML RSS
c.
XQuery
d.
XPath
Question text
Which of the following describes an XML Declaration?
Select one:
a.
This XML component shortens XML documents.
b.
This is a way for XML to send special instructions to the XML Parser.
c.
This is an XML component contains details that set up an XML processor in parsing
the document.
d.
These are considered as a foundation of an XML document.

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

Question text
Which of the following statement is TRUE?
Select one:
a.
All XML elements must be lower case
b.
All XML documents must have DTD
c.
All XML elements must have a closing tag.
d.
All of the choices
Question text
This is a technology well-known for its "asynchronous" nature. It can communicate,
exchange data, and update the page of the server without having to refresh the
page.
Select one:
a.
XSLT
b.
AJAX
c.
RSS
d.
XPath
Question text
A DTD found inside an XML document is called a ___________
Select one:
a.
Internal DTD
b.
!DOCTYPE
c.
External DTD
d.
DTD
Question text
To remove a specified child node, we use the XML DOM function
Select one:

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

a.
removeAttribute()
b.
replaceElement()
c.
replaceAttribute()
d.
removeChild()
Question text
Which of the following is the attribute is used to define a new XML Namespace?
Select one:
a.
xmlnpc
b.
xmlnamespace
c.
xmlns
d.
xmlnmspc
Question text
This element is used to express multiple conditional tests.
Select one:
a.
<xsl:choose>
b.
<xsl:template>
c.
<xsl:value-of>
d.
<xsl:sort>
Question text
Which of the following statements about XML DTD is TRUE?
Select one:
a.
With a DTD, independent groups of people can agree on a standard for
interchanging data
b.
All of the choices

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

c.
DTD is used to make sure the XML code is in the proper format.
d.
By incorporating XML DTD in XML documents, errors can be found easily.
Question text
This is a DTD found outside an XML document.
Select one:
a.
!DOCTYPE
b.
Internal DTD
c.
DTD
d.
External DTD
Question text
This is a content model that contain elements and character data
Select one:
a.
ANY content
b.
Element content
c.
Mixed content
d.
EMPTY content
Question text
Which of the following about XML Database is INCORRECT?
Select one:
a.
Oracle Database is an Example of XML Database
b.
None of the choices
c.
XML Database uses XQuery
d.
There are two types of XML Database

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

Question text
This is an XML DOM element that gets the value of a given attribute on an element
Select one:
a.
removeAttribute()
b.
setAttribute()
c.
getAttribute()
d.
innerHTML
Question text
This is an XML DOM element that removes an attribute from an element
Select one:
a.
getAttribute()
b.
innerHTML
c.
setAttribute()
d.
removeAttribute()
Question text
Which of the following correctly describes XML Validation?
Select one:
a.
This is an XML document that is well-formed and follows a special set of rules from a
document definition.
b.
This is a process of validating an XML document.
c.
This contains all the basic syntax rules that an XML Document should follow to be
considered well-formed.
d.
This is an XML Document that follows all the syntax rules.
Question text
Which of the following about RSS is CORRECT?
Select one:

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

a.
RSS defines an easy way to share and view headlines and content
b.
RSS files can be automatically updated
c.
All of the choices
d.
RSS allows you to syndicate your site content
Question text
The process of validating an XML document is called _____.
Select one:
a.
XML Schema
b.
Well-defined XML Document
c.
id XML Documents
d.
Validation
e.
Val
Question text
Which of the following statements about XML Namespaces is CORRECT?
Select one:
a.
Namespace is special set of rules are that a well-formed XML document should
abide to be considered a valid document
b.
Namespace is a way of describing an XML document.
c.
Namespace is a process of validating an XML document
d.
Namespaces make an element in an XML document unique..
Question text
Which of the following statement about XML is CORRECT?
Select one:
a.

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

XML is intended to be a standard of describing and structuring data over the


internet.
b.
XML can bridge the gap between two unrelated systems never intended to work
with each other.
c.
XML is used to organize and describe information.
d.
All of the choices
Question text
This is a node without a child.
Select one:
a.
child node
b.
leaf node
c.
root node
d.
sibling node
Question text
There is a way of describing XML data, how?
Select one:
a.
XML uses a description node to describe data
b.
None of the choices
c.
XML uses a DTD to describe the data
d.
All of the choices
Question text
In the tree structure below

Which of the following statement is incorrect?


Select one:
a.
The node "Long Song" is a child node of the <title> node

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

b.
The nodes <title>, <composer>, and <genre> are sibling nodes
c.
The <song> node is the root node
d.
The node "Long Song" is a parent node.
Question text
Which of the following is the correct description of RSS?
Select one:
a.
This technology takes an XML file and converts it into other format.
b.
This is a combination of both HTML and XML.
c.
This is a format for delivering dynamic content in the internet
d.
This is the syntax for defining parts of an XML document as well as to extract
information on it.
Question text
Which of the following XML elements is well-formed?
Select one:
a.
<firstelement attrib = “somevalue”/>
b.
<firstelement attrib =’somevalue’>
c.
<firstelement attrib =somevalue/>
d.
<firstelement attrib =’somevalue’/>
Question text
Which of the following statements is NOT TRUE about XPath?
Select one:
a.
It is a W3C standard
b.
Like XML DOM, it is based around noe
c.
It is used to store data in XML

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

d.
It is a way of selecting data in XML
Question text
In XML Schema Simple Type, this is a tag used for declaring elements without
decimal points.
Select one:
a.
<xsd:float>
b.
<xsd:integer>
c.
<xsd:string>
d.
<xsd:decimal>
Question text
Which of the following is NOT an example of an XML Database?
Select one:
a.
IBM DB2 (pureXML)
b.
Oracle Database
c.
Microsoft SQL Server
d.
MS ACCESS
Question text
To declare an internal DTD, we use the declaration
Select one:
a.
<!DOCTYPE someelement []>
b.
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
c.
<!ELEMENT someelement (#PCDATA)>
d.
<!DOCTYPE someelement SYSTEM "somefile.dtd">
Question text

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

Which of the following is TRUE about XML RSS?


Select one:
a.
All of these
b.
RSS can check sites automatically for new updates using a program that gathers
and sorts out RSS feeds called RSS aggregator.
c.
RSS was designed to display selected data.
d.
RSS is written in XML
Question text
A software able of store large amounts of data and information in XML format is
called
Select one:
a.
XML Database
b.
XPath
c.
XQuery
d.
XML RSS
Question text
This is a type of XML database that is based on the container rather than table
format.
Select one:
a.
XPath
b.
XML-enabled database
c.
XQuery
d.
Native XML database
Question text
RSS means Rich Site Summary. It also stands for
Select one:

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

a.
Reliable Simple Stream
b.
Really Simple Syndication
c.
Reliable Stream Syndication
d.
Really Simple Stream
Question text
This symbol means zero or one element in XML DTD.
Select one:
a.
!
b.
+
c.
*
d.
?
Question text
In the concept of XML Schema Data Type, which is INCORRECT?
Select one:
a.
It is easier to define data facets (restrictions on data)
b.
It is easier to validate the correctness of data
c.
None of these
d.
It is easier to define data patterns (data formats)
Question text
This is a set of rules used to describe XML language accurately
Select one:
a.
External DTD
b.
!DOCTYPE

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

c.
DTD
d.
Internal DTD
Question text
Aside from Simple type, this is another type of XML schema that is a container for
other element definitions.
Select one:
a.
Elements
b.
Attributes
c.
Simple Type
d.
Complex Type
Question text
XML RSS can be applied to the items below except for
Select one:
a.
Gaming Sites
b.
News sites
c.
Calendars
d.
Companies
Question text
In XML DTD, a content model that is used to declare an element without constraints
is called
Select one:
a.
Element content
b.
Mixed content
c.
ANY content
d.

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

EMPTY content
Question text
To declare booelan values in XML Schema, we use the function
Select one:
a.
<xsd:date>
b.
<xsd:integer>
c.
<xsd:boolean>
d.
<xsd:anyURI>
Question text
In XML DTD, the symbol "+" means
Select one:
a.
Zero or one element
b.
One or more element.
c.
Zero or more element
d.
No elements
Question text
This element/tag is used for declaring complex type element.
Select one:
a.
<xsd:choose>
b.
<xsd:sequence>
c.
<xsd:complex>
d.
<xsd:restriction>
Question text
Which of the following statement about XML Schema is FALSE?
Select one:

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

a.
XML Schema is similar to a database schema that describes the data in a database
b.
XML Schema element uses Namespaces.
c.
DTD is more powerful than XML Schema
d.
XML Schema uses XML syntax.
Question text
Which of the following about XML Database is INCORRECT?
Select one:
a.
XML Database uses XQuery
b.
None of these
c.
There are two types of XML Database
d.
Oracle Database is an Example of XML Database
Question text
In XML DTD, the symbol "*" means
Select one:
a.
Zero or one element
b.
Zero or more element
c.
One or more element.
d.
No elements
Question text
This is a document definition alternative to XML Schema
Select one:
a.
Data Type Definition
b.
Definition Type Data

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

c.
None of these
d.
Document Type Definition
Question text
A DTD found outside an XML document is called
Select one:
a.
Outside DTD
b.
Internal DTD
c.
Special DTD
d.
External DTD
Question text
In declaring XML schema, which of the following statements should be used?
Select one:
a.
<schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
b.
<xsd: xmlns:xsd="http://www.w3.org/2001/XMLSchema">
c.
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
d.
<xsd:schema>
Question text
Which of the following statement about the advantages of XML RSS is TRUE?
Select one:
a.
With RSS you can separate wanted information from unwanted information
b.
With RSS you can create your own news channel, and publish it to the Internet
c.
All of these
d.
With RSS you can choose to view the news you want, the news that interest you and
are relevant to your work.

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

Question text
Aside from DTDs, what XML-related technology is used to create valid XML
document.
Select one:
a.
XSLT
b.
XQuery
c.
XML Schema
d.
XPath
Question text
This is a kind of XML database queried by the XPath-expressions.
Select one:
a.
XQuery
b.
XPath
c.
XML-enabled database
d.
Native XML database
Question text
XML Schema is used to_____
Select one:
a.
create XML DOM elements
b.
create XML documents
c.
create a well-defined XML document
d.
create valid XML document
Question text
Which of the following about RSS is TRUE?
Select one:

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

a.
RSS defines an easy way to share and view headlines and content
b.
RSS allows you to syndicate your site content
c.
RSS files can be automatically updated
d.
All of these
Question text
Which of the following statement about XML DTD is CORRECT?
Select one:
a.
With a DTD, independent groups of people can agree on a standard for
interchanging data
b.
It is used to make sure the XML code is in the proper format.
c.
All of these
d.
By incorporating XML DTD in XML documents, errors can be found easily.
Question text
Which of the following statements about XML DTD is NOT TRUE?
Select one:
a.
None of these
b.
DTD provides a way to constrain XML document content
c.
DTD is a set of rules used to describe XML language accurately
d.
DTD can specify what kind of content can appear on your XML document.
Question text
Which of the following statements about XML Schema is INCORRECT?
Select one:
a.
XML Schema defines and validates the structure of an XML document.
b.
By using XML Schema, we can create valid XML documents.

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

c.
XML Schema does not use XML Schema
d.
XML Schema is also known as XML Schema Definition (XSD).

Question text
This is an XML DOM function use to remove a specified child node
Select one:
a.
replaceAttribute()
b.
removeChild()
c.
replaceElement()
d.
removeAttribute()
Question text
Which of the following can be used for declaring XSLT?
Select one:
a.
<xsl:transform> <xsl:stylesheet>
b.
<xsl:transform>
c.
<xsl:stylesheet>
d.
<xsl:declaration>
Question text
XSLT transforms an XML document into another XML document
Select one:
True
False
Question text
The symbol // is the XPath path expression that selects attribute.
Select one:
True

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

False
Question text
XPath paths are similar to the directories we use to access files on our computers.
Select one:
True
False
Question text
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 text
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 text
XSLT uses Namespaces and XPath in its syntax.
Select one:
True
False
Question text
XSLT is used to extract data from XML.

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

Select one:
True
False
Question text
This XPath path expression selects from the root node.
Select one:
a.
@
b.
/
c.
//
d.
..
Question text
Which of the following statements is NOT TRUE?
Select one:
a.
Predicates are refinements for selecting data in XPath
b.
XPath paths are similar to the directories we use to access files on our computers.
c.
XPath defines paths on XML documents.
d.
Predicates are zero-based, meaning selection starts with 0.
Question text
In XPath, Predicates are refinements for selecting data in XPath
Select one:
True
False
Question text
This element is used to put a conditional test against the content of the XML file.
Select one:
a.
<xsl:if>
b.

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

<xsl:for-each>
c.
<xsl:template>
d.
<xsl:sort>
Question text
Which of the following statements is TRUE about XPath?
Select one:
a.
It is used to store data in XML
b.
It is a fundamental part of some XML related technologies.
c.
It is not a W3C standard
d.
It does not use nodes
Question text
This is an XML DOM function for removing nodes
Select one:
a.
createElement()
b.
getElementsByTagName()
c.
removeChild()
d.
replaceChild()
Question text
This is an XML DOM property that inserts a new node before the given node
Select one:
a.
insertBefore()
b.
insertChild()
c.
documentElement()
d.
createTextNode()

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

Question text
This returns all elements with a specified tag name.
Select one:
a.
getElementsByTagName()
b.
removeChild()
c.
replaceChild()
d.
createElement()
Question text
XSLT is a W3C recommended
Select one:
True
False
Question text
Predicates in XPath are zero-based, meaning selection starts with 0.
Select one:
True
False Correct Answer
Question text
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").[1]childNodes[0].nodeValue;
b.
xmlDoc.getElementsByTagName("title").[0]childNodes[0];

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

c.
xmlDoc.getElementsByTagName("title").[0];
d.
xmlDoc.getElementsByTagName("title").[0]childNodes[0].nodeValue;
Question text
This is an XML DOM function used for creating attributes for elements
Select one:
a.
createComment ()
b.
createTextNode
c.
setAttribute()
d.
createAttribute()
Question text
This is an XML DOM function used to replace an existing node.
Select one:
a.
removeChild()
b.
createElement()
c.
getElementsByTagName()
d.
replaceChild()
Question text
XSLT uses XPath to navigate in XML documents
Select one:
True
False
Question text
XSLT stands for eXtensible Stylesheet Transformation
Select one:
True
False

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

Question text
Which of the following is the correct definition of XSLT?
Select one:
a.
Used to store data from XML documents
b.
None of these
c.
Used to navigate XML documents
d.
Used to transform XML documents
Question text
The tags and are synonymous.
Select one:
True
False
Question text
The symbol @ is the XPath path expression that selects attribute.
Select one:
True
False
Question text
In the tree structure diagram below

Which of following is considered the root node?


Select one:
a.
<phone>

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

b.
Sean Doe
c.
<contact>
d.
<name>
Question text
This XPath expression selects all attributes of the current node.
Select one:
a.
attribute
b.
descendant
c.
following
d.
child
Question text
XPath is not a W3C standard
Select one:
True
False
Question text
XSLT stands for
Select one:
a.
Extended Storage Language Transformation
b.
Extended Stylesheet Language Translation
c.
Extended Stylesheet Language Transformation
d.
Extra Stylesheet Language Translation
Question text
This is a standard way of selecting data/information in XML documents.
Select one:

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

a.
DTD
b.
XPath
c.
XSLT
d.
XQuery
Question text
XSLT can transform an XML document into an XHTML document.
Select one:
True
False
Question text
This element is used to sort the output.
Select one:
a.
<xsl:if>
b.
<xsl:for-each>
c.
<xsl:template>
d.
<xsl:sort>
Question text
On the XML document below:
To get all the contact numbers we can use the XPath
Select one:
a.
contactinfo/contactnumber[0]
b.
contactinfo/contactnumber[1]
c.
contactinfo/contactnumber
d.
contactinfo/contactnumber[2]
Question text

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

Which of the following is TRUE about XML DOM?


Select one:
a.
XML DOM is platform dependent
b.
XML DOM is W3C recommended
c.
XML DOM is used to get, update, add, and delete elements in a database
d.
XML DOM stands for XML Data Object Manipulation
Question text
This is an XML DOM property that removes an attribute from an element
Select one:
a.
removeAttribute()
b.
insertBefore()
c.
createTextNode()
d.
insertChild()
Question text
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 text
XPath is a fundamental part of some XML related technologies.
Select one:
True
False

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

Question text
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 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 node "Sean Doe" is a child node of the <phone> node
c.
The <contact> node is the root node
d.
The nodes <name>, <phone>, and <address> are sibling nodes
Question text
This XPath expression selects all child of the current node.
Select one:
a.
following

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

b.
descendant
c.
child
d.
attribute
Question text
The purpose of XSLT is to transform an XML document.
Select one:
True
False
Question text
This XPath path expression selects attribute.
Select one:
a.
/
b.
//
c.
..
d.
@
Question text
XPath is a standard way of selecting data/information in XML documents.
Select one:
True
False
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[2]
b.
contactinfo/contactnumber
c.

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

contactinfo/contactnumber[0]
d.
contactinfo/contactnumber[1]
Question text
Just like XML DOM, XPath uses the concepts of nodes
Select one:
True
False
Question text
This element is used to express multiple conditional tests.
Select one:
a.
<xsl:template>
b.
<xsl:value-of>
c.
<xsl:choose>
d.
<xsl:sort>
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.
getElementsByTagName()
b.
createElement()
c.
removeChild()
d.
replaceChild()
Question text
Which of the following statement is TRUE?
Select one:
a.
A XML document is considered a document node
b.

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

All statements are TRUE


c.
XML DOM is presented in a tree structure
d.
A tree structure is based around nodes
Question text
This XPath path expression selects the parent of the current node.
Select one:
a.
//
b.
/
c.
@
d.
..
Question text
This is a standard way of selecting data/information in XML documents.
Select one:
a.
XQuery
b.
DTD
c.
XSLT
d.
XPath
Question text
This is an XML DOM function is used to add a created element/tag on our XML
document.
Select one:
a.
appendChild()
b.
replaceChild()
c.
createElement()
d.

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

getElementsByTagName()
Question text
On the XML document below:
To get all the contact numbers we can use the XPath
Select one:
a.
contactinfo/contactnumber
b.
contactinfo/contactnumber[1]
c.
contactinfo/contactnumber[2]
d.
contactinfo/contactnumber[0]
Question text
This XPath path expression selects attribute.
Select one:
a.
//
b.
@
c.
..
d.
/
Question text
XSLT is used to extract data from XML.
Select one:
True
False
Question text
This XPath expression selects all attributes of the current node.
Select one:
a.
child
b.
attribute
c.

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

following
d.
descendant
Question text
XSLT uses XPath to navigate in XML documents
Select one:
True
False
Question text
XSLT uses Namespaces and XPath in its syntax.
Select one:
True
False
Question text
XSLT describes how an XML document is displayed.
Select one:
True
False
Question text
In XML DOM, a tag in an XML document is considered a ______ type of node.
Select one:
a.
Attribute
b.
Comment
c.
Text
d.
Element
Question text
This is an XML DOM property that removes an attribute from an element
Select one:
a.
createTextNode()
b.

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

insertChild()
c.
removeAttribute()
d.
insertBefore()
Question text
Observe the trees structure below

Which of the following statement is incorrect?


Select one:
a.
The nodes <name>, <phone>, and <address> are sibling nodes
b.
The <contact> node is the root node
c.
The node "Sean Doe" is a parent node.
d.
The node "Sean Doe" is a child node of the <phone> node
Question text
This is an XML DOM property that inserts an element at the end of a given
element's children.
Select one:
a.
createElement()
b.
getAttribute()
c.
createTextNode()
d.
appendChild()

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

Question text
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 is platform dependent
c.
XML DOM stands for XML Data Object Manipulation
d.
XML DOM is W3C recommended
Question text
In the tree structure diagram below

Which of following is considered the root node?


Select one:
a.
<contact>
b.
<phone>
c.
Sean Doe
d.
<name>
Question text
The XML DOM property getElementsByTagName() ________
Select one:
a.
returns a single element with a given ID

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

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 text
Which of the following statement is TRUE?
Select one:
a.
A XML document is considered a document node
b.
A tree structure is based around nodes
c.
XML DOM is presented in a tree structure
d.
All statements are TRUE
Question text
This is an XML DOM property that inserts a new node before the given node
Select one:
a.
insertBefore()
b.
insertChild()
c.
documentElement()
d.
createTextNode()
Question text
This is an XML DOM property that references the root document element.
Select one:
a.
documentElement()
b.
getAttribute()
c.
createElement()

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

d.
removeChild()
Question text
This is an XML DOM function used for creating attributes for elements
Select one:
a.
createComment ()
b.
createTextNode
c.
setAttribute()
d.
createAttribute()
Question text
XPath is a fundamental part of some XML related technologies.
Select one:
True
False
Question text
XPath is a standard way of selecting data/information in XML documents.
Select one:
True
False
Question text
XPath paths are similar to the directories we use to access files on our computers.
Select one:
True
False
Question text
XSLT uses XPath to navigate in XML documents
Select one:
True
False
Question text
The symbol // is the XPath path expression that selects attribute.

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

Select one:
True
False
Question text
XSLT uses Namespaces and XPath in its syntax.
Select one:
True
False
Question text
Just like XML DOM, XPath uses the concepts of nodes
Select one:
True
False
Question text
Which of the following statements is NOT TRUE?
Select one:
a.
XPath defines paths on XML documents.
b.
Predicates are zero-based, meaning selection starts with 0.
c.
XPath paths are similar to the directories we use to access files on our computers.
d.
Predicates are refinements for selecting data in XPath
Question text
This is a function used for creating text nodes
Select one:
a.
createAttribute()
b.
createTextNode()
c.
setAttribute ()
d.
createComment()

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

Question text
This XML component shortens XML documents.
Select one:
a.
Tags and Attributes
b.
CDATA
c.
Entities
d.
Declaration
Question text
This is a process of validating an XML document.
Select one:
a.
Well-defined XML Document
b.
XML Schema
c.
Valid XML Documents
d.
Validation
Question text
What does RSS stands for?
Select one:
a.
Rich Site Summary
b.
Recorded Site Summary
c.
RSS does not stand for anything
d.
Rich Style Sheets
Question text
Which of the following is the definition of a Document definition?
Select one:
a.

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

This is a process of validating an XML document


b.
A well-formed XML document and follows a special set of "rules" in addition to the
rules set by the XML parser for well-formed XML document.
c.
This is a way of describing an XML document. It has a way to check if it follows
certain rules.
d.
A special set of rules are that a well-formed XML document should abide to be
considered a valid document.
Question text
This is a combination of both HTML and XML.
Select one:
a.
XHTML
b.
XPath
c.
XLST
d.
RSS
Question text
This is used to avoid conflict among element/tag names.
Select one:
a.
Namespaces
b.
XML Schema
c.
DTD
d.
XML Parser
Question text
XML Namespaces are used to avoid conflict among element/tag names.
Select one:
True
False

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

Question text
Which of the following correctly describes a well-formed XML Document?
Select one:
a.
This is an XML Document that follows all the syntax rules.
b.
These are used to avoid conflict among element/tag names.
c.
This is a process of validating an XML document
d.
None of these
Which of the following is a valid tag name for an XML Document?
Select one:
a.
xml
b.
2_Business_Card
c.
BusinessCard1
d.
3BusinessCard
Question text
DTD stands for?
Select one:
a.
Document Transfer Data
b.
Document Transfer Definition
c.
Document Type Definition
d.
Document Type Data
Question text
Which of the following is a real-life application of XML?
Select one:
a.
Used for describing MS Office documents

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

b.
Used for designing web pages.
c.
Used for editing HTML documents.
d.
Used for tracking GPS Locations.
XML is stricter than HTML in terms of syntax.
Select one:
True
False
Question text
What does CDATA stands for?
Select one:
a.
Comment Design
b.
Character Design
c.
Character Data
d.
Comment Data
Which of the following is a correct definition of DTD?
Select one:
a.
These are used to avoid conflict among element/tag names.
b.
An XML Document that follows all the syntax rules.
c.
None of these
d.
A well-formed XML document and follows a special set of "rules" in addition to the
rules set by the XML parser for well-formed XML document.
Which of the following correctly describes a well-formed XML Document?
Select one:
a.
None of these

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

b.
This is a process of validating an XML document
c.
This is an XML Document that follows all the syntax rules.
d.
These are used to avoid conflict among element/tag names.
Question text
The XML parser usually contains basic syntax rules and checks if the XML document
followed these rules.
Select one:
True
False
Question text
Entities shorten XML documents.
Select one:
True
False
Question text
Which of the following is a real-life application of XML?
Select one:
a.
Used for designing web pages.
b.
Used for editing HTML documents.
c.
Used for describing MS Office documents
d.
Used for tracking GPS Locations.
Question text
Which of the following statements about XML Syntax is TRUE?
Select one:
a.
You can use either single quote or double quote for the attribute elements.
b.
The parameters and values in an XML declaration are not case sensitive
c.

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

The XML declaration can be written anywhere in an XML document


d.
XML declaration should have a closing tag.
Question text
XML documents can have multiple root tag.
Select one:
True
False
Question text
XML stands for ________
Select one:
a.
Extreme Markup Language
b.
Extended Markup Language
c.
Extensible Markup Language
d.
None of these
Question text
Validation is a process of validating an XML document.
Select one:
True
False
Question text
A Document Definition is an XML Document that follows all the syntax rules.
Select one:
True
False
Question text
This contains all the basic syntax rules that an XML Document should follow to be
considered well-formed.
Select one:
a.
XML Parser

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

b.
DTD
c.
XL Schema
d.
Document Definition
Question text
This is an XML component contains details that set up an XML processor in parsing
the document.
Select one:
a.
CDATA
b.
Processing Instructions
c.
Comments
d.
Declaration
Question text
Which of the following statements is FALSE?
Select one:
a.
XML is used to organize and describe information.
b.
XML can bridge the gap between two unrelated systems never intended to work
with each other.
c.
XML is intended to be a standard of describing and structuring data over the
internet.
d.
XML is used to add design to HTML
Question text
Which of the following is the correct definition of XML?
Select one:
a.
XML is used to navigate through the Internet.
b.
XML allows the user to create their own tag.

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

c.
XML is like HTML which is used to design the appearance of web documents.
d.
XML stands for eXpandable Markup Language
Question text
Which of the following is an alternative way of declaring the empty tag ?
Select one:
a.
</name/>
b.
<name/>
c.
</name>
d.
</>
Which of the following statements is TRUE about XML Namespaces?
Select one:
a.
Namespaces make an element in an XML document unique.
b.
Namespace is special set of rules are that a well-formed XML document should
abide to be considered a valid document.
c.
Namespace is a way of describing an XML document.
d.
Namespace is a process of validating an XML document
Question text
What does RSS stands for?
Select one:
a.
RSS does not stand for anything
b.
Rich Style Sheets
c.
Recorded Site Summary
d.
Rich Site Summary

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

Question text
Comments are components of an XML document, but the contents are skipped by
the XML parser
Select one:
True
False
Question text
Observe the information below:

Book
Title: Harry Potter
Author: JK Rowling
Genre: Fantasy
Which of the following XML code correctly represents the information above?
Select one:
a.
<title>Harry Potter</title>
<author>JK Rowling</author>
<genre>Fantasy</genre>
b.
<Book>
<title>Harry Potter
<author>JK Rowling
<genre>Fantasy
</Book>
c.
<Book>
<title>Harry Potter</title>
<author>JK Rowling</author>
<genre>Fantasy</genre>
</Book>
d.
<Book>
<title>Harry Potter<title>
<author>JK Rowling<author>
<genre>Fantasy<genre>
</Book>
Question text
Tags are the foundation of an XML document.
Select one:

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

True
False
Question text
An XML declaration contains details that set up an XML processor in parsing the
document
Select one:
True
False
Question text
What does RSS stands for?
Select one:
a.
Rich Site Summary
b.
RSS does not stand for anything
c.
Rich Style Sheets
d.
Recorded Site Summary
Question text
This technology takes an XML file and converts it into other format.
Select one:
a.
RSS
b.
XHTML
c.
XLST
d.
XPath
Question text
Entities shorten XML documents.
Select one:
True
False

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

Question text
This is a combination of both HTML and XML.
Select one:
a.
XPath
b.
RSS
c.
XLST
d.
XHTML

Question text
This is the syntax for defining parts of an XML document as well as to extract
information on it.
Select one:
a.
AJAX
b.
XHTML
c.
PATH
d.
RSS
Question text
Which of the following is NOT True?
Select one:
a.
Some data types like images are not represented well.
b.
XML can run on both client and server side.
c.
XML is best suited for large datasets.
d.
Complex XML code can be difficult to read.
Question text
Which of the following is INCORRECT?

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

Select one:
a.
XML has widespread support on multiple programming languages and platforms.
b.
XML can separate context from presentation
c.
XML runs on the client side only.
d.
XML is an open-format kind of document.
Question text
Validation is a way for XML to send special instructions to the XML Parser.
Select one:
True
False
Question text
Which of the following statements is FALSE?
Select one:
a.
XML is used to add design to HTML
b.
XML can bridge the gap between two unrelated systems never intended to work
with each other.
c.
XML is used to organize and describe information.
d.
XML is intended to be a standard of describing and structuring data over the
internet.
Question text
Which of the following is a real-life application of XML?
Select one:
a.
Used for editing HTML documents.
b.
Used for designing web pages.
c.
Used for tracking GPS Locations.
d.
Used for describing MS Office documents

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

Question text
Which of the following is the correct definition of XML?
Select one:
a.
XML is like HTML which is used to design the appearance of web documents.
b.
XML allows the user to create their own tag.
c.
XML is used to navigate through the Internet.
d.
XML stands for eXpandable Markup Language
Question text
The XML declaration should be the on the very first line of the document.
Select one:
True
False
Question text
An XML tag cannot use the string "xml".
Select one:
True
False
Question text
XML is stricter than HTML in terms of syntax.
Select one:
True
False
Question text
XML documents can have multiple root tag.
Select one:
True
False
Question text

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

CDATA is intended primarily for human users. It adds more readability to the source
code.
Select one:
True
False
Question text
This is the syntax for defining parts of an XML document as well as to extract
information on it.
Select one:
a.
RSS
b.
XHTML
c.
PATH
d.
AJAX
Question text
Which of the following statements is FALSE?
Select one:
a.
XML is used to add design to HTML
b.
XML is intended to be a standard of describing and structuring data over the
internet.
c.
XML is used to organize and describe information.
d.
XML can bridge the gap between two unrelated systems never intended to work
with each other.
Question text
The XML declaration should be the on the very first line of the document.
Select one:
True
False
Question text
This technology takes an XML file and converts it into other format.

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

Select one:
a.
XLST
b.
RSS
c.
XPath
d.
XHTML
Question text
XML is stricter than HTML in terms of syntax.
Select one:
True
False
Question text
Observe the information below:

Book
Title: Harry Potter
Author: JK Rowling
Genre: Fantasy
Which of the following XML code correctly represents the information above?
Select one:
a.
<Book>
<title>Harry Potter<title>
<author>JK Rowling<author>
<genre>Fantasy<genre>
</Book>
b.
<Book>
<title>Harry Potter
<author>JK Rowling
<genre>Fantasy
</Book>
c.
<title>Harry Potter</title>
<author>JK Rowling</author>
<genre>Fantasy</genre>

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

d.
<Book>
<title>Harry Potter</title>
<author>JK Rowling</author>
<genre>Fantasy</genre>
</Book>

Question text
Which of the following is NOT True?
Select one:
a.
Some data types like images are not represented well.
b.
Complex XML code can be difficult to read.
c.
XML can run on both client and server side.
d.
XML is best suited for large datasets.

Question text
Which of the following is INCORRECT?
Select one:
a.
XML is an open-format kind of document.
b.
XML has widespread support on multiple programming languages and platforms.
c.
XML runs on the client side only.
d.
XML can separate context from presentation
Question text
Which of the following is the correct definition of XML?
Select one:
a.
XML is like HTML which is used to design the appearance of web documents.
b.
XML is used to navigate through the Internet.

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

c.
XML stands for eXpandable Markup Language
d.
XML allows the user to create their own tag.

Question text
An XML declaration contains details that set up an XML processor in parsing the
document
Select one:
True
False
Question text
Which of the following is an alternative way of declaring the empty tag ?
Select one:
a.
</name/>
b.
</>
c.
<name/> Correct answer
d.
</name>
Question text
DTD stands for?
Select one:
a.
Document Transfer Data
b.
Document Type Definition
c.
Document Transfer Definition
d.
Document Type Data
Question text
Which of the following correctly describes a well-formed XML Document?
Select one:

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

a.
This is an XML Document that follows all the syntax rules.
b.
This is a process of validating an XML document
c.
These are used to avoid conflict among element/tag names.
d.
None of these
Question text
This is used to avoid conflict among element/tag names.
Select one:
a.
DTD
b.
Namespaces
c.
XML Parser
d.
XML Schema
Question text
This is an XML document that is well-defined and follows a special set of rules from
a document definition.
Select one:
a.
Well-defined XML Document
b.
Validation
c.
Valid XML Documents
d.
XML Schema
Question text
What does CDATA stands for?
Select one:
a.
Comment Design
b.
Character Data

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

c.
Character Design
d.
Comment Data
Question text
A Document Definition is an XML Document that follows all the syntax rules.
Select one:
True
False
Question text
Namespaces make an element in an XML document unique.
Select one:
True
False
Question text
Which of the following is the definition of a Document definition?
Select one:
a.
A special set of rules are that a well-formed XML document should abide to be
considered a valid document.
b.
This is a process of validating an XML document
c.
A well-formed XML document and follows a special set of "rules" in addition to the
rules set by the XML parser for well-formed XML document.
d.
This is a way of describing an XML document. It has a way to check if it follows
certain rules.
Question text
Which of the following statements is TRUE about XML Namespaces?
Select one:
a.
Namespace is a way of describing an XML document.
b.
Namespaces make an element in an XML document unique.
c.
Namespace is a process of validating an XML document

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

d.
Namespace is special set of rules are that a well-formed XML document should
abide to be considered a valid document.
Question text
The XML parser usually contains basic syntax rules and checks if the XML document
followed these rules.
Select one:
True
False
Question text
This XML component shortens XML documents.
Select one:
a.
Tags and Attributes
b.
Declaration
c.
CDATA
d.
Entities

Question text
Which of the following is a valid tag name for an XML Document?
Select one:
a.
2_Business_Card
b.
BusinessCard1
c.
3BusinessCard
d.
xml
Question text
XML Validation has two ways: Data Type Definition and XML Schema.
Select one:
True

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

False
Question text
This is a process of validating an XML document.
Select one:
a.
Valid XML Documents
b.
Validation
c.
XML Schema
d.
Well-defined XML Document
Question text
Validation is a process of validating an XML document.
Select one:
True
False
Question text
This XML component does not affect the document itself but is intended primarily
for human users.
Select one:
a.
Tag
b.
Comment
c.
Declarations
d.
Attribute
Question text
These are considered as a foundation of an XML document.
Select one:
a.
Attribute
b.
Comment

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

c.
Declarations
d.
Tag

Question text
Which of the following is the Definition of XML Schema?
Select one:
a.
This describes the structure of an XML document using XML Syntax
b.
An XML Document that follows all the syntax rules.
c.
A well-formed XML document and follows a special set of "rules" in addition to the
rules set by the XML parser for well-formed XML document.
d.
This is a way of describing an XML document. It has a way to check if it follows
certain rules.
Question text
This is an XML component contains details that set up an XML processor in parsing
the document.
Select one:
a.
Comments
b.
Processing Instructions
c.
CDATA
d.
Declaration
Question text
Which of the following is an alternative way of declaring the empty tag ?
Select one:
a.
</name/>
b.
</>

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

c.
<name/>
d.
</name>
Question text
DTD stands for?
Select one:
a.
Document Transfer Data
b.
Document Type Definition
c.
Document Transfer Definition
d.
Document Type Data
Question text
Which of the following correctly describes a well-formed XML Document?
Select one:
a.
This is an XML Document that follows all the syntax rules.
b.
This is a process of validating an XML document
c.
These are used to avoid conflict among element/tag names.
d.
None of these
Question text
This is used to avoid conflict among element/tag names.
Select one:
a.
DTD
b.
Namespaces
c.
XML Parser
d.
XML Schema

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

Question text
This is an XML document that is well-defined and follows a special set of rules from
a document definition.
Select one:
a.
Well-defined XML Document
b.
Validation
c.
Valid XML Documents
d.
XML Schema
Question text
What does CDATA stands for?
Select one:
a.
Comment Design
b.
Character Data
c.
Character Design
d.
Comment Data
Question text
A Document Definition is an XML Document that follows all the syntax rules.
Select one:
True
False
Question text
Namespaces make an element in an XML document unique.
Select one:
True
False
Question text
Which of the following is the definition of a Document definition?
Select one:

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

a.
A special set of rules are that a well-formed XML document should abide to be
considered a valid document.
b.
This is a process of validating an XML document
c.
A well-formed XML document and follows a special set of "rules" in addition to the
rules set by the XML parser for well-formed XML document.
d.
This is a way of describing an XML document. It has a way to check if it follows
certain rules.
Question text
Which of the following statements is TRUE about XML Namespaces?
Select one:
a.
Namespace is a way of describing an XML document.
b.
Namespaces make an element in an XML document unique.
c.
Namespace is a process of validating an XML document
d.
Namespace is special set of rules are that a well-formed XML document should
abide to be considered a valid document.
Question text
Which of the following is a valid tag name for an XML Document?
Select one:
a.
2_Business_Card
b.
xml
c.
3BusinessCard
d.
BusinessCard1
Question text
This is a process of validating an XML document.
Select one:
a.

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

XML Schema
b.
Well-defined XML Document
c.
Valid XML Documents
d.
Validation
Question text
An XML tag cannot use the string "xml".
Select one:
True
False
Question text
Which of the following statement is TRUE about XML Document Proper Syntax?
Select one:
a.
Attribute values can be enclosed in single quotes only.
b.
An XML document could have more than one Root tag.
c.
Empty tags must be closed with <>.
d.
XML is stricter than HTML
Question text
What does CDATA stands for?
Select one:
a.
Comment Data
b.
Character Data
c.
Comment Design
d.
Character Design
Question text
Which of the following statements is FALSE?
Select one:

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

a.
XML is intended to be a standard of describing and structuring data over the
internet.
b.
XML can bridge the gap between two unrelated systems never intended to work
with each other.
c.
XML is used to organize and describe information.
d.
XML is used to add design to HTML
This is the syntax for defining parts of an XML document as well as to extract
information on it.
Select one:
a.
PATH
b.
AJAX
c.
RSS
d.
XHTML
This XML component does not affect the document itself but is intended primarily
for human users.
Select one:
a.
Attribute
b.
Comment
c.
Tag
d.
Declarations
Question text
Which of the following is the definition of a Document definition?
Select one:
a.
This is a way of describing an XML document. It has a way to check if it follows
certain rules.

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

b.
This is a process of validating an XML document
c.
A well-formed XML document and follows a special set of "rules" in addition to the
rules set by the XML parser for well-formed XML document.
d.
A special set of rules are that a well-formed XML document should abide to be
considered a valid document.
Question text
XML document to be valid; should be well-formed and follow a special set of rule.
These special rules are called XML Parser.
Select one:
True
False
Question text
Observe the information below:

Book
Title: Harry Potter
Author: JK Rowling
Genre: Fantasy
Which of the following XML code correctly represents the information above?
Select one:
a.
<Book>
<title>Harry Potter</title>
<author>JK Rowling</author>
<genre>Fantasy</genre>
</Book>
b.
<Book>
<title>Harry Potter<title>
<author>JK Rowling<author>
<genre>Fantasy<genre>
</Book>
c.
<Book>
<title>Harry Potter
<author>JK Rowling

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

<genre>Fantasy
</Book>
d.
<title>Harry Potter</title>
<author>JK Rowling</author>
<genre>Fantasy</genre>
Question text
DTD stands for?
Select one:
a.
Document Type Data
b.
Document Type Definition
c.
Document Transfer Definition
d.
Document Transfer Data
Question text
This is used to avoid conflict among element/tag names.
Select one:
a.
XML Parser
b.
DTD
c.
XML Schema
d.
Namespaces
Question text
This XML component does not affect the document itself but is intended primarily
for human users.
Select one:
a.
Tag
b.
Declaration
c.
Attribute

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

d.
Comment
Question text
The XML declaration should be the on the very first line of the document.
Select one:
True
False
Question text
Which of the following is an alternative way of declaring the empty tag ?
Select one:
a.
</>
b.
<name/>
c.
</name/>
d.
</name>
Question text
This technology takes an XML file and converts it into other format.
Select one:
a.
XLST
b.
XPath
c.
XHTML
d.
RSS
This is a way for XML to send special instructions to the XML Parser.
Select one:
a.
Declaration
b.
CDATA
c.

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

Processing Instructions
d.
Comments
Question text
This is an XML document that is well-defined and follows a special set of rules from
a document definition.
Select one:
a.
XML Schema
b.
Validation
c.
Well-defined XML Document
d.
Valid XML Documents
An XML Document is valid is it is well-formed and follows a special syntax rule.
Select one:
True
False
Question text
Namespaces make an element in an XML document unique.
Select one:
True
False
Which of the following is the Definition of XML Schema?
Select one:
a.
This is a way of describing an XML document. It has a way to check if it follows
certain rules.
b.
A well-formed XML document and follows a special set of "rules" in addition to the
rules set by the XML parser for well-formed XML document.
c.
An XML Document that follows all the syntax rules.
d.
This describes the structure of an XML document using XML Syntax

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

Which of the following is TRUE?


Select one:
a.
Some data types like images are not represented well.
b.
XML can run on both client and server side.
c.
Complex XML code can be difficult to read.
d.
All statements are TRUE
This contains all the basic syntax rules that an XML Document should follow to be
considered well-formed.
Select one:
a.
Document Definition
b.
XML Parser
c.
DTD
d.
XL Schema
Question text
Which of the following statements about XML Syntax is TRUE?
Select one:
a.
You can use either single quote or double quote for the attribute elements.
b.
The parameters and values in an XML declaration are not case sensitive
c.
The XML declaration can be written anywhere in an XML document
d.
XML declaration should have a closing tag.
Question text
Which of the following is INCORRECT?
Select one:
a.
XML can separate context from presentation

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

b.
XML runs on the client side only.
c.
XML has widespread support on multiple programming languages and platforms.
d.
XML is an open-format kind of document.
Question text
Which of the following statements is TRUE about XML Namespaces?
Select one:
a.
Namespace is a way of describing an XML document.
b.
Namespace is a process of validating an XML document
c.
Namespace is special set of rules are that a well-formed XML document should
abide to be considered a valid document.
d.
Namespaces make an element in an XML document unique.
Question text
Which of the following is not a component of an XML document?
Select one:
a.
Tag
b.
Declarations
c.
Attribute
d.
Behavoir
Question text
Which of the following is TRUE?
Select one:
a.
Complex XML code can be difficult to read.
b.
All statements are TRUE
c.
Some data types like images are not represented well.

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

d.
XML can run on both client and server side.
Question text
Which of the following statements is TRUE about XML Namespaces?
Select one:
a.
Namespace is a process of validating an XML document
b.
Namespace is special set of rules are that a well-formed XML document should
abide to be considered a valid document.
c.
Namespaces make an element in an XML document unique.
d.
Namespace is a way of describing an XML document.
Question text
Validation is a process of validating an XML document.
Select one:
True
False
Question text
This contains all the basic syntax rules that an XML Document should follow to be
considered well-formed.
Select one:
a.
XML Parser
b.
XL Schema
c.
Document Definition
d.
DTD
Question text
Which of the following statements is TRUE about XML Namespaces?
Select one:
a.
Namespace is special set of rules are that a well-formed XML document should
abide to be considered a valid document.

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

b.
Namespace is a way of describing an XML document.
c.
Namespaces make an element in an XML document unique.
d.
Namespace is a process of validating an XML document
Question text
Which of the following is a correct definition of DTD?
Select one:
a.
None of these
b.
An XML Document that follows all the syntax rules.
c.
A well-formed XML document and follows a special set of "rules" in addition to the
rules set by the XML parser for well-formed XML document.
d.
These are used to avoid conflict among element/tag names.
Question text
This is a combination of both HTML and XML.
Select one:
a.
XHTML
b.
XLST
c.
RSS
d.
XPath
Question text
This is an XML component contains details that set up an XML processor in parsing
the document.
Select one:
a.
CDATA
b.
Comments
c.

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

Processing Instructions
d.
Declaration
Question text
Entities shorten XML documents.
Select one:
True
False
Question text
Observe the information below:

Book
Title: Harry Potter
Author: JK Rowling
Genre: Fantasy
Which of the following XML code correctly represents the information above?
Select one:
a.
<Book>
<title>Harry Potter</title>
<author>JK Rowling</author>
<genre>Fantasy</genre>
</Book>
b.
<title>Harry Potter</title>
<author>JK Rowling</author>
<genre>Fantasy</genre>
c.
<Book>
<title>Harry Potter<title>
<author>JK Rowling<author>
<genre>Fantasy<genre>
</Book>
d.
<Book>
<title>Harry Potter
<author>JK Rowling
<genre>Fantasy
</Book>
Question text

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

Which of the following correctly describes a well-formed XML Document?


Select one:
a.
None of these
b.
This is a process of validating an XML document
c.
This is an XML Document that follows all the syntax rules.
d.
These are used to avoid conflict among element/tag names.
Question text
Observe the information below:

Book
Title: Harry Potter
Author: JK Rowling
Genre: Fantasy
Which of the following XML code correctly represents the information above?
Select one:
a.
<Book>
<title>Harry Potter<title>
<author>JK Rowling<author>
<genre>Fantasy<genre>
</Book>
b.
<Book>
<title>Harry Potter
<author>JK Rowling
<genre>Fantasy
</Book>
c.
<title>Harry Potter</title>
<author>JK Rowling</author>
<genre>Fantasy</genre>
d.
<Book>
<title>Harry Potter</title>
<author>JK Rowling</author>
<genre>Fantasy</genre>
</Book>

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

Question text
Which of the following is the correct definition of XML?
Select one:
a.
XML is used to navigate through the Internet.
b.
XML is like HTML which is used to design the appearance of web documents.
c.
XML stands for eXpandable Markup Language
d.
XML allows the user to create their own tag.

Question text
This is an XML component contains details that set up an XML processor in parsing
the document.
Select one:
a.
CDATA
b.
Processing Instructions
c.
Comments
d.
Declaration

Question text
Validation is a way for XML to send special instructions to the XML Parser.
Select one:
True
False
Question text
Which of the following statements is FALSE?
Select one:
a.

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

XML is used to organize and describe information.


b.
XML is intended to be a standard of describing and structuring data over the
internet.
c.
XML can bridge the gap between two unrelated systems never intended to work
with each other.
d.
XML is used to add design to HTML

Question text
This XML component shortens XML documents.
Select one:
a.
Declaration
b.
Tags and Attributes
c.
CDATA
d.
Entities

Question text
An XML tag cannot use the string "xml".
Select one:
True
False
Question text
Which of the following is INCORRECT?
Select one:
a.
XML is an open-format kind of document.
b.
XML has widespread support on multiple programming languages and platforms.
c.
XML can separate context from presentation

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

d.
XML runs on the client side only.
Question text
XML document to be valid; should be well-formed and follow a special set of rule.
These special rules are called XML Parser.
Select one:
True
False
Question text
Comments are components of an XML document, but the contents are skipped by
the XML parser
Select one:
True
False
Question text
Which of the following statement is TRUE about XML Document Proper Syntax?
Select one:
a.
Empty tags must be closed with <>.
b.
XML is stricter than HTML
c.
Attribute values can be enclosed in single quotes only.
d.
An XML document could have more than one Root tag.
Question text
This is a process of validating an XML document.
Select one:
a.
XML Schema
b.
Valid XML Documents
c.
Well-defined XML Document
d.
Validation

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

Question text
XML stands for ________
Select one:
a.
None of these
b.
Extended Markup Language
c.
Extreme Markup Language
d.
Extensible Markup Language
Question text
This technology takes an XML file and converts it into other format.
Select one:
a.
XPath
b.
XLST
c.
RSS
d.
XHTML
Question text
DTD stands for?
Select one:
a.
Document Type Definition
b.
Document Transfer Definition
c.
Document Transfer Data
d.
Document Type Data
Question text
This is an XML document that is well-defined and follows a special set of rules from
a document definition.

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

Select one:
a.
XML Schema
b.
Validation
c.
Well-defined XML Document
d.
Valid XML Documents

Question text
A Document Definition is an XML Document that follows all the syntax rules.
Select one:
True
False
Question text
This is an XML DOM property that inserts an element at the end of a given
element's children.
Select one:
a.
appendChild()
b.
createElement()
c.
createTextNode()
d.
getAttribute()
Question text
In XML DOM, a tag in an XML document is considered a ______ type of node.
Select one:
a.
Element
b.
Comment
c.
Text

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

d.
Attribute
Question text
This is an XML DOM property that references the root document element.
Select one:
a.
documentElement()
b.
getAttribute()
c.
removeChild()
d.
createElement()
Question text
This is an XML DOM property that inserts a new node before the given node
Select one:
a.
createTextNode()
b.
insertBefore()
c.
insertChild()
d.
documentElement()
Question text
This is an XML DOM property that removes an attribute from an element
Select one:
a.
createTextNode()
b.
insertBefore()
c.
insertChild()
d.
removeAttribute()
Question text
Which of the following statement is TRUE?

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

Select one:
a.
All statements are TRUE
b.
XML DOM is presented in a tree structure
c.
A XML document is considered a document node
d.
A tree structure is based around nodes
Question text
The XML DOM property getElementsByTagName() ________
Select one:
a.
sets the value of an attribute on an element
b.
returns array of tags that match given tag name
c.
gets the value of a given attribute on an element
d.
returns a single element with a given ID
Question text
In the tree structure diagram below

Which of following is considered the root node?


Select one:
a.
Sean Doe
b.
<phone>

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

c.
<name>
d.
<contact>
Question text
Which of the following is TRUE about XML DOM?
Select one:
a.
XML DOM is platform dependent
b.
XML DOM is W3C recommended
c.
XML DOM stands for XML Data Object Manipulation
d.
XML DOM is used to get, update, add, and delete elements in a database
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 nodes <name>, <phone>, and <address> are sibling nodes
c.
The node "Sean Doe" is a parent node.
d.
The <contact> node is the root node
Question text

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

DTD stands for


Select one:
a.
Data Type Definition
b.
Definition Type Data
c.
None of the choices
d.
Document Type Definition
Question text
Which of the following can be used for declaring XSLT?
Select one:
a.
<xsl:declaration>
b.
<xsl:transform>
c.
<xsl:stylesheet>
d.
<xsl:transform> <xsl:stylesheet>
Question text
This is an XML DOM property that inserts an element at the end of a given
element's children.
Select one:
a.
appendChild()
b.
getAttribute()
c.
createElement()
d.
createTextNode()
Question text
XML Schema is an alternative to DTD
Select one:
True

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

False
Question text
An XML Schema declaration uses the namespace
Select one:
True
False
Question text
Which of the following statements is NOT TRUE?
Select one:
a.
XPath paths are similar to the directories we use to access files on our computers.
b.
XPath defines paths on XML documents.
c.
Predicates are zero-based, meaning selection starts with 0.
d.
Predicates are refinements for selecting data in XPath
Question text
This is an XML DOM function is used to add a created element/tag on our XML
document.
Select one:
a.
createElement()
b.
appendChild()
c.
replaceChild()
d.
getElementsByTagName()
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 used to get, update, add, and delete elements in a database

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

c.
XML DOM is platform dependent
d.
XML DOM is W3C recommended
Question text
This provides a way to constrain XML document content.
Select one:
a.
DTD
b.
!DOCTYPE
c.
Internal DTD
d.
External DTD
Question text
This is an XML DOM function use to remove a specified child node
Select one:
a.
replaceElement()
b.
removeChild()
c.
removeAttribute()
d.
replaceAttribute()
Question text
In XML Schema, this is used only in the context of the text.
Select one:
a.
Complex Type
b.
Simple Type
c.
Attributes
d.
Elements

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

In XML Schema, this is a container for other element definitions.


Select one:
a.
Attributes
b.
Complex Type
c.
Elements
d.
Simple Type
Question text
This is the extension provided for the conversion of database into XML document.
Select one:
a.
Native XML database
b.
XPath
c.
XML-enabled database
d.
XQuery
Question text
This is an alternative for DTD in creating a valid XML document.
Select one:
a.
XQuery
b.
XML Schema
c.
XSLT
d.
XPath
Question text
This is a software capable of storing large amounts of data and information in the
XML format.
Select one:
a.
XPath

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

b.
XML RSS
c.
XQuery
d.
XML Database
Question text
Which of the following statement is TRUE?
Select one:
a.
All of these
b.
With RSS you can choose to view the news you want, the news that interest you and
are relevant to your work.
c.
With RSS you can separate wanted information from unwanted information
d.
With RSS you can create your own news channel, and publish it to the Internet
Question text
Which of the following about XML Database is CORRECT?
Select one:
a.
XML Database uses XQuery
b.
Oracle Database is an Example of XML Database
c.
There are two types of XML Database
d.
All statements are correct.
Question text
Which of the following is a correct declaration of XML Schema?
Select one:
a.
<xsd:schema>
b.
<schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
c.
<xsd: xmlns:xsd="http://www.w3.org/2001/XMLSchema">

Downloaded by James John ([email protected])


lOMoARcPSD|21479911

d.
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
Question text
This XML database is based on the container rather than table format. It can store
large amount of XML document and data.
Select one:
a.
Native XML database
b.
XQuery
c.
XPath
d.
XML-enabled database
Question text
Which of the following is TRUE?
Select one:
a.
XML Schema does not allow the use of namespaces
b.
XML Schema is used to create a well-defined XML document
c.
XML Schema is used to create valid XML document
d.
XML Schema uses a unique syntax

Downloaded by James John ([email protected])

You might also like