Answer the following statements true (T) or false (F)

1) Dictionary is an interface.
2) Enumerators can change the values of elements but cannot remove them.
3) With hashing, as the load factor increases, the chance of collisions decreases.
4) Elements in an array must be sorted in ascending order before a BinarySearch may be performed.
5) Class Array provides static method Sort for sorting array elements.


1) False. Dictionary is a class; IDictionary is an interface.
2) False. An enumerator cannot be used to change the values of elements.
3) False. With hashing, as the load factor increases, there are fewer available slots relative
to the total number of slots, so the chance of selecting an occupied slot (a collision)
with a hashing operation increases.
4) True.
5) True.

Computer Science & Information Technology

You might also like to view...

Under UNIX, files that represent a block or character device are called __________ files.

a. ordinary b. character c. special d. block

Computer Science & Information Technology

_____ methods tend to use spiral or other iterative models.?

A. ?Object-oriented B. ?Data-driven C. ?Structured D. ?Agile

Computer Science & Information Technology

Many newer mobile devices and computers, such as some ultrathin laptops, do not have removable batteries.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

The square root function is available in the Equation editor.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology