Past-paper question · 2023 May-June · Paper 23 · Q9(b)

Question 9(b) 2023 · May-June · Paper 23 · 5 marks

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

Official answer for Question 9

Part (b)

✓
One mark per mark point, max five

Question 5

✓
MP1 input a string into Saying
✓
MP2 correct use of OPENFILE to write data
✓
MP3 correct use of WRITEFILE to write Saying
✓
MP4 correct use of CLOSEFILE
✓
MP5 correct use of filename Quotations.txt throughout
✓
For example:
✓
INPUT Saying
✓
OPENFILE "Quotations.txt" FOR WRITE
✓
WRITEFILE "Quotations.txt", Saying
✓
CLOSEFILE "Quotations.txt"
✓
Question
✓
Answer
✓
Marks

Mark scheme 0478_s23_ms_23.pdf →

Show text version of question

Question 9

Part (b)

Question 9

The variable Saying is used to store string data in a program.

Part (b)

Write the pseudocode statements to:

  • allow a string to be input to the variable Saying
  • store the content of the variable Saying in a text file named "Quotations.txt"
  • make sure the text file is closed at the end of the algorithm.

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

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

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

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

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

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

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

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

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

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

[5]

Question 10

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_s23_qp_23.pdf

Keep practising this topic