Past-paper question · 2019 May-June · Paper 42 · Q1(c)

Question 1(c) 2019 · May-June · Paper 42 · 4 marks

Original past-paper question for 1(C)
Original past-paper question for 1(C)
Original past-paper question for 1(C)
Original past-paper question for 1(C)
Original past-paper question for 1(C)
Original past-paper question for 1(C)
Original past-paper question for 1(C)
Original past-paper question for 1(C)
Reveal official mark-scheme answer Official mark-scheme answer for 1(C)

Official answer for Question 1

Part (c)

Question 1

mark per bullet point to max 4

Question 4

✓
•
✓
There are a large number of objects/records to store // hash is better for a large number of objects/records
✓
•
✓
A hashing algorithm/hash performed on key field/record (to form the address)
✓
•
✓
«to allow direct access to the object
✓
•
✓
«so it is likely to be faster in finding the object // linked list is slower in finding the object
✓
•
✓
In a linked list, each object needs to be checked until found // sequentially/linear accessed
✓
•
✓
«the left/right/next pointer is followed // have to trace pointers
✓
9608/42
✓
Cambridge International AS/A Level – Mark Scheme
✓
May/June 2019
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 9608_s19_ms_42.pdf →

Show text version of question

Question 1

Part (c)

Question 1

A company wants an online marking system for an examination.

Part (c)

The examination paper will be taken by many candidates in centres around the world.

The program stores the objects of the ExaminationPaper class in a file. The company has decided to use a hash table, rather than a linked list to store the objects.

Explain why a hash table is more suitable than a linked list to store the objects.

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

.............................................................................................................................................

[4]

Question 11

Question 2 begins on the next page.

Question 12

Topic relevance

Why this question appears here

71% assigned-topic match · Further programming › Programming paradigms

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 9608_s19_qp_42.pdf

Keep practising this topic