You work as the application developer at Certkiller .com.
You must specify a class
which is optimized for key-based item retrieval from
collections. Your class must
cater for key-based item retrieval for small and large
collections.
Which of the following class types should you specify?
A. Select the OrderedDictionary class.
B. Select the HybridDictionary class.
C. Select theListDictionary class.
D. Select the Hashtable class
Answer / gaaa
Answer: B
Explanation: A HybridDictionary is implemented as a
ListDictionary for small
collections and a Hashtable for large collections. Hence it
provides very efficient
storage for both small and large collections.
OrderedDictionary supports sorting based on the key. It has
similar disadvantages for
small collections to Hashtable on which it is based.
ListDictionary is ideal for small collections because it is
implemented as a light-weight
linked list. Performance will suffer for large collections.
HashTable is ideal for large collections, for small
collections the overheads of such a
sophisticated data structure do not compensate for the benefits
Is This Answer Correct ? | 3 Yes | 0 No |
What is the function of Domain Partition?
What is Site?
What is Micro soft?
What types of VPN does Windows 2000 and beyond work with natively?
What's the difference between transferring a FSMO role and seizing one? Which one should you NOT seize? Why?
How do you create a new application partition
What are administrative templates?
What tool would I use to try to grab security related packets from the wire?
what is archive bit ?
How Replication Works
What is Active Directory?
What are the FSMO roles? Who has them by default? What happens when each one fails?