Question 7(d)(ii) 2016 · May-June · Paper 32 · 1 mark
Reveal official mark-scheme answer
Official answer for Question 7
Part (d)
(ii)
(ii)
The lines that have the expression x + y
Show text version of question
Question 7
Part (d)
(ii)
Question 7
The following are the initial lines of a program written in a high-level language.
// scheduling program // program written 09 June 2015 DECLARE Counter : INTEGER ; DECLARE Jobs[1000] : STRING ; DECLARE Position[1000]: INTEGER ; CONSTANT ChangeRate = 5.0 ;
// start of main program CALL InitialiseGrid ; WHILE Counter < 1000 a = x + y ; b = x + y + 7 ;
This program is about to be translated by the language compiler. The final stage of the compilation process is to optimise the code.
(ii)
Suggest where in the given program optimisation may be possible.
...........................................................................................................................................
......................................................................................................................................
Question 20
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.
To avoid the issue of disclosure of answer-related information to candidates, all copyright acknowledgements are reproduced online in the Cambridge International Examinations Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download at www.cie.org.uk after the live examination series.
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_s16_qp_32.pdf
