Past-paper question · 2022 February-March · Paper 22 · Q1(c)

Question 1(c) 2022 · February-March · Paper 22 · 6 marks

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

Official answer for Question 1

Part (c)

✓
One mark per mark point, max six

Question 6

✓
MP1
✓
loop through the number of holes played
✓
MP2
✓
for each hole work / loop through the number of players actually playing
✓
MP3
✓
for each player display their name
✓
MP4
✓
… prompt to enter the number of strokes played for the hole
✓
MP5
✓
… input the number of strokes twice
✓
MP6
✓
… validate both inputs are the same
✓
MP7
✓
… store the number of strokes in the appropriate array
✓
MP8
✓
… update the total score for that player
✓
MP9
✓
… prompt and input to ask if the player wants to see the number of strokes played so far
✓
MP10
✓
… check if required then output number of strokes
✓
Example Answer
✓
FOR Hole ← 1 TO NumberOfHoles
✓
FOR Player ← 1 TO NumberOfPlayers
✓
REPEAT
✓
OUTPUT PlayerName[Player], "Please enter the number of strokes played for hole ",
✓
Hole
✓
INPUT NumberStrokes
✓
OUTPUT PlayerName[Player], " please re-enter the number"
✓
INPUT NumberStrokesAgain
✓
UNTIL NumberStrokes = NumberStrokesAgain
✓
IF Player = 1
✓
THEN
✓
Player1[Hole] ← NumberStrokes
✓
Player1Total ← Player1Total + NumberStrokes
✓
OUTPUT "Do you want to see number total of strokes played so far Y/N? "
✓
INPUT SeeTotal
✓
IF SeeTotal = "Y"
✓
THEN
✓
OUTPUT "Total number of strokes so far ", Player1Total
✓
ENDIF
✓
ENDIF
✓
IF Player = 2
✓
0478/22
✓
Cambridge IGCSE – Mark Scheme
✓
February/March 2022
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 0478_m22_ms_22.pdf →

Show text version of question

Question 1

Part (c)

Question 1

All variables, constants and other identifiers must have meaningful names.

Part (c)

Write an algorithm for Task 2, using pseudocode, programming statements or a flowchart.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Question 5

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[6]

Question 6

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 0478_m22_qp_22.pdf

Keep practising this topic