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
Get Premium ACD101 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
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
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
C) All items in ri!fruit and ri!vegetables combined, with duplicates removed.
KR
Kristian
1 year ago
B) Only items that are in both ri!fruit and ri!vegetables.
AN
Annalee
1 year ago
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
C makes sense to me too.
SH
Sherron
1 year ago
I'm not sure, but C sounds logical.
AN
Annmarie
1 year ago
I agree, C seems like the right choice.
GL
Glendora
1 year ago
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
I think the answer is A.
DU
Dulce
1 year ago
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
I believe the correct answer is A as well.
KA
Kate
1 year ago
I'm not sure, but I think it might be B.
LE
Lennie
1 year ago
I think it's actually C, the duplicates are removed in the output.
PR
Precious
1 year ago
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.