Past-paper question · 2024 May-June · Paper 23 · Q1(a)(ii)

Question 1(a)(ii) 2024 · May-June · Paper 23 · 3 marks

Original past-paper question for 1(A)(II)
Original past-paper question for 1(A)(II)
Reveal official mark-scheme answer Official mark-scheme answer for 1(A)(II)

Official answer for Question 1

Part (a)

(ii)

✓
One mark per point:

Question 3

✓
1. Create a module / function / procedure / subroutine using the (old) code /
✓
algorithm
✓
2. Replace the old code / algorithm wherever it appears with a call to the
✓
module / function / procedure / subroutine
✓
3. Pass the data as parameter(s) // Use of global variable(s)
✓
4. Return the result (of the calculation) // Assign result to global variable(s) /
✓
BYREF parameter(s)
✓
5. Create local variables as needed (to perform the calculation)
✓
Note: Max 3 marks

Mark scheme 9618_s24_ms_23.pdf →

Show text version of question

Question 1

Part (a)

(ii)

Question 1

A program uses many complex algorithms.

One algorithm is repeated in several places. The code for the algorithm is the same wherever it is used, but the calculations within the algorithm may operate on different data.

The result of each calculation is used by the code that follows it.

It is decided to modify the program and implement the algorithm as a separate module.

(ii)

Describe how the modification would be implemented.

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

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

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

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

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

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

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

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

[3]

Question 3

, ,

Topic relevance

Why this question appears here

99% assigned-topic match · Programming › Structured programming

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

Keep practising this topic