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-ADAv1 Topic 2 Question 27 Discussion

Actual exam question for UiPath's UiPath-ADAv1 exam
Question #: 27
Topic #: 2
[All UiPath-ADAv1 Questions]

A variable should be created and used for storing one or multiple IDs. The collection of IDs can be updated during the execution of the robot by adding elements. Which should be the data type of this variable, taking into account that each of the IDs has the following format: XX-XX-XX (where X is a digit)?

Show Suggested Answer Hide Answer
Suggested Answer: B

For storing one or multiple IDs with the format XX-XX-XX (where X is a digit) and allowing for updates during execution, the appropriate data type is List<String>. This is because you need a collection that can dynamically expand as more IDs are added, and the IDs are in a string format due to the inclusion of the hyphen characters. Reference:

UiPath Studio Guide: The Main Data Types in Studio


Contribute your Thoughts:

Elli
2 months ago
B) List is the way to go. Can't go wrong with a good old-fashioned string.
upvoted 0 times
...
Edwin
2 months ago
I disagree, I think String[] would be a better choice for storing the IDs.
upvoted 0 times
...
Dottie
2 months ago
I wonder if the exam question writer has ever tried to store phone numbers as integers. That would be a real headache!
upvoted 0 times
Jesusa
1 months ago
C) String
upvoted 0 times
...
Salome
1 months ago
B) List
upvoted 0 times
...
Yolande
2 months ago
A) List
upvoted 0 times
...
...
Ardella
2 months ago
I agree with Shenika, using List would allow for easy addition of IDs.
upvoted 0 times
...
Shenika
2 months ago
I think the data type should be List.
upvoted 0 times
...
Samira
2 months ago
As a robot developer, I'm pretty sure the answer is B) List. It's the best way to handle a collection of IDs with that format.
upvoted 0 times
Celestina
1 months ago
I would go with B) List as well, it seems like the most appropriate choice.
upvoted 0 times
...
Ula
2 months ago
Yeah, using a list of strings makes sense for this scenario.
upvoted 0 times
...
Caren
2 months ago
I agree, that data type would work best for storing IDs in that format.
upvoted 0 times
...
Adrianna
2 months ago
I think the answer is B) List.
upvoted 0 times
...
...
Bernadine
3 months ago
Option D) String[] could also work, but a List would be more flexible for adding and removing elements.
upvoted 0 times
Alpha
1 months ago
D) String[] could work, but List is recommended for flexibility.
upvoted 0 times
...
Trina
1 months ago
C) String data type may not be suitable for storing multiple IDs.
upvoted 0 times
...
Cletus
1 months ago
B) List is more flexible for adding and removing elements.
upvoted 0 times
...
Aja
1 months ago
A) List would be the best choice for storing multiple IDs.
upvoted 0 times
...
...
Carman
3 months ago
I think option B) List is the correct answer. The IDs have a specific format of XX-XX-XX, which suggests they are best represented as strings.
upvoted 0 times
Casie
2 months ago
I think so too. Storing the IDs as strings makes the most sense given their format.
upvoted 0 times
...
Dorthy
3 months ago
I agree with you, option B) List seems like the most appropriate choice.
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