BlackFriday 2024! 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
4 months ago
Haha, what is this, a magic trick? Combining collections shouldn't require a rabbit and a hat!
upvoted 0 times
...
Pamella
4 months ago
A) Add To Collection is too simple. I want a more elegant solution.
upvoted 0 times
Annice
2 months ago
A) Add To Collection is too simple. I want a more elegant solution.
upvoted 0 times
...
Viki
2 months ago
C) Use a Multiple Assign activity to add each item from arrayB to listA
upvoted 0 times
...
Kaycee
3 months ago
B) Use the String.Join method with listA and arrayB as parameters
upvoted 0 times
...
Anissa
3 months ago
C) Use a Multiple Assign activity to add each item from arrayB to listA
upvoted 0 times
...
Rolland
3 months ago
B) Use the String.Join method with listA and arrayB as parameters
upvoted 0 times
...
...
Iluminada
4 months ago
D) Iterating through listA and adding to arrayB? That sounds like a lot of unnecessary work.
upvoted 0 times
...
Judy
4 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
4 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
4 months ago
B) Use the String.Join method with listA and arrayB as parameters
upvoted 0 times
...
Demetra
4 months ago
A) Use the Add To Collection activity with arrayB as the parameter
upvoted 0 times
...
...
Harley
4 months ago
But wouldn't using the Add To Collection activity be more efficient?
upvoted 0 times
...
Santos
5 months ago
I disagree, I believe we should use the String.Join method with listA and arrayB as parameters.
upvoted 0 times
...
Alease
5 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
4 months ago
A) Use the Add To Collection activity with arrayB as the parameter
upvoted 0 times
...
Tonette
5 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
5 months ago
I think we should use the Add To Collection activity with arrayB as the parameter.
upvoted 0 times
...

Save Cancel