XML Technologies and XSLT

Covers XML parsing (DOM, SAX), XSLT transformations, XQuery, and XML Schema (XSD)

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

which one can be used to specify complex restrictions for the content of an element.

  1. sequence
  2. regular expression
  3. XSD
  4. XLT
Question 2 Multiple Choice (Single Answer)

which one is used to define a valid value for an attribute.

  1. xs:value
  2. xs:sequence
  3. xs:enumeration tag
  4. None
Question 3 True/False

XML can only be transformed into HTML or XHTML.

  1. True
  2. False
Question 4 Multiple Choice (Single Answer)

The <xsl:for-each select=ficustomers/customerfl> statement states

  1. For each customer element of the result document
  2. For each customers element of the result document
  3. For each customer element of the source document thats a child of customers
  4. For each customers element of the source document
Question 5 Multiple Choice (Single Answer)

The xsl:value-of element is used to

  1. Extract text from the result document
  2. Extract text from the source document
  3. Place text into the source document
  4. None of the above
Question 6 Multiple Choice (Single Answer)

The <xsl:value-of select=fi@id=Jimfi/> statement is used to

  1. Select the Jim element
  2. Select the Jim attribute
  3. Select the id attribute
  4. Select the id attribute if the value is Jim
Question 7 True/False

The xsl:if element instructs the CSS to evaluate a condition before extracting an element.

  1. True
  2. False
Question 8 Multiple Choice (Single Answer)

In order to sort numeric values, you must set the to

  1. data-type=finumberfl
  2. data-type=fivaluefl
  3. data-type=fidecimalfl
  4. None of the above
Question 9 True/False

Only a browser can access a result document.

  1. True
  2. False
Question 10 True/False

The SAX parser is not able to transverse an XML document.

  1. True
  2. False
Question 11 Multiple Choice (Single Answer)

The SAX parser creates a node by using

  1. createElement()
  2. reateTextNode()(
  3. createComment()
  4. None of the above
Question 12 Multiple Choice (Single Answer)

Which of the following is represented as a node in the tree a DOM parser creates?

  1. CDATA sections
  2. Comments
  3. Elements
  4. 1 & 3
  5. All of the above
Question 13 True/False

The same version of a DOM parser must be used on all computers.

  1. True
  2. False
Question 14 Multiple Choice (Single Answer)

A SAX parser

  1. Organizes the XML document into a tree
  2. Reads a block of an XML document at a time
  3. Enables you to correct the contents of an XML document
  4. None of the above
Question 15 Multiple Choice (Single Answer)

$x is an

  1. Element
  2. Attribute
  3. XQuery
  4. Variable
Question 16 Multiple Choice (Single Answer)

A constructor

  1. Is the first instance of a function
  2. Is the first instance of a variable
  3. Converts information contained in an XML document to another data type
  4. None of the above
Question 17 True/False

The round-half-to-even() function rounds half the value returned by a function.

  1. True
  2. False
Question 18 Multiple Choice (Single Answer)

The async = false means

  1. Statements will continue to execute as the XML document is being loaded.
  2. Statements will not execute until the XML document is being loaded.
  3. The XML document is synchronized to the HTML page.
  4. None of the above
Question 19 Multiple Choice (Single Answer)

firstChild is a

  1. Property containing a reference to the first child of an element
  2. Method that makes the current node the first child
  3. Method that substitutes the first node for the last node
  4. Method that substitutes the last node for the first node
Question 20 Multiple Choice (Single Answer)

createElement(fititlefl) means

  1. Create a new HTML element
  2. Create a title for a new HTML element
  3. Create a new XML element
  4. Create an attribute called title for the current XML element