Exam AD01 All QuestionsBrowse all questions from this exam
Question 75

Examine the following Process flow:

The ‘Customer Credits’ Collection contains the following data:

The ‘Customer Account Credits’ loop is configured to loop through the ‘Customer Credits’ Collection.

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

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

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

    Correct Answer: D

    The 'Customer Account Credits' loop iterates through the 'Customer Credits' collection, and the 'Get Total Credits' Calculation stage expression simply retrieves the 'Credit Amount' for each row without adding to the existing value of 'Total Credits'. As such, 'Total Credits' will be set to the value of the last row's 'Credit Amount', which is 2.

Discussion
neno2023Option: D

it will return the last one which is a 2 D100%

LH1213Option: D

I think it is D, since there is no addition so the last value in the column Credit Amount should be returned

BlueprismUser199212345Option: D

100% D as there is no addition in the calculation step. Its not A as it has been mentioned that the loop loops through the collection.

winbhaOption: A

A is the Answer

LH1213

Why? What is the logic for your answer?