Past-paper question · 2023 May-June · Paper 33 · Q3(a)

Question 3(a) 2023 · May-June · Paper 33 · 2 marks

Original past-paper question for 3(A)
Reveal official mark-scheme answer Official mark-scheme answer for 3(A)

Official answer for Question 3

Part (a)

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

Question 2

✓
Record key
✓
Hash value
✓
1030

Question 1

✓
1050
✓
0
✓
1025

Question 2

Mark scheme 9618_s23_ms_33.pdf →

Show text version of question

Question 3

Part (a)

A
hashing algorithm is used to calculate storage locations for records in a random access file.

It calculates hash values by using the function modulus 3.

The function modulus gives the remainder after integer division. For example, 1030 modulus 3 = 1. Therefore, the record key 1030 gives a hash value of 1.

Complete the table to show the remaining hash values.

Record key Hash value 1030 1

1050

1025

[2]
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_33.pdf

Keep practising this topic