Worked solution from the Data Representation Paper 3 Advanced Theory booklet, Part 2 of 3.
Sequential file organisation: records are ordered based on the key field [1]
A new version of the file must be created to update it [1]
Random file organisation: records are stored in no particular order, and a hashing algorithm links the key to the location of the record [1]
Updates can be made directly to the file [1]
Write: start at the beginning of the file and check the records one by one [1]
... until the record is found, or the end of the file (EOF) is reached (processing or updating records as needed) [1]
▶ Topic lesson
A lesson on this topic · by ZAINEMATICS. 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.