Question 2(b) 2025 · October-November · Paper 42 · 3 marks
Reveal official mark-scheme answer
Official answer for Question 2
Part (b)
Question 1
mark each
Question 3
- Procedure header (and close) taking (array) as parameter
- Outputting array contents once …
- … on one line with a space between each integer
Show text version of question
Question 2
Part (b)
Question 2
A program stores 20 unique random integers between 0 and 100 (inclusive) in a 1D array that is
local to the main program.
Part (b)
The procedure PrintArray() takes an integer array as a parameter. The procedure outputs
the array contents on a single line with a space between each integer.
Write the program code for PrintArray()
Save your program.
Copy and paste the program code into part 2(b) in the evidence document.
Why this question appears here
71% 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_w25_qp_42.pdf
