IBM
C2040-403 · Question #99
Which absolute XPath query will properly limit the result set to 10 items?
The correct answer is D. instance('INSTANCE')/widgets/widget[position() > 5 and position() < 16]. See the full explanation below for the reasoning.
Question
Which absolute XPath query will properly limit the result set to 10 items?
Options
- Awidgets/widget[position > 5 and position < 16]
- Bwidgets/widget[position() > 5 and position() < 15]
- Cinstance('INSTANCE')/widgets/widget[position > 5 and position < 16]
- Dinstance('INSTANCE')/widgets/widget[position() > 5 and position() < 16]
How the community answered
(28 responses)- A7% (2)
- B4% (1)
- C4% (1)
- D86% (24)
Community Discussion
No community discussion yet for this question.