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 Posted / 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 |
Post New Answer View All Answers
What do you do to install a new Windows 2003 R2 DC in a Windows 2003 AD?
Which is best among dotnet and dotnet diploma? Friends Please answer this question as soon as possible.
HI Guys...... Good day ahead How many sub domains can be added in exchange server means in a domain
What is POST?
Which is best insistute to learn IIS 6.0 and 7.0
Hi, I want to do asp.net certification. So please guide me how i can proceed.
mcse 2003 to mcitp upgrade paper
Hi can any one help me for 70-562 dumps?
Can you connect Active Directory to other 3rd-party Directory Services? Name a few options.
What are sites? What are they used for?
What are application partitions? When do I use them
windows file/folder sharing ?
How do you create a new application partition
I want to clear the mcse in 2007. So could i get the latest dump of msce questions?
Types of routing groups