Question 1(g)(i) 2015 · October-November · Paper 22 · 6 marks
Reveal official mark-scheme answer
Official answer for Question 1
Part (g)
(i)
Part (g)
(i)
Mark as follows:
- initial value of TopRatingSoFar (outside loop)
- loop
- compare rating
- update rating if appropriate
- keep note of title/array index
- output top title only
- correct field notation
Show text version of question
Question 1
Part (g)
(i)
Sheena wants to know the title of her favourite book. She plans to write code to search the array Book.
(i)
Write pseudocode to output the title of the book with the highest rating. For now, assume
that only one book in the Book array has the highest rating.
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
.......................................................................................................................................[6]
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 9691_w15_qp_22.pdf
