nerdexam
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)
  • A
    7% (2)
  • B
    4% (1)
  • C
    4% (1)
  • D
    86% (24)

Community Discussion

No community discussion yet for this question.

Full C2040-403 Practice