PrepAway - Latest Free Exam Questions & Answers

Which xPath expressions can create the following calculations in the table?

Refer to the exhibit.

Which xPath expressions can create the following calculations in the table?

1. Calculate the Cost column as the product of the Quantity and the Price for the current row
2. Populate the Total field as the sum of all Cost rows in the table

PrepAway - Latest Free Exam Questions & Answers

A.
Cost column:
/xcp_cert_test_1/product_order/item_listing/quantity*/xcp_cert_test_1/product_order/item_listing/pr
ice
Totalfield:sum(/xcp_cert_test_1/product_order/item_listing/cost)

B.
Cost column:
/xcp_cert_test_1/product_order/item_listing/quantity*/xcp_cert_test_1/product_order/item_listing/pr
ice
Total field:sum(//item_listing/cost)

C.
Cost column: ../quantity*../price
Total field:sum(/xcp_cert_test_1/product_order/item_listing/cost)

D.
Cost column: ../quantity*../price
Total field:sum(//item_listing/cost)


Leave a Reply