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

UiPath Exam UiPath-ARDv1 Topic 12 Question 89 Discussion

Actual exam question for UiPath's UiPath-ARDv1 exam
Question #: 89
Topic #: 12
[All UiPath-ARDv1 Questions]

A developer has two collections containing data:

1) A list of strings called listA that was initialized with 2 items

2) An array of strings called arrayB that was initialized with 2 items

How can both collections be combined into a single 4-item collection called results?

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

Rutha
1 months ago
Haha, what is this, a magic trick? Combining collections shouldn't require a rabbit and a hat!
upvoted 0 times
...
Pamella
1 months ago
A) Add To Collection is too simple. I want a more elegant solution.
upvoted 0 times
Anissa
9 days ago
C) Use a Multiple Assign activity to add each item from arrayB to listA
upvoted 0 times
...
Rolland
11 days ago
B) Use the String.Join method with listA and arrayB as parameters
upvoted 0 times
...
...
Iluminada
1 months ago
D) Iterating through listA and adding to arrayB? That sounds like a lot of unnecessary work.
upvoted 0 times
...
Judy
1 months ago
I think using the Multiple Assign activity to add each item from arrayB to listA would be the best approach.
upvoted 0 times
...
Larae
1 months ago
C) Multiple Assign seems a bit clunky. I'd rather not have to manually add each item from arrayB to listA.
upvoted 0 times
Demetra
25 days ago
B) Use the String.Join method with listA and arrayB as parameters
upvoted 0 times
...
Demetra
1 months ago
A) Use the Add To Collection activity with arrayB as the parameter
upvoted 0 times
...
...
Harley
1 months ago
But wouldn't using the Add To Collection activity be more efficient?
upvoted 0 times
...
Santos
2 months ago
I disagree, I believe we should use the String.Join method with listA and arrayB as parameters.
upvoted 0 times
...
Alease
2 months ago
B) String.Join looks like the way to go. It's a straightforward method to combine the two collections.
upvoted 0 times
Serina
2 months ago
A) Use the Add To Collection activity with arrayB as the parameter
upvoted 0 times
...
Tonette
2 months ago
B) String.Join looks like the way to go. It's a straightforward method to combine the two collections.
upvoted 0 times
...
...
Harley
2 months ago
I think we should use the Add To Collection activity with arrayB as the parameter.
upvoted 0 times
...

Save Cancel