Question 9(b)(ii) 2013 · October-November · Paper 13 · 1 mark
Reveal official mark-scheme answer
Official answer for Question 9
Part (b)
(ii)
(ii)
Colour (5)
Show text version of question
Question 9
Part (b)
(ii)
Question 9
The array Colour stores colours typed in by the user. For
Examiner's Use The array is treated as a queue. The first four colours entered are YELLOW, PURPLE, For WHITE, PINK in this order. Examiner's Use
Colour
Question 7
Question 6
Question 5
4 PINK 3 WHITE 2 PURPLE 1 YELLOW
(ii)
A new colour, ORANGE, is then added.
Into which array element would ORANGE be stored?
Question 14
Question 15
Question 16
reasonable effort has been made by the publisher (UCLES) to trace copyright holders, but if any items requiring clearance have unwittingly been included, the publisher will be pleased to make amends at the earliest possible opportunity.
University of Cambridge International Examinations is part of the Cambridge Assessment Group. Cambridge Assessment is the brand name of University of Cambridge Local Examinations Syndicate (UCLES), which is itself a department of the University of Cambridge.
Why this question appears here
71% 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_w13_qp_13.pdf
