Question 2(b) 2019 · May-June · Paper 43 · 6 marks
Reveal official mark-scheme answer
Official answer for Question 2
Part (b)
Question 1
mark for each completed section
Question 6
Show text version of question
Question 2
Part (b)
Question 2
A computer games club wants to run a competition. The club needs a system to store the scores
achieved in the competition.
Part (b)
The club also considers storing the data in the order in which it receives the scores as a
linked list in a 1D array of records.
The following pseudocode algorithm searches for an element in the linked list.
Complete the six missing sections in the algorithm.
FUNCTION FindElement(Item : INTEGER) RETURNS …………………………………………
…………………………………………… ← RootPointer
WHILE CurrentPointer …………………………………………… NullPointer
IF List[CurrentPointer].Data <> ……………………………………………
THEN
CurrentPointer ← List[……………………………………………].Pointer
ELSE
RETURN CurrentPointer
ENDIF
ENDWHILE
CurrentPointer ← NullPointer
………………………………………… CurrentPointer
ENDFUNCTION
Question 7
Why this question appears here
82% assigned-topic match · Programming › Constructs
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 9608_s19_qp_43.pdf
