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
3 months 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
3 months 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
Christene
2 months ago
D) An error occurs
upvoted 0 times
...
Lewis
2 months ago
C) \n50 80 250\n60 90 150\n
upvoted 0 times
...
Ulysses
2 months ago
B) \n5080250\n6090150\n
upvoted 0 times
...
Lavonda
2 months ago
A) \n50\n60\n
upvoted 0 times
...
...
Vivan
3 months 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
Cassi
2 months ago
C) \n50 80 250\n60 90 150\n
upvoted 0 times
...
Shenika
2 months ago
B) \n5080250\n6090150\n
upvoted 0 times
...
Fausto
2 months ago
A) \n50\n60\n
upvoted 0 times
...
Jade
3 months ago
A) \n50\n60\n
upvoted 0 times
...
...
Tracie
3 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
Annalee
2 months ago
I'm not sure, but I think it might be D. An error could occur with that query.
upvoted 0 times
...
Lorita
2 months ago
I agree with you, I also think it's A. Each record is returned separately.
upvoted 0 times
...
Florinda
2 months ago
I think the correct answer is A. It returns each data value as a separate record.
upvoted 0 times
...
...
Aimee
4 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
Paz
2 months ago
I'm not sure, but D could also be a possibility
upvoted 0 times
...
Audria
2 months ago
I agree with you, it seems like B is the correct answer
upvoted 0 times
...
Antonio
3 months ago
I believe it might be C
upvoted 0 times
...
Linwood
3 months ago
I think the correct result is A
upvoted 0 times
...
...
Lisandra
4 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
3 months ago
User 2: Yeah, the XQuery is just extracting the data values from the record elements.
upvoted 0 times
...
Alyce
3 months ago
User 1: I think the correct answer is A.
upvoted 0 times
...
...
Lajuana
4 months ago
But A returns individual values, while B concatenates them. That's why I think A is correct.
upvoted 0 times
...
Albert
4 months ago
I disagree, I believe the correct answer is B.
upvoted 0 times
...
Lajuana
4 months ago
I think the correct answer is A.
upvoted 0 times
...

Save Cancel