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

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77