Checking It

Select the correct answer to the following questions.

Multiple Choice

1:An indexed collection is a collection that:
  1. Implements the IList interface.

  2. Implements the IDictionary interface.

  3. Has items that can be retrieved by their index.

  4. Uses key-value pairs as collection items.

2:A sorted collection is
  1. A collection of values sorted using a specified key.

  2. A collection of key-value pairs.

  3. A collection that implements IEnumerable.

  4. A collection that implements IList.

3:Are the Queue and Stack:
  1. Indexed.

  2. Sortable.

  3. Neither.

  4. Both.

4:What would you use to implement a collection for all the bank accounts of a person:
  1. Hashtable.

  2. SortedList.

  3. ArrayList.

  4. Stack ...

Get Visual Basic® .NET by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.