Past-paper question · 2023 May-June · Paper 32 · Q2(b)

Question 2(b) 2023 · May-June · Paper 32 · 2 marks

Original past-paper question for 2(B)
Original past-paper question for 2(B)
Reveal official mark-scheme answer Official mark-scheme answer for 2(B)

Official answer for Question 2

Part (b)

✓
One mark for each correct hash value (Max 2)

Question 2

✓
Record key
✓
Hash value
✓
3003

Question 3

✓
1029

Question 4

✓
7630
✓
0
✓
9618/32
✓
Cambridge International AS & A Level – Mark Scheme
✓
May/June 2023
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 9618_s23_ms_32.pdf →

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

[2]

Question 4

Topic relevance

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

Keep practising this topic