Past-paper question · 2025 October-November · Paper 21 · Q9

Question 9 2025 · October-November · Paper 21 · 4 marks

Original past-paper question for 9
Reveal official mark-scheme answer Official mark-scheme answer for 9

Official answer for Question 9

✓
One mark per bullet point

Question 4

  • correctly opening Attendance.txt for read
  • use of READFILE
  • … and storing in StudentAttendance
  • closing Attendance.txt
✓
Example
✓
OPENFILE Attendance.txt FOR READ
✓
READFILE Attendance.txt, StudentAttendance
✓
CLOSEFILE Attendance.txt
✓
Question
✓
Answer
✓
Marks

Mark scheme 0478_w25_ms_21.pdf →

Show text version of question

Question 9

A
school stores all the students’ attendance data in a file called Attendance.txt

Write an algorithm in pseudocode to read a line of text from the file and store this line in the variable StudentAttendance

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

..........................................................................................................................................................

....................................................................................................................................................

[4]
Topic relevance

Why this question appears here

98% assigned-topic match · Programming › Programming concepts

Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.

Permanent source page: Educate A Change · From 0478_w25_qp_21.pdf

Keep practising this topic