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.
What happens when you call the Add() method on an ImmutableList<T>?
A.
The compiler throws a NotSupportedException because immutable lists cannot be modified.
B.
The method modifies the internal array and locks it immediately to prevent further changes.
C.
The method allocates a new immutable list in memory containing the old items plus the new item, and returns the new list.
D.
The method adds the item to a temporary buffer that merges with the list upon application shutdown.
1 / 14
...