ProgrammingModerate

A table of size 7 with h(k) = k % 7 is filled with 7 keys using linear probing and no deletions. How many more keys can be inserted before the table is full?

  1. A. 1
  2. B. 0
  3. C. 7
  4. D. 6

Correct answer: B. 0

A table with 7 slots is full after 7 keys. Linear probing needs an empty slot to terminate, so no more keys fit.

More C Programming questions

Exams that ask this topic