Question 3(c) 2012 · May-June · Paper 21 · 8 marks
Reveal official mark-scheme answer
The answer for this question is in the official mark scheme: open the mark scheme.
Show text version of question
Question 3
Part (c)
Question 3
Question 6
2 Philipe is trying different ways of designing the process of entering data into an array. For He declares a variable called ArraySize and sets it to 3. Examiner's Use He declares an array Number[ArraySize].
He then writes the following pseudocode.
Element ← 1 WHILE Element < ArraySize DO INPUT Number[Element] Element ← Element + 1 ENDWHILE
Part (c)
Philipe is not convinced that a WHILE loop was the best choice for this pseudocode. For
Instead he considers using a REPEAT...UNTIL loop. Examiner's Use Rewrite the corrected pseudocode using a REPEAT...UNTIL loop.
Why this question appears here
92% 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_s12_qp_21.pdf
