Past-paper question · 2014 October-November · Paper 31 · Q6(b)(i)

Question 6(b)(i) 2014 · October-November · Paper 31 · 2 marks

Original past-paper question for 6(B)(I)
Original past-paper question for 6(B)(I)
Original past-paper question for 6(B)(I)
Reveal official mark-scheme answer Official mark-scheme answer for 6(B)(I)

Official answer for Question 6

Part (b)

(i)

Part (b)

(i)

Code optimisation

✓
the process of taking the final executable code produced by the compiler and
✓
changing it in some way

Question 1

✓
in order that it will use fewer resources // less memory

Question 1

✓
Refuse: reduced in size
✓
it will execute faster

Question 1

✓
removes redundant code

Question 1

✓
[max 2]

Mark scheme 9691_w14_ms_31.pdf →

Show text version of question

Question 6

Part (b)

(i)

Question 6

The following are the first few lines of a source program written in a high-level language which is

about to be translated by the language compiler.

// invoicing program // program written 21 Oct 2014 DECLARE i : INTEGER; DECLARE Customer(40) : STRING; DECLARE Address: STRING; CONSTANT DiscountRate = 5;

// start of main program CALL InitialiseCustomerData REPEAT … … … The final stage of compilation is code optimisation.

(i)

Explain what is meant by code optimisation.

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

.......................................................................................................................................[2]

Topic relevance

Why this question appears here

71% assigned-topic match · Data types and structures › Data types and records

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_w14_qp_31.pdf

Keep practising this topic