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 81, 17, 71, 42 and 61, in that order. How many looks do the five puts make in all?
the answer, and why
the answer is A
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
BThat counts every number before each put, as if all shared one bucket.
CThat counts only 61's 2 looks, but other puts meet numbers too.
DThat counts 1 look for each put into a bucket holding numbers, but 61 meets 2.