Certified Pega System Architect v7.2 — Question 19
You have been asked to create a sequence of user forms for a travel reservation process. The forms contain fields that require calculation. For which reason do you use a declare expression to calculate values?
Answer options
- A. To perform the calculation in a specific case stage
- B. To perform the calculation when the user clicks a button
- C. To perform the calculation when a form is submitted
- D. To perform the calculation wherever a field is updated
Correct answer: A
Explanation
The correct answer is A because a declare expression is specifically used to calculate values at a defined stage in the case processing. Options B and C suggest interactions that occur at specific user actions, while D implies real-time calculation, which is not the intended use for a declare expression.