9618/33/M/J/24 question 4: worked solution (May/June 2024, paper 33)
Show as plain textHide plain text
Cambridge A2 Level Computer Science 9618 · 13.2 File organisation and access Worked solution from the Data Representation Paper 3 Advanced Theory booklet, Part 2 of 3. Q30 9618/33/M/J/24 original Q4 Structured · 5 marks 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 IDEA Sequential 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 VIDEO ▶ Whole paper Video solution of the whole paper · by CsWithMym. Tap the picture to open it on YouTube.