Assuming that path is properly instantiated object of type XPath and doc is the document below, what is the value of result in the statement String result = path.evaluate("count(/items/*", doc) ;
<items>
<item>
<product>
<description>Ink Jet Refill Kit</description>
<price>29.95</price>
</product>
<quantity>8</quantity>
</item>
<item>
<product>
<description>4-port Mini Hub</description>
<price>19.95</price>
</product>
<quantity>4</quantity>
</item>
</items>
A) 1
B) 2
C) 3
D) 4
Correct Answer:
Verified
Q2: What does DOM stand for?
A)Data Object Model
B)Data
Q22: Where is the createElement method located?
A)DocumentBuilder class.
B)newBuilder
Q24: To write a DOM document, you need
Q34: Given the following code, what will the
Q36: Given the following code, what will the
Q40: Given the following code, what will the
Q51: Which of the following represents the declaration
Q57: A _ is a sequence of rules
Q64: In an attribute definition in a DTD,
Q74: Mixed content is _.
A)any sequence of numeric
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents