Exam AD01 All QuestionsBrowse all questions from this exam
Question 81

Examine the following Process flow, which calculates the total number of orders:

The ‘Orders’ Collection contains the following data:

The ‘Loop Orders’ loop is configured to loop through the ‘Orders’ Collection.

The ‘Total Orders’ data item is configured as a number data item with an initial value of 0.

The ‘Get Total Orders’ Calculation stage contains the following expression:

What will the Total Orders data item value be after the page has executed?

    Correct Answer: D

    The 'Loop Orders' process flow is designed to iterate through the 'Orders' collection. During each iteration, it will add the 'Quantity' value of the current order to the 'Total Orders' data item. Starting with an initial value of 0, the process will sum the quantities of all the orders. The quantities are 10, 15, 2, 6, and 11. Adding these together, 10 + 15 + 2 + 6 + 11 equals 44. Thus, the 'Total Orders' data item value will be 44 after the page has executed.

Discussion
LH1213Option: D

D is the answer

BlueprismUser199212345Option: D

D as it is simple addition. Nothing wrong with the way it has been setup