Past-paper question · 2022 October-November · Paper 22 · Q2(a)(i)

Question 2(a)(i) 2022 · October-November · Paper 22 · 5 marks

Original past-paper question for 2(A)(I)
Original past-paper question for 2(A)(I)
Reveal official mark-scheme answer Official mark-scheme answer for 2(A)(I)

Official answer for Question 2

Part (a)

(i)

✓
One mark per step (or equivalent):

Question 5

Question 1

✓
Open file in APPEND mode (and subsequent Close)

Question 2

✓
Prompt and Input a student name and mark

Question 3

✓
If mark greater than or equal to 20 jump to step 5

Question 4

✓
Write only the name to the file

Question 5

✓
Repeat from Step 2 for 35 times / the number of students

Mark scheme 9618_w22_ms_22.pdf →

Show text version of question

Question 2

Part (a)

(i)

An algorithm will process data from a test taken by a group of students. The algorithm will prompt and input the name and test mark for each of the 35 students.

The algorithm will add the names of all the students with a test mark of less than 20 to an existing text file Support_List.txt, which already contains data from other group tests.

(i)

Describe the steps that the algorithm should perform.

Do not include pseudocode statements in your answer.

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

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

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

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

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

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

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

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

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

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

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

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

[5]

Question 4

Topic relevance

Why this question appears here

71% assigned-topic match · Algorithm design and problem-solving › Algorithms

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 9618_w22_qp_22.pdf

Keep practising this topic