Question 2(b) 2010 · May-June · Paper 32 · 3 marks
Reveal official mark-scheme answer

Official answer for Question 2
Part (b)
Part (b)
-Insert first value/36721
- Read next value and insert in correct place in list/36721, 53967
- Repeat until no more values/24378, 36721, 53967
Question 32
Show text version of question
Question 2
Part (b)
Question 2
A company uses a computerised payroll system. Details of the work done by employees each
week are stored serially in a transaction file. This transaction file is used to create the payroll at the end of the week. It has to be sorted into the same order as the master file.
Part (b)
The following ID numbers are to be sorted into numerical order, with the smallest first.
Describe an algorithm for implementing an insertion sort on the above data.
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_s10_qp_32.pdf
