Take an empty hash table of size 9. The elements to be filled are 38, 57, 81, 77, 33, 44, 70, 37, 40. The table is full at the end of the operation. Consider remainder method as the hash function. What will be the index position of 81, 77, 33 and 38, respectively?
(A) 0
(B) 2
(C) 5
(D) 6
Take an empty hash table of size 9. The elements to be filled are 38, 57, 81, 77, 33, 44, 70, 37, 40. The table is full at the end of the operation. Consider remainder method as the hash function. What will be the index position of 81, 77, 33 and 38, respectively?
(A) 0
(B) 2
(C) 5
(D) 6
Solution
✅ Correct Option: 1
The hash function is , so each key goes to the index equal to its remainder.
| Key | Calculation | Index |
|---|---|---|
| 38 | 2 | |
| 57 | 3 | |
| 81 | 0 | |
| 77 | 5 | |
| 33 | 6 | |
| 44 | 8 | |
| 70 | 7 | |
| 37 | 1 | |
| 40 | 4 |
All nine remainders are different, so there are no collisions and the table fills exactly (indices 0 to 8).
, which is (A), (C), (D), (B).
Related questions:
2025: 22 May Shift 1
2026: 19 May Shift 1
2025: 13 May Shift 2
2026: 23 May Shift 1
2026: 23 May Shift 1