XML I10-003 - XML Master Professional Database Administrator Exam

Question #6 (Topic: )
Assume that for [XML Document] referenced in a separate window, you wish to create an
XML Schema document that defines that the value of the level attribute of the record
element must be 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.
[XML Document]
<TestML>
<record level="1" data="100" />
<record level="2" data="250" />
<scenario stage="A" level="1" />
<scenario stage="B" level="2" />
</TestML>
Select which answer correctly belongs in (1) of the [XML Schema] document below.
A. Option A B. Option B C. Option C D. Option D
Answer: D
Question #7 (Topic: )
Select the correct result of executing the [XQuery] on [example xml] referenced in a
separate window.
A. <result> <record> <name/> </record> <record> <name/> </record> </result> B. <result> <example> <record> <name/> </record> <record> <name/> </record> </example> </result> C. <result> <record> <name>John Smith</name> </record> <record> <name>Harold Jones</name> </record> </result> D. <result> <example> <record> <name>John Smith</name> </record> <record> <name>Harold Jones</name> </record> </example> </result>
Answer: A
Question #8 (Topic: )
Select which of the following is not a correct description regarding dynamic context defined
by XQuery 1.0.
A. Dynamic context is information that is available at the time the expression is evaluated B. The dynamic context consists of all the components of the static context (default element/type namespace, etc.), and additional components (context item, etc.) C. The value of context size (one of the dynamic context components) can be obtained using the "fn:last()" function D. Query prolog cannot be used to set the value for any of the dynamic context components
Answer: D
Question #9 (Topic: )
An [XQuery] was executed to join [eventList.xml] and [sessionUst.xml] (referenced in a
separate window) and obtain the following [Expected Execution Result].
However, executing this [XQuery] resulted in an error.
Select which of the following is an appropriate example of the resulting Error Message.
A. XPST0008:An expression refers to a variable name that is not defined in the static context. B. XPTY0018:The result of the last step in a path expression contains both nodes and atomic values. C. XGTY0024:The content sequence in an element constructor contains an attribute node following a node that is not an attribute node. D. XGST0054:A variable depends on itself.
Answer: C
Question #10 (Topic: )
Assume the use of XML Data like [XML Data] referenced in a separate window.
When a data element is present in XML Data, there are three possibilities for b element as
shown in [XML Data b Element] (separate window). No other possibilities are available.
Consider inserting any XML data into an XMLDB using the methods shown in [Operation 1]
or [Operation 2].
Select the correct answer that allows for a clear identification of the three different
possibilities for [XML Data b Element].
[Operation 1]
After validating against the following [XML Schema], insert XML data (having no validation
errors) into the XMLDB.
When no b element is present, the b element value is null.
When b element is present, the b element value is either 1 or 2 in [XML Data b Element].
[Operation 2]
After validating against the following [DTD], insert XML data (having no validation errors)
into the XMLDB (do not consider the existence of a document type declaration in the XML
data).
When the b element value is "null", the value of the b element is null.
When the b element value is a character string other than "null", the b element value is 1 in
[XML Data b Element].
When the b element is an empty element, the b element value is 2 in [XML Data b
Element].
[DTD]
<!ELEMENT example (data+)>
<!ELEMENT data (a?, b?, c?)>
<!ELEMENT a (#PCDATA)>
<!ELEMENT b (#PCDATA)>
<!ELEMENT c (#PCDATA)>
A. Under the method described in [Operation 1], the three possibilities may not be clearly identified in some circumstances B. Under the method described in [Operation 2],the three possibilities may not be clearly identified in some circumstances C. The methods in [Operation 1] and [Operation 2] can clearly identify the three possibilities D. The methods in [Operation 1] and [Operation 2] cannot clearly identify the three possibilities
Answer: B
Download Exam
Page: 2 / 8
Total 39 questions