Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

XML Exam I10-003 Topic 10 Question 38 Discussion

Actual exam question for XML's I10-003 exam
Question #: 38
Topic #: 10
[All I10-003 Questions]

Select the correct result of executing the following [XQuery] on [example xml] referenced in a separate window.

[XQuery]

{

for $record in fn:doc("example.xml")/example/record

return

{ fn:data($record/data) }

}

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

Weldon
13 days ago
This is a tricky one. I hope the exam doesn't have too many questions like this, or I'll be scratching my head all day!
upvoted 0 times
...
Rebecka
16 days ago
I'm just going to guess D and hope for the best. Maybe the example.xml file is formatted in a way that breaks the query.
upvoted 0 times
Lavonda
12 hours ago
A) \n50\n60\n
upvoted 0 times
...
...
Vivan
24 days ago
An error? Really? I don't see any syntax issues with the XQuery, so I doubt that's the right answer.
upvoted 0 times
Jade
20 days ago
A) \n50\n60\n
upvoted 0 times
...
...
Tracie
1 months ago
I'm pretty sure the correct answer is C. The query is returning the data values as a space-separated string for each record.
upvoted 0 times
Lorita
2 days ago
I agree with you, I also think it's A. Each record is returned separately.
upvoted 0 times
...
Florinda
2 days ago
I think the correct answer is A. It returns each data value as a separate record.
upvoted 0 times
...
...
Aimee
1 months ago
Hmm, I think the query is a bit more complex than it appears. The result might be B, since the data values could be concatenated together.
upvoted 0 times
Audria
8 days ago
I agree with you, it seems like B is the correct answer
upvoted 0 times
...
Antonio
16 days ago
I believe it might be C
upvoted 0 times
...
Linwood
26 days ago
I think the correct result is A
upvoted 0 times
...
...
Lisandra
2 months ago
The XQuery looks good, but I'm not sure what the example.xml file looks like. The correct answer should be A, since the query is just extracting the data values from the record elements.
upvoted 0 times
Stephane
19 days ago
User 2: Yeah, the XQuery is just extracting the data values from the record elements.
upvoted 0 times
...
Alyce
21 days ago
User 1: I think the correct answer is A.
upvoted 0 times
...
...
Lajuana
2 months ago
But A returns individual values, while B concatenates them. That's why I think A is correct.
upvoted 0 times
...
Albert
2 months ago
I disagree, I believe the correct answer is B.
upvoted 0 times
...
Lajuana
2 months ago
I think the correct answer is A.
upvoted 0 times
...

Save Cancel