EMT Practice Test

1. Question Content...


Question List

Question1: Which of the following text strings is not output to the results document when performing an XSLT transformation on the following "XML Document" using the "XSLT Style Sheet" below? Note that the XSLT processor can output transformation results as a document. [XML Document]

Question2: Push the Exhibit Button to load the referenced "XML Document".
[XML Document]
<root><data>lmnop</data></root>
Assume that the "XML document" is changed to the "Results XML Document." Select which XSLT style sheet correctly performs the transformation.
Note that the XSLT processor can output transformation results as a document.
[Results XML Document]
<lmnop/>
Or
<lmnop></lmnop>

Question3: Push the Exhibit Button to load the referenced "XML Document". When processing the "XML Document" according to the method shown by "DOM Processing," which of the following is the most appropriate expression of the results under XML 1.0? Line feeds and/or indents are not reflected in the results.
[XML Document]
2004-07-01
2004-07-01 09:00
WAITING
Although the expected processing result is choice "D", processing may not occur as expected.
[DOM Processing]
Process XML using the following method.
Document output = createXML( doc, impl );
The variable doc here references the Document instance of the loaded XML Document.
The variable impl here references the DOMImplementation instance.
The DOM parser is namespace aware.
Assume no execution errors.

Question4: Select which of the following DOM (Level 2) nodes does not hold a value (returns "null"). (Multiple answers possible. Select two.)

Question5: Push the Exhibit Button to load the referenced "XML Document 1" and "XML Document 2," and process XML using "DOM Processing."

Question6: Use XSLT transformation to create XML according to the schema (portions modified for this question) defined by TravelXML.
Perform XSLT transformation on the "XML Document" using the following "XSLT Style Sheet".
[XML Schema]
<xsd:schema xmlns:xsd=http://www.w3.org/2001/XMLSchema
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
Select which of the following correctly describes the results of performing a validation check on the post-transformation XML against the schema ("XML Schema" referenced when the Exhibit Button is pushed).

Question7: Push the Exhibit Button to load the referenced "XML Document". When processing the "XML Document" according to the method shown by "SAX Processing," which of the following correctly describes the output results (println method output)?
[XML Document]
2004-07-01
2004-07-01-09:00
2004-07-01 13;00
Assume that the processed XML Document has no indents (ignorable white space such as line feeds, tabs, etc.). Although the expected processing result is choice "A", processing may not occur as expected. [SAX Processing] Use the following "ContentHandlerImpl" class, and parse the XML Document using SAX. The SAX parser is namespace aware. Assume no execution errors.

Question8: Push the Exhibit Button to load the referenced "XML Document". When processing the "XML Document" according to the method shown by "DOM Processing," which of the following is the most appropriate expression of the results under XML 1.0? Line feeds and/or indents are not reflected in the results.
Although the expected processing result is choice "B", processing may not occur as expected.
[DOM Processing]
Process XML using the following method.
Document output = createXML( doc, impl );
The variable doc here references the Document instance of the loaded XML Document.
The variable impl here references the DOMImplementation instance.
The DOM parser is namespace aware.
Assume no execution errors.
}
return output;
}

Question9: Select a valid XML Document against the "XML Schema" referenced when the Exhibit Button is pushed.
[XML Schema]
<Missing>

Question10: Which of the following correctly describe XML encryption and XML digital signatures?

Question11: When processing the following "XML Document" ("sample.xml") according to the method shown by "SAX processing," which of the following correctly describes the output results (print method output)?
Assume no compile errors. The SAX parser is a validating parser.

Question12: Push the Exhibit Button to load the referenced "XML Document," and process XML using "DOM Processing".
[XML Document]
<doc><content>Today's<bold>"hot"</bold>news</content></doc>
Select which of the following is the most appropriate expression of the results under XML 1.0.
[DOM Processing]
Process XML using the following method.
Document output = updateXML( doc );
The variable doc here references the Document instance of the loaded XML Document.
Assume no execution errors.

Question13: Use DOM programming to create XML according to the schema defined by TravelXML (portions modified for this question). Create XML according to the method shown by "DOM Processing". Select which of the following correctly describes the results of performing a validation check on the created XML against the schema ("XML Schema" referenced when the Exhibit Button is pushed).
[DOM Processing]
Create XML using the following method.
Document doc = createXML( impl );
The variable impl here references the DOMImplementation instance.
The DOM parser is namespace aware.
Assume no execution errors.

Question14: Push the Exhibit Button to load the referenced "XML Document". Choose the XML Schema Document that correctly defines the structure of "XML Document".

Question15: Push the Exhibit Button to load the referenced "testml.xsd". Assume that "testml.xsd" is defined. Without rewriting this XML Schema Document ("testml.xsd"), create a new, separate XML Schema Document to partially change the schema definition replacing the phone element with a cellPhone element. As a result, the following "XML Document" will be valid against the new schema. Which of the following correctly describes the new XML Schema Document?
Assume that the XML parser correctly processes the XML Schema schemaLocation attribute.

Question16: Push the Exhibit Button to load the referenced "XML Document". When processing the "XML Document" according to the method shown by "DOM Processing," which of the following is the most appropriate expression of the results under XML 1.0? Line feeds and/or indents are not reflected in the results.
[XML Document]
2004-07-01 13:00
WAITING
2004-07-01 16:00
WAITING
Assume that the processed XML Document has no indents (ignorable white space such as line feeds, tabs, etc.).
[DOM Procesing]
Create XML using the following method.
Document output = createXML( doc, impl );
The variable doc here references the Document instance of the loaded XML Document.
The variable impl here references the DOMImplementation instance.
The DOM parser is namespace aware.
Assume no execution errors.

Question17: Which of the following correctly describes the output results when performing an XSLT tranformation on the following "XML Document" using the "XSLT Style Sheet" below? Note that the XSLT processor can output transformation results as a document.

Question18: When processing the following "XML Document" according to the method shown by "SAX Processing," which of the following correctly describes the output results (print method output)?

Question19: Process the following "XML Document" according to the method shown by "DOM Processing," and output "article" (by print method). Select which of the following correctly describes what should be in (1) for " DOM Processing "

Question20: Push the Exhibit Button to load the referenced "XML Document". Create an XML Schema Document for "XML Document". The definitions of this XML Schema Document require that the value of the level attribute of the record element must be singularly unique within the XML document, and further, that the level attribute of the scenario element must reference the value of the level attribute of the record element. Select which of the following correctly describes what should be written in " XML Schema " document (1).

Question21: Push the Exhibit Button to load the referenced "XSLT Style Sheet". Select which of the following correctly describes the output results of an XSLT transformation of the following "XML Document" using the "XSLT Style Sheet".
Assume that the XSLT processor can load "sample.xml" normally, and output transformation results as a document. Line feeds and indents are not reflected. Although the expected processing result is choice "E", processing may not occur as expected.

Question22: Push the Exhibit Button to load the referenced "XML Document". When processing the "XML Document" according to the method shown by "SAX Processing," which of the following correctly describes the output results (print and/or println method output)?
[XML Document]
2004-07-01
2004-07-01 09:00
Helen Edwards
2004-07-01 13:00
John Smith
Assume that the processed XML Document has no indents (ignorable white space such as line feeds, tabs, etc.).
[SAX Processing]
Use the following "ContentHandlerImpl" class, and parse the XML Document using SAX.
The SAX parser is namespace aware.
Assume no execution errors.

Question23: Which of the following correctly describes the results of normalizing the following XML Document rec element by Exclusive XML Canonicalization?

Question24: Select which of the following correctly describes the results of performing a validation check on "XML Document". Assume that the XML parser correctly processes the XML schema no Name space Schema Location attribute and the schema Location attribute.

Question25: Which of the following is a correct statement about XML security?