Correct Answer: This is a perfectly workable code.
5. Which of the following statements are correct about a HashTable collection?
It is a keyed collection.
It is a ordered collection.
It is an indexed collection.
It implements a IDictionaryEnumerator interface in its inner class.
The key - value pairs present in a HashTable can be accessed using the Keys and Values properties of the inner class that implements the IDictionaryEnumerator interface.
Correct Answer: They use efficient algorithms to manage the collection, thereby improving the performance of the program.
7. Suppose value of the Capacity property of ArrayList Collection is set to 4. What will be the capacity of the Collection on adding fifth element to it?