Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam UiADPv1 topic 1 question 44 discussion

Actual exam question from UiPath 's UiADPv1
Question #: 44
Topic #: 1
[All UiADPv1 Questions]

A developer examines a workflow in which filenames are stored within a collection. The collection is initialized with a single filename. When adding a new filename to the collection, which collection variable type will cause an error?

  • A. System.Collections.Generic.Dictionary
  • B. System.Collections.Generic.List
  • C. System.Array
  • D. System.Data.DataTable
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
milesvvv
1 week, 3 days ago
Selected Answer: C
Array has a fixed size after initialization
upvoted 1 times
...
milindkumar
2 months, 1 week ago
Selected Answer: C
System.Array: An array is a fixed-size collection that can hold elements of the same data type. It’s not ideal for scenario because you want to add new filenames dynamically.
upvoted 2 times
...
milindkumar
2 months, 1 week ago
Selected Answer: B
B seems to be the more accurate answer
upvoted 1 times
...
Brandon00777
2 months, 1 week ago
B seems to be the more accurate answer. Once an array is initialized, it is fixed, meaning it cannot grow in size. A list is a data collection that works similar to an array, HOWEVER, a list can add new items and constantly grow in size.
upvoted 1 times
kingkayy
2 weeks, 6 days ago
Based on your explanation then C is the correct answer because the question is asking which will cause an error. An array will, because it is fixed.
upvoted 2 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...