Appian Senior Developer (ACD101) — Question 5
Review the following expression rule:
union(ri!fruit, ri!vegetables)
The rule inputs are configured as text arrays.
What is the expected output?
Answer options
- A. All items in ri!fruit followed by items in ri!vegetables, including duplicate values.
- B. Only items that are in both ri!fruit and ri!vegetables.
- C. All items in ri!fruit and ri!vegetables combined, with duplicates removed.
Correct answer: C
Explanation
The correct answer is C because the union function combines items from both arrays and removes duplicates. Option A incorrectly states that duplicates are included, and option B only considers items that are common to both arrays, not the full range of unique items.