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?
Select an option, then click Submit answer.
Reference / correct answer:
Most accepted answer: C. System.Array
Community votes: B=1, C=2
Selected Answer: C Array has a fixed size after initialization upvoted 3 times
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
Selected Answer: B B seems to be the more accurate answer upvoted 1 times
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 1 year, 9 months 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 5 times ...
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 5 times