BlackFriday 2024! 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 6 Question 44 Discussion

Actual exam question for XML's I10-003 exam
Question #: 44
Topic #: 6
[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:

Lou
4 months ago
I think the correct answer is D because there might be an error in the XQuery.
upvoted 0 times
...
Marti
4 months ago
But A seems to match the XQuery logic better.
upvoted 0 times
...
Kindra
4 months ago
The XQuery is pretty straightforward. I'm not seeing any reason why an error would occur, so I'm going with option A.
upvoted 0 times
Mitsue
3 months ago
Yeah, I agree. Option A looks right to me too.
upvoted 0 times
...
Armanda
3 months ago
I think the correct answer is A.
upvoted 0 times
...
...
Melodie
4 months ago
I disagree, I believe the correct answer is B.
upvoted 0 times
...
Ashley
4 months ago
Ha! Someone must have really been grasping at straws to come up with that second option. Clearly, the correct answer is A.
upvoted 0 times
...
Margo
4 months ago
I'm not sure why option B is even an option. That output doesn't make any sense given the XML structure.
upvoted 0 times
...
Francisca
4 months ago
The output looks like the correct result to me. The XQuery is extracting the 'data' elements from each 'record' and returning them as individual 'record' elements.
upvoted 0 times
Quiana
3 months ago
Mariann: I see your point, but I still think B) is the correct result.
upvoted 0 times
...
Mariann
4 months ago
I agree with Phil, A) looks like the correct output to me.
upvoted 0 times
...
Phil
4 months ago
I disagree, I believe the correct result is B) 50802506090150
upvoted 0 times
...
Clemencia
4 months ago
I think the correct result is A) 5060
upvoted 0 times
...
...
Marti
5 months ago
I think the correct answer is A.
upvoted 0 times
...

Save Cancel