In the HashTable functions, we had to make sure the client’s hash function did not produce an index outside of the array; yet, we didn’t need a size variable as a private member of HashTable because:

A. the client knows what size the hash table is
B. the Array used for the hash table has a length function
C. if the hash function is faulty, the index produced must be less than 0
D. we require that the client thoroughly test the hash function

B

Computer Science & Information Technology

You might also like to view...

Describe how sort order in an Access table is determined

What will be an ideal response?

Computer Science & Information Technology

Macros are sometimes used to spread viruses

Indicate whether the statement is true or false

Computer Science & Information Technology