2210/23/O/N/23 question 3: worked solution (October/November 2023, paper 23)
Show as plain textHide plain text
Cambridge O Level Computer Science 2210 · 8.3 File handling Worked solution from the Programming Paper 2 Algorithms, Programming and Logic booklet, Part 3 of 3. Q65 2210/23/O/N/23 original Q3 Structured · 6 marks Worked solution (a) Match by what each keyword does: Description Keyword stores data in a file WRITE retrieves data from a file READ displays data on a screen OUTPUT enters data from a keyboard INPUT stores data in a file → WRITE [1] retrieves data from a file → READ [1] displays data on a screen → OUTPUT [1] enters data from a keyboard → INPUT [1] OPEN is not used. (b) Write any two reasons: The data is stored permanently (it is kept after the program ends or the power is off) [1] The data can be moved to another computer [1] Another copy ( backup ) can be made and stored or accessed elsewhere. (only two marks) KEY IDEA INPUT and OUTPUT deal with keyboard and screen; READ and WRITE deal with files. TOTAL 6 marks Official mark scheme VIDEO ▶ Whole paper Video solution of the whole paper · by O/Alevel CS by Wasiq. Tap the picture to open it on YouTube.