50% found this document useful (6 votes)
10K views41 pages

XML Final Exam (42/50) : Question Text

This document appears to be an exam containing 18 multiple choice questions about XML topics. It covers XML declarations, content models, DTDs, schemas, XPath, XSLT elements like xsl:value-of and xsl:template, and XML databases. The exam was scored 42 out of a possible 50 points.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
50% found this document useful (6 votes)
10K views41 pages

XML Final Exam (42/50) : Question Text

This document appears to be an exam containing 18 multiple choice questions about XML topics. It covers XML declarations, content models, DTDs, schemas, XPath, XSLT elements like xsl:value-of and xsl:template, and XML databases. The exam was scored 42 out of a possible 50 points.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 41

XML FINAL EXAM (42/50)

Question  1

Answer saved

Marked out of 1.00

Flag question

Question text

This is a content model that contain elements and character data

Select one:

a. ANY content

b. Element content

c. EMPTY content

d. Mixed content

Clear my choice

Question  2

Answer saved
Marked out of 1.00

Flag question

Question text

Which of the following about XML declarations is FALSE?

Select one:

a. You can use either single quote or double quote for the attribute
elements.

b. The parameters and values in a declaration are case sensitive and


should always be in lower case.

c. XML declaration should have closing tag.

d. The XML declaration should be the on the very first line of the
document.

Clear my choice

Question  3

Answer saved

Marked out of 1.00

Flag question
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.

Clear my choice

Question  4

Answer saved

Marked out of 1.00

Flag question

Question text

Which of the following describes the XLST element

Select one:

a. This element can be used to extract the value of an XML element


and add it to the output stream of the transformation
b. This element is used to sort the output.

c. This element is used to put a conditional test against the content of


the XML file.

d. This element is used to build templates.

Clear my choice

Question  5

Answer saved

Marked out of 1.00

Flag question

Question text

This element is used to express multiple conditional tests.

Select one:

a. <xsl:choose>

b. <xsl:sort>

c. <xsl:template>

d. <xsl:value-of>
Clear my choice

Question  6

Answer saved

Marked out of 1.00

Flag question

Question text

What does DTD stand for?

Select one:

a. Dynamic Type Definition

b. Document Type Definition

c. Do The Dance

d. Direct Type Definition

Clear my choice

Question  7

Answer saved
Marked out of 1.00

Flag question

Question text

Which of the following statements about XML schemas is


incorrect?

Select one:

a. Schemas can specify integer values

b. All XML documents must have a schema

c. They offer more flexibility than DTDs

d. Schemas are defined by XSD tag

Clear my choice

Question  8

Answer saved

Marked out of 1.00

Flag question
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. These are considered as a foundation of an XML document.

d. This is an XML component contains details that set up an XML


processor in parsing the document.

Clear my choice

Question  9

Answer saved

Marked out of 1.00

Flag question

Question text

Which of the following is a correct XML declaration?

Select one:

a. <?xml version="1.0" encoding="UTF-16" standalone="no">


b. <?xml version="1.0" encoding="UTF-16" standalone="no"?>

c. <?xml version="1.0" encoding="UTF-16" standalone="no"/>

d. <xml version="1.0" encoding="UTF-16" standalone="no"?>

Clear my choice

Question  10

Answer saved

Marked out of 1.00

Flag question

Question text

A DTD found inside an XML document is called a ___________

Select one:

a. Internal DTD

b. DTD

c. External DTD

d. !DOCTYPE

Clear my choice
Question  11

Answer saved

Marked out of 1.00

Flag question

Question text

Which of the following is NOT a valid XML DTD


element/expression?

Select one:

a. %

b. +

c. *

d. ?

Clear my choice

Question  12

Answer saved
Marked out of 1.00

Flag question

Question text

To create text nodes in XML documents the _____________ XML


DOM function is used.

Select one:

a. createComment()

b. createTextNode()

c. setAttribute ()

d. createAttribute()

Clear my choice

Question  13

Answer saved

Marked out of 1.00

Flag question
Question text

The XML Schema Data Type " boolean" has values

Select one:

a. True ,False or 1,0

b. any number other then zero and zero

c. True ,False

d. 1,0

Clear my choice

Question  14

Answer saved

Marked out of 1.00

Flag question

Question text

This is an XML DOM function that returns all elements with a


specified tag name.

Select one:

a. replaceChild()
b. createElement()

c. removeChild()

d. getElementsByTagName()

Clear my choice

Question  15

Answer saved

Marked out of 1.00

Flag question

Question text

XPath is a language for finding information in an :

Select one:

a. XSL Document

b. XQuery Document

c. XHTML Document

d. XML Document

Clear my choice
Question  16

Answer saved

Marked out of 1.00

Flag question

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

c. XPath identifies the path to be followed in the execution of XSL


translation prescriptions

d. XPath specifies which XSL transform files are to be used in the


translation of XML

Clear my choice

Question  17

Answer saved
Marked out of 1.00

Flag question

Question text

Which of the following describes the XLST element ?

Select one:

a. This element is used to sort the output.

b. This element can be used to extract the value of an XML element


and add it to the output stream of the transformation

c. This element is used to build templates.

d. This element is used to put a conditional test against the content of


the XML file.

Clear my choice

Question  18

Answer saved

Marked out of 1.00

Flag question
Question text

Which of the following about XML Database is INCORRECT?

Select one:

a. None of the choices

b. There are two types of XML Database

c. Oracle Database is an Example of XML Database

d. XML Database uses XQuery

Clear my choice

Question  19

Answer saved

Marked out of 1.00

Flag question

Question text

Which of the following describes an XML Entities?

Select one:

a. These are considered as a foundation of an XML document.


b. This is an XML component contains details that set up an XML
processor in parsing the document.

c. This is a way for XML to send special instructions to the XML Parser.

d. This XML component shortens XML documents.

Clear my choice

Question  20

Answer saved

Marked out of 1.00

Flag question

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 an XML Document that follows all the syntax rules.

c. This is a process of validating an XML document.

d. This contains all the basic syntax rules that an XML Document
should follow to be considered well-formed.
Clear my choice

Question  21

Answer saved

Marked out of 1.00

Flag question

Question text

Given the XML document:

<movie>
<title>The House</title>
<director>Ben Crows</director>
<year>1997</year>
</movie>

How can we change the text "Ben Crows" to "Sam Raimi"?

Select one:

a. xmlDoc.getElementsByTagName("director")[0]. nodeValue = "Sam


Raimi";

b. xmlDoc.getElementsByTagName("director")
[0].childNodes[0].nodeValue = "Sam Raimi";
c. xmlDoc.getElementsByTagName("director")[0].childNodes[0] = "Sam
Raimi";

d. xmlDoc.getElementsByTagName("Ben Crows")
[0].childNodes[0].nodeValue = "Sam Raimi";

Clear my choice

Question  22

Answer saved

Marked out of 1.00

Flag question

Question text

Which of the following statements is CORRECT?

Select one:

a. All statements are correct

b. XML is intended to be a standard of describing and structuring data


over the internet.

c. XML is never used to add design to HTML

d. XML is used to organize and describe information.

Clear my choice
Question  23

Answer saved

Marked out of 1.00

Flag question

Question text

This is an XML DOM element that sets the value of an attribute on


an element

Select one:

a. getAttribute()

b. setAttribute()

c. innerHTML

d. removeAttribute()

Clear my choice

Question  24

Answer saved

Marked out of 1.00


Flag question

Question text

Which of the following is not a valid XPath expression.

Select one:

a. /

b. >>

c. @

d. //

Clear my choice

Question  25

Answer saved

Marked out of 1.00

Flag question

Question text
DTD includes the specifications about the markup that can be used
within the document, the specifications consists of all EXCEPT

Select one:

a. the size of element name

b. entity declarations

c. element declarations

d. the browser name

Clear my choice

Question  26

Answer saved

Marked out of 1.00

Flag question

Question text

Which of the following describes an XML element/tag?

Select one:

a. his XML component shortens XML documents.

b. These are considered as a foundation of an XML document.


c. This is an XML component contains details that set up an XML
processor in parsing the document.

d. This is a way for XML to send special instructions to the XML Parser.

Clear my choice

Question  27

Answer saved

Marked out of 1.00

Flag question

Question text

This is a content model that can contain specified elements

Select one:

a. ANY content

b. Mixed content

c. Element content

d. EMPTY content

Clear my choice

Question  28
Answer saved

Marked out of 1.00

Flag question

Question text

Which of the following statement about XML RSS is CORRECT?

Select one:

a. RSS can check sites automatically for new updates using a program
that gathers and sorts out RSS feeds called RSS aggregator.

b. RSS data is large and a little bit slow; it cannot be used with
services like Smart Phones

c. RSS was designed to display selected data.

d. None of the choices

Clear my choice

Question  29

Answer saved

Marked out of 1.00


Flag question

Question text

Which of the following statements about XSLT is NOT TRUE?

Select one:

a. XSLT uses namespace

b. XSLT uses XPath

c. XSLT can transform XML

d. XSLT stores data

Clear my choice

Question  30

Not yet answered

Marked out of 1.00

Flag question

Question text

XSLT processors accept as input:


Select one:

a. an XML conforming document file and an XSLT specification file

b. only an XML document

c. either an XML document or an XSLT specification

d. only an XSLT specification

Clear my choice

Question  31

Answer saved

Marked out of 1.00

Flag question

Question text

This is a property that can be used to get the number of returned


value of the getElementsByTagName() function

Select one:

a. size

b. length

c. number
d. None of the choices

Clear my choice

Question  32

Answer saved

Marked out of 1.00

Flag question

Question text

In XML, this serves as an alternative for XML DTD.

Select one:

a. XML Schema

b. XQuery

c. XPath

d. XSLT

Clear my choice

Question  33

Answer saved
Marked out of 1.00

Flag question

Question text

To declare an internal DTD, which of the following elements is


used?

Select one:

a. <!ELEMENT someelement (#PCDATA)>

b. <!DOCTYPE someelement []>

c. <!DOCTYPE someelement SYSTEM "somefile.dtd">

d. <?xmlversion="1.0" encoding="UTF-8" standalone="no" ?>

Clear my choice

Question  34

Answer saved

Marked out of 1.00

Flag question
Question text

Which of the following statement about XML DOM is INCORRECT?

Select one:

a. XML DOM is presented in a tree structure

b. A tree structure is based around nodes

c. None of the choices

d. A XML document is considered a document node

Clear my choice

Question  35

Answer saved

Marked out of 1.00

Flag question

Question text

Which of the following is the correct description of an XML Parser?

Select one:

a. This is a process of validating an XML document.


b. This is an XML document that is well-defined and follows a special
set of rules from a document definition.

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.

Clear my choice

Question  36

Answer saved

Marked out of 1.00

Flag question

Question text

Which of the following statements about XML Schema is


INCORRECT?

Select one:

a. It is easier to validate the correctness of data

b. It is easier to define data patterns (data formats)

c. It is easier to define data facets (restrictions on data)

d. None of the choices


Clear my choice

Question  37

Answer saved

Marked out of 1.00

Flag question

Question text

This XPath expression selects all child of the current node.

Select one:

a. child

b. descendant

c. attribute

d. following

Clear my choice

Question  38

Answer saved
Marked out of 1.00

Flag question

Question text

Which of the following describes the XLST element

Select one:

a. This element is used to put a conditional test against the content of


the XML file.

b. This element is used to sort the output.

c. This element can be used to extract the value of an XML element


and add it to the output stream of the transformation

d. This element is used to build templates.

Clear my choice

Question  39

Answer saved

Marked out of 1.00

Flag question
Question text

Only one of the following is considered an XML Database. Which


one is it?

Select one:

a. ACCESS

b. MYSQL

c. IBM DB2

d. Java

Clear my choice

Question  40

Answer saved

Marked out of 1.00

Flag question

Question text

This is a type of XML database that provides for the conversion of


database into XML document.

Select one:
a. Native XML database

b. XPath

c. XML-enabled database

d. XQuery

Clear my choice

Question  41

Answer saved

Marked out of 1.00

Flag question

Question text

This XPath expression Selects the parent of the current node.

Select one:

a. child

b. parent

c. ancestor

d. descendant
Clear my choice

Question  42

Answer saved

Marked out of 1.00

Flag question

Question text

This is a node without a child.

Select one:

a. leaf node

b. sibling node

c. root node

d. child node

Clear my choice

Question  43

Answer saved
Marked out of 1.00

Flag question

Question text

Which of the following statement about XML Schema is CORRECT?

Select one:

a. XML Schema is similar to a database schema that describes the data


in a database

b. All of the choices

c. XML Schema uses XML syntax.

d. XML Schema element uses Namespaces.

Clear my choice

Question  44

Answer saved

Marked out of 1.00

Flag question
Question text

Comments in XML is given using the syntax:

Select one:

a. <!----->

b. <!-----!>

c. </--  --->

d. <?----->

Clear my choice

Question  45

Answer saved

Marked out of 1.00

Flag question

Question text

There is a way of describing XML data, how?

Select one:

a. All of the choices


b. XML uses a description node to describe data

c. None of the choices

d. XML uses a DTD to describe the data

Clear my choice

Question  46

Answer saved

Marked out of 1.00

Flag question

Question text

A tag in an XML document is considered a ______ type of node.

Select one:

a. Element

b. Comment

c. Text

d. Attribute

Clear my choice
Question  47

Answer saved

Marked out of 1.00

Flag question

Question text

If we want to remove an attribute using XML DOM, the ______


function is used.

Select one:

a. changeAttribute()

b. removeAttribute()

c. deleteAttribute()

d. replaceAttribute()

Clear my choice

Question  48

Not yet answered

Marked out of 1.00


Flag question

Question text

Which of the following is the correct description of XSLT?

Select one:

a. This is a format for delivering dynamic content in the internet

b. This is a combination of both HTML and XML.

c. This technology takes an XML file and converts it into other


format.

d. This is the syntax for defining parts of an XML document as well as


to extract information on it.

Clear my choice

Question  49

Answer saved

Marked out of 1.00

Flag question

Question text
On the XML document below:

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

Select one:

a. contactinfo/contactnumber[2]

b. contactinfo/contactnumber[1]

c. contactinfo/contactnumber

d. contactinfo/contactnumber[0]

Clear my choice

Question  50

Answer saved

Marked out of 1.00


Flag question

Question text

To match the text node (in XSLT) the syntax will be

Select one:

a. <xsl:template match-text=" text">

b. <xsl:template match=" text">

c. <xsl:template match=" text()">

d. <xsl:template match=text()>

Clear my choice

You might also like