Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Appian ACD101 Exam - Topic 5 Question 31 Discussion

Posted by Arlette on Feb 11, 2025 at 08:21 AM

Review the following expression rule:

union(ri!fruit, ri!vegetables)

The rule inputs are configured as text arrays.

What is the expected output?

Suggested Answer: B

The best practice in Appian for passing values into an interface is to use named parameters, which is demonstrated by Option B. Named parameters make the code more readable and maintainable by clearly specifying which parameter each value is being passed to. In this case, the recordId and firstName parameters are clearly being assigned the values 1 and 'Kyle' respectively. Reference:

Appian Documentation: Passing Parameters to Interfaces


Get Premium ACD101 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
35 comments · newest first
HA
Harris 10 months ago
Really? I thought it would just give unique items.
MO
Moon 11 months ago
A is correct, all items included, duplicates and all!
MO
Mozelle 11 months ago
Wait, are you sure it's not B? That seems off.
MI
Mitsue 11 months ago
I think it's C, duplicates should be removed.
SH
Shantay 11 months ago
Definitely A, it combines everything!
SO
Sol 12 months ago
I feel like I saw something about union in our notes, but I can't recall if it was about keeping duplicates or not.
NI
Nieves 12 months ago
I’m a bit confused; I thought union would just list everything, including duplicates, like in option A.
EL
Elly 12 months ago
I remember practicing a similar question where the union removed duplicates, so I might lean towards option C.
MA
Magdalene 1 year ago
I think the union function combines both arrays, but I'm not sure if it keeps duplicates or not.
KA
Katie 1 year ago
Alright, I've got it. The rule is taking the items from ri!fruit and ri!vegetables and combining them, but it's not removing any duplicates. So the output should be all the items from both arrays, including any duplicates. That's option A.
CE
Celestina 1 year ago
I'm a little confused by the wording here. Is the rule actually doing a union operation, or is it just combining the two arrays in some way? I'll need to re-read this a few times to make sure I understand what it's asking for.
WE
Werner 1 year ago
I think I've got this. The rule is saying "union", so I'm guessing the output will be all the items from both arrays, with any duplicates removed. That sounds like option C to me.
DE
Delila 1 year ago
Okay, let's see. The rule is taking two text arrays as input, so I'm guessing the output will be some kind of combination of those two arrays. I'll need to pay close attention to the wording to figure out exactly what it's asking for.
AL
Alishia 1 year ago
Hmm, this looks like a tricky one. I'll need to think it through carefully to make sure I understand the rule correctly.
MA
Maile 1 year ago
Union? More like 'onion' - this question is making me cry!
CH
Cherelle 1 year ago
↳ replying to Maile
C) All items in ri!fruit and ri!vegetables combined, with duplicates removed.
KR
Kristian 1 year ago
↳ replying to Maile
B) Only items that are in both ri!fruit and ri!vegetables.
AN
Annalee 1 year ago
↳ replying to Maile
A) All items in ri!fruit followed by items in ri!vegetables, including duplicate values.
ED
Edwin 1 year ago
Hmm, this is a tricky one. I'm leaning towards B, since the question mentions the rule 'union', which might have a different behavior than a regular union operation.
ZO
Zoila 1 year ago
I'm going with C. The union operation should remove any duplicate values, so the output should be a combined list of all items from both arrays, without duplicates.
ST
Stephaine 1 year ago
↳ replying to Zoila
C makes sense to me too.
SH
Sherron 1 year ago
↳ replying to Zoila
I'm not sure, but C sounds logical.
AN
Annmarie 1 year ago
↳ replying to Zoila
I agree, C seems like the right choice.
GL
Glendora 1 year ago
↳ replying to Zoila
I think the correct answer is C.
KR
Kristofer 1 year ago
I'm not sure about this one. The question talks about a 'rule', so I'm guessing the output might be different from a standard union operation. I'll have to think about it some more.
SH
Shala 1 year ago
↳ replying to Kristofer
I think the answer is A.
DU
Dulce 1 year ago
↳ replying to Kristofer
A) All items in ri!fruit followed by items in ri!vegetables, including duplicate values.
VI
Viola 2 years ago
I think the answer is A. The union operation should combine the contents of the two arrays, even if there are duplicates.
DE
Delila 1 year ago
↳ replying to Viola
I believe the correct answer is A as well.
KA
Kate 1 year ago
↳ replying to Viola
I'm not sure, but I think it might be B.
LE
Lennie 1 year ago
↳ replying to Viola
I think it's actually C, the duplicates are removed in the output.
PR
Precious 1 year ago
↳ replying to Viola
I agree, the answer is A.
DE
Deonna 2 years ago
I'm not sure, but I think the correct answer is B) Only items that are in both ri!fruit and ri!vegetables.
RO
Roslyn 2 years ago
I disagree, I believe the expected output is C) All items in ri!fruit and ri!vegetables combined, with duplicates removed.
PO
Pok 2 years ago
I think the expected output is A) All items in ri!fruit followed by items in ri!vegetables, including duplicate values.
0/2000 characters

Save Cancel