Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - 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
30 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
1 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
Lewis
6 days ago
C) \n50 80 250\n60 90 150\n
upvoted 0 times
...
Ulysses
7 days ago
B) \n5080250\n6090150\n
upvoted 0 times
...
Lavonda
17 days ago
A) \n50\n60\n
upvoted 0 times
...
...
Vivan
1 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
Shenika
4 days ago
B) \n5080250\n6090150\n
upvoted 0 times
...
Fausto
6 days ago
A) \n50\n60\n
upvoted 0 times
...
Jade
1 months ago
A) \n50\n60\n
upvoted 0 times
...
...
Tracie
2 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
16 days ago
I'm not sure, but I think it might be D. An error could occur with that query.
upvoted 0 times
...
Lorita
18 days ago
I agree with you, I also think it's A. Each record is returned separately.
upvoted 0 times
...
Florinda
19 days ago
I think the correct answer is A. It returns each data value as a separate record.
upvoted 0 times
...
...
Aimee
2 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
14 days ago
I'm not sure, but D could also be a possibility
upvoted 0 times
...
Audria
24 days ago
I agree with you, it seems like B is the correct answer
upvoted 0 times
...
Antonio
1 months ago
I believe it might be C
upvoted 0 times
...
Linwood
1 months 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
1 months ago
User 2: Yeah, the XQuery is just extracting the data values from the record elements.
upvoted 0 times
...
Alyce
1 months 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
3 months ago
I think the correct answer is A.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77