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

Q22 · 9618/31/O/N/21 Q5

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

Q229618/31/O/N/21original Q5Structured · 6 marks
Question 5 from 9618/31/O/N/21

Worked solution

(a)

Compare the two methods. Give similarities and differences.

Both store records one after the other [1]

Both need records to be read one after the other (from the start) [1]

Serial: records are in no order, usually the order they were added (chronological). New records are added at the end (next free space) [1]

Sequential: records are in order of a key field. New records are inserted in the correct position [1]

Any four correct points score.

(b)

Write: direct access [1]

(c)

Write: sequential access [1]

KEY IDEASerial files are in the order added; sequential files are in key order; direct access uses an address.
TOTAL 6 marks

Official mark scheme

Mark scheme for 9618/31/O/N/21 question 5
VIDEO
▶ Whole paper

Video solution of the whole paper · by qiphyedu. 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.