The test's questions that a run answers, asked again on new numbers whenever you like. The answer, its working and the reason for every other choice come from hash table with chaining's own run on the numbers shown.
choose one
1question 1
An empty table of 5 buckets puts in 78, 76, 56, 81 and 43, in that order. How many looks do the five puts make in all?
the answer, and why
the answer is C
Each put looks at every number already in its bucket, the remainder after dividing by 5: put by put, 0 + 0 + 1 + 2 + 1, 4 in all.
if you chose another
AThat counts every number before each put, as if all shared one bucket.
BThat counts only 81's 2 looks, but other puts meet numbers too.
DThat counts 1 look for each put into a bucket holding numbers, but 81 meets 2.