Multiple choice technology programming languages

What’s the .NET collection class that allows an element to be accessed using a unique key?

  1. ArrayList

  2. NameValue Collection

  3. StringCollection

  4. HashTable

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

HashTable stores key-value pairs and allows retrieval by unique key. ArrayList is index-based, StringCollection is string-specific, and NameValueCollection exists but isn't the primary key-access collection.