Past-paper question · 2012 May-June · Paper 22 · Q3(c)

Question 3(c) 2012 · May-June · Paper 22 · 8 marks

Original past-paper question for 3(C)
Original past-paper question for 3(C)
Original past-paper question for 3(C)
Reveal official mark-scheme answer

The answer for this question is in the official mark scheme: open the mark scheme.

Mark scheme 9691_s12_ms_22.pdf →

Show text version of question

Question 3

Part (c)

Question 3

[6]

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.

[2]
Topic relevance

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

Keep practising this topic