C# Programming - Collection Classes - Discussion

Discussion :: Collection Classes - General Questions (Q.No.4)

4. 

In which of the following collections is the Input/Output based on a key?

  1. Map
  2. Stack
  3. BitArray
  4. HashTable
  5. SortedList

[A]. 1 and 2 only
[B]. 2 and 3 only
[C]. 1, 2 and 3 only
[D]. 4 and 5 only
[E]. All of the above

Answer: Option D

Explanation:

No answer description available for this question.

Gloops said: (Aug 3, 2014)  
How do you insert an element in a Map without a key ?

K2U2007 said: (Oct 3, 2014)  
The Non-Generic Collection Classes.

With the exception of BitArray, described later, the non-generic collection classes are summarized here:

ArrayList: A dynamic array. This is an array that can grow as needed.
Hashtable: A hash table for key/value pairs.
Queue: A first-in, first-out list.
SortedList: A sorted list of key/value pairs.
Stack A first-in, last-out list.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.