Past-paper question · 2025 October-November · Paper 23 · Q9(b)(i)

Question 9(b)(i) 2025 · October-November · Paper 23 · 5 marks

Original past-paper question for 9(B)(I)
Original past-paper question for 9(B)(I)
Reveal official mark-scheme answer Official mark-scheme answer for 9(B)(I)

Official answer for Question 9

Part (b)

(i)

✓
One mark for each bullet point

Question 5

✓
•
✓
using PROCEDURE StoreData and ENDPROCEDURE
✓
•
✓
defining the parameter correctly
✓
•
✓
correctly opening the file for write
✓
•
✓
correctly storing the name
✓
•
✓
correctly closing the file
✓
Example
✓
PROCEDURE StoreData(Name : STRING)
✓
OPENFILE People.txt FOR WRITE
✓
WRITEFILE People.txt, Name
✓
CLOSEFILE People.txt
✓
ENDPROCEDURE
✓
2210/23
✓
Cambridge O Level – Mark Scheme
✓
October/November 2025
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 2210_w25_ms_23.pdf →

Show text version of question

Question 9

Part (b)

(i)

Question 9

The variables Name, Age and Found are used in a computer program.

Name holds the name of a person. Age holds the age of a person as a whole number. Found holds a flag that can be set to TRUE or FALSE The procedure StoreData(Name) stores the name of a person in the file People.txt

(i)

Write pseudocode statements to:

  • define the procedure with the parameter
  • store the name of the person in the file.

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

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

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

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

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

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

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

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

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

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

[5]
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 2210_w25_qp_23.pdf

Keep practising this topic