Cambridge A2 Level Computer Science 9618 · 13.2 File organisation and access

Q28 · 9618/31/M/J/24 Q4

Worked solution from the Data Representation Paper 3 Advanced Theory booklet, Part 2 of 3.

Q289618/31/M/J/24original Q4Structured · 5 marks
Question 4 from 9618/31/M/J/24

Worked solution

(a)

Write that records are searched for one after the other [1]

... starting from the physical start of the file, until the record is found or the end of the file is reached. [1]

(b)

Any three of these:

Serial files: records are stored in the order they were added (chronological order). [1]

Every record is checked until the wanted record is found or all records have been checked. [1]

Sequential files: records are stored in order of a key field, and the key field is what is compared. [1]

The search stops when the record is found or the key of the current record is greater than the key of the target record. (also credited, but no extra mark: any n only)

KEY IDEASequential access reads records one by one from the start; a sequential file can stop early because its key fields are in order.
TOTAL 5 marks

Official mark scheme

Mark scheme for 9618/31/M/J/24 question 4
VIDEO
▶ Starts at Q4 (21:41)

Starts at Q4 (21:41) · by Pseudocode Pro. Tap the picture to open it on YouTube.

Solutions follow the official Cambridge mark schemes; marks are shown in grey. Videos are from other YouTube channels. Paper codes read component / series / year: M/J = May/June, O/N = October/November. Past-paper questions © UCLES, reproduced for classroom practice.