Question 2(b) 2023 · May-June · Paper 32 · 2 marks
Reveal official mark-scheme answer
Official answer for Question 2
Part (b)
Question 2
Question 3
Question 4
Show text version of question
Question 2
Part (b)
Part (b)
A hashing algorithm is used to calculate storage locations for records in a random access file.
The algorithm calculates hash values using the function modulus 5.
The function modulus gives the remainder after integer division. For example, 3003 modulus 5 = 3, so the record key 3003 gives a hash value of 3.
Complete the table to show the remaining hash values.
Record key Hash value
3003 3
1029
7630
Question 4
Why this question appears here
71% assigned-topic match · Data types and structures › Data types and records
Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.
Permanent source page: Educate A Change · From 9618_s23_qp_32.pdf
