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

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

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

Official answer for Question 4

Part (c)

✓
Any three correct statements (Max 3) e.g.

Question 3

✓
MP1 Add an input facility to allow teachers to enter the class size
✓
MP2 Add a variable to store the input class size
✓
MP3 Use the class size variable as the terminating condition for the loop
✓
MP4 Make sure the arrays are sufficiently large to accommodate the largest possible class size
✓
Question
✓
Answer
✓
Marks

Mark scheme 2210_s21_ms_21.pdf →

Show text version of question

Question 4

Part (c)

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 (c)

Describe how you could change the algorithm to allow teachers to use it with any size of

class.

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

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

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

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

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

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

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

[3]

Question 10

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