Question 3(a)(i) 2014 · May-June · Paper 21 · 5 marks
Reveal official mark-scheme answer
Official answer for Question 3
Part (a)
(i)
Part (a)
(i)
FUNCTION FindArrayIndex(ChildName : STRING) RETURNS INTEGER
Show text version of question
Question 3
Part (a)
(i)
Question 3
After a child uses the program again, the teacher wants the program to find the child’s record in
the array and update the score if it is higher.
(i)
A function, FindArrayIndex, is needed to return the array index of the record in
which the child’s name is stored. Write pseudocode for this function.
Assume:
- the child’s name exists in the array
- the children’s names are unique
- the children’s names are not in any order.
FUNCTION FindArrayIndex(ChildName : STRING)
ENDFUNCTION
Why this question appears here
91% 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 9691_s14_qp_21.pdf
