UiPath Automation Developer Associate v1 — Question 27

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)?

Answer options

Correct answer: B

Explanation

The correct answer is B, List, because a List allows for dynamic resizing, enabling the addition of multiple IDs during execution. Options A and D, String and String[], do not support modifying the collection by adding new elements, while C is a duplicate option and also represents a List.