Quiz Yourself: Collections
Evaluate your understanding of .NET collection types including lists, FIFO structures, and observable data patterns.
We'll cover the following...
We'll cover the following...
Technical Quiz
1.
Assume you initialize a completely empty List<int> without specifying a starting capacity. What precisely happens to its internal structure when you append the fifth element?
A.
The internal array expands incrementally by appending a single new memory block to the list.
B.
The list abandons its contiguous memory layout and converts into a linked list structure natively.
C.
The internal array automatically doubles its size to eight, and the existing elements are copied over.
D.
The application immediately throws an exception unless the TrimExcess method was explicitly called.
1 / 14
...