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 71, 49, 64, 66 and 89, in that order. How many looks do the five puts make in all?
the answer, and why
the answer is B
Each put looks at every number already in its bucket, the remainder after dividing by 5: put by put, 0 + 0 + 1 + 1 + 2, 4 in all.
if you chose another
AThat counts every number before each put, as if all shared one bucket.
CThat counts only 89's 2 looks, but other puts meet numbers too.
DThat counts 1 look for each put into a bucket holding numbers, but 89 meets 2.