Past-paper question · 2022 May-June · Paper 21 · Q1(d)

Question 1(d) 2022 · May-June · Paper 21 · 5 marks

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

Official answer for Question 1

Part (d)

✓
One mark per mark point, max five

Question 5

✓
MP1
✓
input for sponsor’s name / name taken from previous data // input for message on plaque
✓
MP2
✓
both inputs correct with appropriate prompts // input for message on plaque correct with appropriate prompt and
✓
name taken from previous data
✓
MP3
✓
output of input(s) for confirmation …
✓
MP4
✓
… method for sponsor to confirm that the input(s) are correct
✓
MP5
✓
method to enable re-entry of message on plaque if errors made
✓
MP6
✓
charge of $200 acknowledged / charged / confirmed / displayed
✓
MP7
✓
(name and) message stored in arrays
✓
MP8
✓
array index incremented for next sponsor
✓
Task 3 – sponsoring a wooden plank
✓
Add an additional option to the program in Task 1 to enable the pier’s wooden planks to be sponsored. Separate data
✓
structures should be used to store the names of the individuals and the short messages they would like to have written on
✓
their brass plaque. An output would display everything that was input for the sponsor to confirm. If errors are found, the
✓
program should allow data to be re-entered. Once complete, the data is stored and the sponsor is charged $200.
✓
Example answer
✓
ArrayIndex 0 //initial array's index
✓
Check "N"
✓
WHILE Check <> "Y"
✓
OUTPUT "Enter your name"
✓
INPUT Name
✓
OUTPUT "Enter the message you would like on your brass plaque"
✓
INPUT Message
✓
OUTPUT "The data you have entered is, name: ", Name, " and your
✓
message for the plaque is: ", Message
✓
OUTPUT "Is this correct (Y or N)"
✓
INPUT Check
✓
IF Check <> "Y"
✓
THEN
✓
OUTPUT "The data entered is incorrect, please re-enter"
✓
ENDIF
✓
ENDWHILE
✓
0478/21
✓
Cambridge IGCSE – Mark Scheme
✓
May/June 2022
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 0478_s22_ms_21.pdf →

Show text version of question

Question 1

Part (d)

Part (d)

Write an algorithm to show how your program completes Task 3 assuming the option to

sponsor a wooden plank has been chosen, using pseudocode, programming statements or a flowchart. Details completed in Task 1 are not required.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Question 5

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[5]

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

Keep practising this topic