Past-paper question · 2025 May-June · Paper 23 · Q5(a)

Question 5(a) 2025 · May-June · Paper 23 · 18 marks

Original past-paper question for 5(A)
Original past-paper question for 5(A)
Original past-paper question for 5(A)
Original past-paper question for 5(A)
Reveal official mark-scheme answer

The answer for this question is in the official mark scheme: open the mark scheme.

Mark scheme 9618_s25_ms_23.pdf →

Show text version of question

Question 5

Part (a)

Question 5

"Uranus"

[3]

(ii)

The variable StartPointer contains the index of the first item in the linked list.

State the value of the variable StartPointer

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

[1]

Part (c)

A third program is also being created to manage a queue.

Describe two features of a queue.

Feature one ..............................................................................................................................

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

Feature two ...............................................................................................................................

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

[2]

Question 7

, ,

3 A programmer has been asked to create a module RollDice() to simulate multiple rolls of a dice. This module will be used as part of a program for a game.

The module will:

step 1 – take a positive integer parameter representing the number of times the dice will be rolled

step 2 – simulate one roll of the dice by generating a random integer between 1 and 6 inclusive

step 3 – output the integer generated

step 4 – repeat, as required from step 2

step 5 – calculate the average value of the random integers generated

step 6 – return the average value.

Write pseudocode for the module RollDice()

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[7]

Question 8

, ,

4 A programmer is developing a new stock control program for a shop owner to produce sales reports.

Part (a)

A text file Sales.txt stores strings representing the number of items sold.

The file contains 52 lines, each representing the number of items sold in each week of the year.

For example:

File line number File data

1 "350" 2 "502" 3 "434"

49 "492" 50 "872" 51 "772" 52 "201"

The example shows that 502 items were sold in week 2.

The owner requires a module to output all week numbers where the number of items sold is greater than 500.

Describe an algorithm that produces the required module.

Do not include pseudocode statements in your answer.

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

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

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

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

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

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

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

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

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

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

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

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

[5]

Question 9

, ,

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

Keep practising this topic