Past-paper question · 2017 May-June · Paper 22 · Q2(a)

Question 2(a) 2017 · May-June · Paper 22 · 4 marks

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

Official answer for Question 2

Part (a)

Question 4

✓
Input three numbers
✓
(1)
✓
-
✓
Attempt to select largest number
✓
(1)
✓
-
✓
Working method
✓
(1)
✓
-
✓
print out largest number
✓
(1)
✓
-
✓
Sample algorithm
✓
INPUT Num1, Num2, Num3
✓
IF (Num1 > Num2) AND (Num1 > Num3) THEN PRINT Num1
✓
ENDIF
✓
IF (Num2 > Num1) AND (Num2 > Num3) THEN PRINT Num2
✓
ENDIF
✓
IF (Num3 > Num1) AND (Num3 > Num2) THEN PRINT Num3
✓
ENDIF
✓
or
✓
INPUT Num1
✓
Big
✓
Num1
✓
INPUT Num2, Num3
✓
IF Num2 > Big THEN Big
✓
Num2 ENDIF
✓
IF Num3 > Big THEN Big
✓
Num3 ENDIF
✓
PRINT Big

Mark scheme 2210_s17_ms_22.pdf →

Show text version of question

Question 2

Part (a)

Write an algorithm to input three different numbers, and then output the largest number. Use either pseudocode or a flowchart.

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...............................................................................................................................................[4]

Topic relevance

Why this question appears here

98% assigned-topic match · Algorithm design and problem-solving

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

Keep practising this topic