nerdexam
IBM

A2060-218 · Question #32

A developer needs to check if the 'Preprocess' element equals 'Y' in Process Data. Which statement is most efficient?

The correct answer is B. string(INPUT/Header/Preprocess) = 'Y'. See the full explanation below for the reasoning.

Question

A developer needs to check if the 'Preprocess' element equals 'Y' in Process Data. Which statement is most efficient?

Options

  • AINPUT/Header/Preprocess = 'Y'
  • Bstring(INPUT/Header/Preprocess) = 'Y'
  • Cstring(//INPUT/Header/Preprocess) = 'Y'
  • D//ProcessData/INPUT/Header/Preprocess/text() = 'Y'

How the community answered

(33 responses)
  • A
    15% (5)
  • B
    70% (23)
  • C
    9% (3)
  • D
    6% (2)

Community Discussion

No community discussion yet for this question.

Full A2060-218 Practice