Past-paper question · 2016 May-June · Paper 21 · Q2

Question 2 2016 · May-June · Paper 21 · 0 marks

Original past-paper question for 2
Reveal official mark-scheme answer Official mark-scheme answer for 2

Official answer for Question 2

(i)

1 mark for each change

✓
Change variable name in every instance as needs to be meaningful e.g. Large
✓
Set this variable to a low value
✓
line 5: change comparison from < to >
[3]

(ii)

3 marks maximum, 1 mark for each change correctly included.

Question 1

✓
Large = 0

Question 2

✓
Counter = 0

Question 3

✓
REPEAT

Question 4

✓
INPUT Num

Question 5

✓
IF Num > Large THEN Large = Num

Question 6

✓
Counter = Counter + 1

Question 7

✓
UNTIL Counter = 10

Question 8

✓
PRINT Large
[3]

Mark scheme 2210_s16_ms_21.pdf →

Show text version of question

Question 2

Read this section of program code that inputs 10 positive numbers and then outputs the smallest number input.

1 Small = 1000 2 Counter = 0

Topic relevance

Why this question appears here

99% assigned-topic match · Programming › Programming concepts

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 2210_s16_qp_21.pdf

Keep practising this topic