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.
Which statement correctly describes the behavior of assigning a value via the indexer (e.g., dict["A"] = 1;)?
A.
It always throws an exception if the key “A” already exists.
B.
It strictly updates existing keys and fails if the key is missing.
C.
It adds the key if missing, but throws an exception if it exists.
D.
It adds the key if missing, or updates the value if the key exists.
1 / 14