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:

Question text

What does XSLT stands for?
Select one:

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:

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:

Question text

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

Question text

This is an XML DOM element that gets or sets the HTML content of the given tag
Select one:

Question text

In XML Schema to declare Boolean elements, we use _______ 

Select one:

Question text

Which of the following statements is NOT TRUE about XML Namespaces?
Select one:

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:

Question text

Which of the following is a valid tag name for an XML Document?
Select one:

Question text

To create new elements/tags that we can add to our existing XML document we use the XML DOM function _________.
Select one:

Question text

Which of the following statements about XSLT is NOT TRUE?
Select one:

Question text

Which of the following strings are correct XML names?
Select one:

Question text

Which of the following web services is XML RSS NOT applicable?

Select one:

Question text

Which of the following about XML attributes is INCORRECT?
Select one:

Question text

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:

Question text

This is an XML DOM element that removes an attribute from an element
Select one:

Question text

Which of the following about RSS is CORRECT?
Select one:

Question text

Which of the following is NOT a real-life application of XML?
Select one:

Question text

Which of the following statement is a correct description of a well-formed XML document?
Select one:

Question text

What is the role of the XPath language in XSL processing?
Select one:

Question text

The default model for complex type, in XML schemas for element is
Select one:

Question text

If we want to remove an attribute using XML DOM, the ______ function is used.
Select one:

Question text

This element is used to express multiple conditional tests.

Select one:

Question text

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

Question text

What does XML stands for?
Select one:

Question text

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

Question text

Which of the following is the correct description of RSS?
Select one:

Question text

The process of validating an XML document is called _____.
Select one:

Question text

Which of the following is a valid XPath expression?

Select one:

Question text

To create text nodes in XML documents the _____________ XML DOM function is used.
Select one:

Question text

Which of the following about CDATA is CORRECT?
Select one:

Question text

The use of Document definition in XML is:
Select one:

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:

Question text

Which of the following describes an XML element/tag?
Select one:

Question text

Which of the following statements about XML DOM is TRUE?
Select one:

Question text

Which of the following describes an XML Processing Instruction?
Select one:

Question text

In the tree structure below


Which tags are considered siblings?

Select one:

Question text

This is an XML DOM function that returns all elements with a specified tag name.
Select one:

Question text

Which of the following statements about XML Namespaces is CORRECT?
Select one:

Question text

Which of the following statement about XML RSS is TRUE?

Select one:

Question text

Which of the following web services is XML RSS NOT applicable?

Select one:

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:

Question text

To declare a complex type of XML schema, we use the tag/element _____

Select one:

Question text

A standard way of selecting data/information in XML documents by means of using paths.
Select one:

Question text

In declaring XSLT, we can use the tag __________
Select one:

Question text

Which following applications can be used to view XML document?
Select one:

Question text

This is an XML DOM function that returns all elements with a specified tag name.
Select one:

Question text

Which of the following about CDATA is CORRECT?
Select one:

Question text

Which of the following about XML attributes is INCORRECT?
Select one:

Question text

Which of the following is NOT an XML related technology?
Select one:

Question text

To add a created element/tag on our XML document we use the XML DOM function ________.
Select one:

Question text

Valid XML Documents ___________
Select one:

Question text

Which of the following is the correct description of a valid XML document?
Select one:

Question text

Which of the following is a valid XPath expression?

Select one:

Question text

A software capable of handling large amounts of data in XML form is called ________

Select one:

Question text

Which of the following describes an XML Declaration?
Select one:

Question text

Which of the following statement is TRUE?
Select one:

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:

Question text

A DTD found inside an XML document is called a ___________

Select one:

Question text

To remove a specified child node, we use the XML DOM function
Select one:

Question text

Which of the following is the attribute is used to define a new XML Namespace?
Select one:

Question text

This element is used to express multiple conditional tests.

Select one:

Question text

Which of the following statements about XML DTD is TRUE?
Select one:

Question text

This is a DTD found outside an XML document.
Select one:

Question text

This is a content model that contain elements and character data
Select one:

Question text

Which of the following about XML Database is INCORRECT?
Select one:

Question text

This is an XML DOM element that gets the value of a given attribute on an element
Select one:

Question text

This is an XML DOM element that removes an attribute from an element
Select one:

Question text

Which of the following correctly describes XML Validation?
Select one:

Question text

Which of the following about RSS is CORRECT?
Select one:

Question text

The process of validating an XML document is called _____.
Select one:

Question text

Which of the following statements about XML Namespaces is CORRECT?
Select one:

Question text

Which of the following statement about XML is CORRECT?
Select one:

Question text

This is a node without a child.
Select one:

Question text

There is a way of describing XML data, how?
Select one:

Question text

In the tree structure below 


Which of the following statement is incorrect?

Select one:

Question text

Which of the following is the correct description of RSS?
Select one:

Question text

Which of the following XML elements is well-formed?

Select one:

Question text

Which of the following statements is NOT TRUE about XPath?
Select one:

Question text

In XML Schema Simple Type, this is a tag used for declaring elements without decimal points.

Select one:

Question text

Which of the following is NOT an example of an XML Database?
Select one:

Question text

To declare an internal DTD, we use the declaration

Select one:

Question text

Which of the following is TRUE about XML RSS?
Select one:

Question text

A software able of store large amounts of data and information in XML format is called
Select one:

Question text

This is a type of XML database that is based on the container rather than table format.
Select one:

Question text

RSS means Rich Site Summary. It also stands for
Select one:

Question text

This symbol means zero or one element in XML DTD.
Select one:

Question text

In the concept of XML Schema Data Type, which is INCORRECT?
Select one:

Question text

This is a set of rules used to describe XML language accurately
Select one:

Question text

Aside from Simple type, this is another type of XML schema that is a container for other element definitions.
Select one:

Question text

XML RSS can be applied to the items below except for
Select one:

Question text

In XML DTD, a content model that is used to declare an element without constraints is called
Select one:

Question text

To declare booelan values in XML Schema, we use the function

Select one:

Question text

In XML DTD, the symbol "+" means
Select one:

Question text

This element/tag is used for declaring complex type element.

Select one:

Question text

Which of the following statement about XML Schema is FALSE?
Select one:

Question text

Which of the following about XML Database is INCORRECT?
Select one:

Question text

In XML DTD, the symbol "*" means
Select one:

Question text

This is a document definition alternative to XML Schema
Select one:

Question text

A DTD found outside an XML document is called
Select one:

Question text

In declaring XML schema, which of the following statements should be used?

Select one:

Question text

Which of the following statement about the advantages of XML RSS is TRUE?
Select one:

Question text

Aside from DTDs, what XML-related technology is used to create valid XML document.
Select one:

Question text

This is a kind of XML database queried by the XPath-expressions.
Select one:

Question text

XML Schema is used to_____
Select one:

Question text

Which of the following about RSS is TRUE?
Select one:

Question text

Which of the following statement about XML DTD is CORRECT?
Select one:

Question text

Which of the following statements about XML DTD is NOT TRUE?
Select one:

Question text

Which of the following statements about XML Schema is INCORRECT?
Select one:

Question text

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

Question text

Which of the following can be used for declaring XSLT?

Select one:

Question text

XSLT transforms an XML document into another XML document
Select one:
 

Question text

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

Question text

XPath paths are similar to the directories we use to access files on our computers.
Select one:
 

Question text

Which of the following statements is INCORRECT?
Select one:

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:

Question text

XSLT uses Namespaces and XPath in its syntax.
Select one:
 

Question text

XSLT is used to extract data from XML.
Select one:
 

Question text

This XPath path expression selects from the root node.
Select one:

Question text

Which of the following statements is NOT TRUE?
Select one:

Question text

In XPath, Predicates are refinements for selecting data in XPath
Select one:
 

Question text

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

Select one:

Question text

Which of the following statements is TRUE about XPath?
Select one:

Question text

This is an XML DOM function for removing nodes
Select one:

Question text

This is an XML DOM property that inserts a new node before the given node
Select one:

Question text

This returns all elements with a specified tag name.
Select one:

Question text

XSLT is a W3C recommended
Select one:
 

Question text

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

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:

Question text

This is an XML DOM function used for creating attributes for elements
Select one:

Question text

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

Question text

XSLT uses XPath to navigate in XML documents
Select one:
 

Question text

XSLT stands for eXtensible Stylesheet Transformation
Select one:
 

Question text

Which of the following is the correct definition of XSLT?
Select one:

Question text

The tags and are synonymous.
Select one:
 

Question text

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

Question text

In the tree structure diagram below

 


Which of following is considered the root node?

Select one:

Question text

This XPath expression selects all attributes of the current node.
Select one:

Question text

XPath is not a W3C standard
Select one:
 

Question text

XSLT stands for
Select one:

Question text

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

Question text

XSLT can transform an XML document into an XHTML document.
Select one:
 

Question text

This element is used to sort the output.

Select one:

Question text

On the XML document below:
To get all the contact numbers we can use the XPath
Select one:

Question text

Which of the following is TRUE about XML DOM?
Select one:

Question text

This is an XML DOM property that removes an attribute from an element
Select one:

Question text

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

Question text

XPath is a fundamental part of some XML related technologies.
Select one:
 

Question text

This is an XML DOM function is used to add a created element/tag on our XML document.
Select one:

Question text

Observe the trees structure below

 


Which of the following statement is incorrect?

Select one:

Question text

This XPath expression selects all child of the current node.
Select one:

Question text

The purpose of XSLT is to transform an XML document.
Select one:
 

Question text

This XPath path expression selects attribute.
Select one:

Question text

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

Question text

On the XML document below:
To get the contact number with type "work", we can use the XPath
Select one:

Question text

Just like XML DOM, XPath uses the concepts of nodes
Select one:
 

Question text

This element is used to express multiple conditional tests.

Select one:

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:

Question text

Which of the following statement is TRUE?
Select one:

Question text

This XPath path expression selects the parent of the current node.
Select one:

Question text

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

Question text

This is an XML DOM function is used to add a created element/tag on our XML document.
Select one:

Question text

On the XML document below:
To get all the contact numbers we can use the XPath
Select one:

Question text

This XPath path expression selects attribute.
Select one:

Question text

XSLT is used to extract data from XML.
Select one:
 

Question text

This XPath expression selects all attributes of the current node.
Select one:

Question text

XSLT uses XPath to navigate in XML documents
Select one:
 

Question text

XSLT uses Namespaces and XPath in its syntax.
Select one:
 

Question text

XSLT describes how an XML document is displayed.
Select one:
 

Question text

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

Question text

This is an XML DOM property that removes an attribute from an element
Select one:

Question text

Observe the trees structure below

 


Which of the following statement is incorrect?

Select one:

Question text

This is an XML DOM property that inserts an element at the end of a given element's children.
Select one:

Question text

Which of the following is TRUE about XML DOM?
Select one:

Question text

In the tree structure diagram below

 


Which of following is considered the root node?

Select one:

Question text

The XML DOM property getElementsByTagName() ________
Select one:

Question text

Which of the following statement is TRUE?
Select one:

Question text

This is an XML DOM property that inserts a new node before the given node
Select one:

Question text

This is an XML DOM property that references the root document element.
Select one:

Question text

This is an XML DOM function used for creating attributes for elements
Select one:

Question text

XPath is a fundamental part of some XML related technologies.
Select one:
 

Question text

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

Question text

XPath paths are similar to the directories we use to access files on our computers.
Select one:
 

Question text

XSLT uses XPath to navigate in XML documents
Select one:
 

Question text

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

Question text

XSLT uses Namespaces and XPath in its syntax.
Select one:
 

Question text

Just like XML DOM, XPath uses the concepts of nodes
Select one:
 

Question text

Which of the following statements is NOT TRUE?
Select one:

Question text

This is a function used for creating text nodes
Select one:

Question text

This XML component shortens XML documents.
Select one:

Question text

This is a process of validating an XML document.
Select one:

Question text

What does RSS stands for?
Select one:

Question text

Which of the following is the definition of a Document definition?
Select one:

Question text

This is a combination of both HTML and XML.
Select one:

Question text

This is used to avoid conflict among element/tag names.
Select one:

Question text

XML Namespaces are used to avoid conflict among element/tag names.
Select one:
 

Question text

Which of the following correctly describes a well-formed XML Document?
Select one:
Which of the following is a valid tag name for an XML Document?
Select one:

Question text

DTD stands for?
Select one:

Question text

Which of the following is a real-life application of XML?
Select one:
XML is stricter than HTML in terms of syntax.
Select one:
 

Question text

What does CDATA stands for?
Select one:
Which of the following is a correct definition of DTD?
Select one:
Which of the following correctly describes a well-formed XML Document?
Select one:

Question text

The XML parser usually contains basic syntax rules and checks if the XML document followed these rules.
Select one:
 

Question text

Entities shorten XML documents.
Select one:
 

Question text

Which of the following is a real-life application of XML?
Select one:

Question text

Which of the following statements about XML Syntax is TRUE?
Select one:

Question text

XML documents can have multiple root tag.
Select one:
 

Question text

XML stands for ________
Select one:

Question text

Validation is a process of validating an XML document.
Select one:
 

Question text

A Document Definition is an XML Document that follows all the syntax rules.
Select one:
 

Question text

This contains all the basic syntax rules that an XML Document should follow to be considered well-formed.
Select one:

Question text

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

Question text

Which of the following statements is FALSE?
Select one:

Question text

Which of the following is the correct definition of XML?
Select one:

Question text

Which of the following is an alternative way of declaring the empty tag ?

Select one:
Which of the following statements is TRUE about XML Namespaces?
Select one:

Question text

What does RSS stands for?
Select one:

Question text

Comments are components of an XML document, but the contents are skipped by the XML parser
Select one:
 

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:

Question text

Tags are the foundation of an XML document.
Select one:
 

Question text

An XML declaration contains details that set up an XML processor in parsing the document
Select one:
 

Question text

What does RSS stands for?
Select one:

Question text

This technology takes an XML file and converts it into other format.
Select one:

Question text

Entities shorten XML documents.
Select one:
 

Question text

This is a combination of both HTML and XML.
Select one: