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 if you attempt to add a duplicate value to an existing HashSet<T> using the Add() method?
A.
The program crashes with an InvalidOperationException.
B.
The set overwrites the old value and moves it to the front of the collection.
C.
The method returns false, and the set ignores the duplicate item.
D.
The method adds a unique numerical suffix to the item to force it to be unique.
1 / 14
...