Exam AD01 All QuestionsBrowse all questions from this exam
Question 1

Examine the following process flow:

The Process is intended to attempt to perform the processing in the recover block, Block 3, a maximum of three times before throwing an exception.

Data Item "Attempts" is a number data item with an initial value of 0

Data Item "Max Attempts" is a number data item with an initial value of 3

The "˜Increment Attempts' calculation stage adds 1 to the attempts value and outputs a result to the "Attempts" data item

To enable this to work correctly, what is the correct expressions for the "˜Try Again' decision stage?

    Correct Answer: A

    The correct expression for the 'Try Again' decision stage is [Attempts] < [Max]. This ensures that the process will attempt the recovery block up to three times. At each attempt, the 'Increment Attempts' stage increases the count, and the decision stage checks if the current attempt count is still less than the maximum allowed attempts. If it is, the process tries again. Once the count reaches the maximum (3), the condition [Attempts] < [Max] will be false, and the process will not attempt again, thus throwing an exception.

Discussion
sstusardOption: A

[Attempts] <= [Max] will give 4 attempts because the very first attempt is before an exception is thrown. So [Attempts] < [Max] will give 3 attempts including the very first attempt before exception.

nalinnishant

The correct answer has to be [Attempts] <= [Max] because +1 is added to the increment attempts stage before the decision stage.

770_is_everywhere

wrong. the reason you mention is excatly why you cant compare it to 3... it means that after the third attempt you want to say if equal to 3 so try again. its mistake...

UjjwalKumarOption: A

[Attempts] <= [Max]

VialexisOption: C

I thing that the true answer is C

SUmITPaLOption: A

A - [Attempts] < [Max]

RadekRPAOption: A

It runs then increase counter, so required count of loops needs to be 3 it is A

VK9999Option: A

[Attempts] < [Max]

Sagar00786Option: B

Answer should be B as the correct ans should be [Attempts]<=[Max], the resulting condition will be same for [Attempts]>[Max]