Past-paper question · 2021 May-June · Paper 21 · Q4(a)

Question 4(a) 2021 · May-June · Paper 21 · 3 marks

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

Official answer for Question 4

Part (a)

✓
One mark per mark point (Max 3)

Question 3

✓
MP1
✓
Marks input are stored in the array Score[]
✓
MP2
✓
Marks are checked against a range of boundaries // allow example
✓
MP3
✓
… and a matching grade is assigned to each mark that has been input
✓
MP4
✓
… then stored in the array Grade[]…
✓
MP5
✓
… at the same index as the mark input
✓
MP6
✓
The algorithm finishes after 30 marks have been input // allows 30 scores to be entered

Mark scheme 2210_s21_ms_21.pdf →

Show text version of question

Question 4

Part (a)

Question 4

The pseudocode algorithm shown has been written by a teacher to enter marks for the students in

her class and then to apply some simple processing.

Count 0 ← REPEAT INPUT Score[Count] IF Score[Count] >= 70 THEN Grade[Count] "A" ← ELSE IF Score[Count] >= 60 THEN Grade[Count] "B" ← ELSE IF Score[Count] >= 50 THEN Grade[Count] "C" ← ELSE IF Score[Count] >= 40 THEN Grade[Count] "D" ← ELSE IF Score[Count] >= 30 THEN Grade[Count] "E" ← ELSE Grade[Count] "F" ← ENDIF ENDIF ENDIF ENDIF ENDIF Count ← Count + 1 UNTIL Count = 30

Part (a)

Describe what happens in this algorithm.

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

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

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

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

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

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

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

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

[3]

Question 9

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

Keep practising this topic