Past-paper question · 2007 May-June · Paper 1 · Q6(a)
Question 6(a) 2007 · May-June · Paper 1 · 3 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 6
Part (a)
Question 6
D=1
INPUT X, E B=E C=E FOR I = 1 TO (X-1) INPUT A IF A>B THEN B = A ELSE IF A < C THEN C = A END IF END IF D=D+1 E=E+A NEXT F = E/D OUTPUT B, C, F END
Part (a)
State the output values of B, C and F for the following input test data
4, 6, 3, 7, 0
[3]
Topic relevance
Why this question appears here
71% assigned-topic match · Programming › Programming basics
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_s07_qp_1.pdf
