UiPath Advanced RPA Developer (UiARD) — Question 105

A developer reviews a workflow where filenames will be stored in a collection. The collection is initialized with a single filename. If adding a new filename to the collection, which collection variable type will result in an error?

Answer options

Correct answer: B

Explanation

The correct answer is B, System.Collections.Generic.Dictionary, because a Dictionary requires a key-value pair for each entry, and adding a single filename would not fit this structure. The other options, such as List, DataTable, and Array, allow for the addition of new items without the need for a key, making them suitable for this scenario.