Past-paper question · 2025 February-March · Paper 22 · Q7(c)(i)

Question 7(c)(i) 2025 · February-March · Paper 22 · 3 marks

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

Official answer for Question 7

Part (c)

(i)

✓
One mark per mark point

Question 3

✓
MP1
✓
Include two process boxes
✓
… after the Answer and Operator input boxes
✓
MP2
✓
MP3
✓
Use of UCASE in both boxes to change the input given to upper case.
✓
OR
✓
One mark per mark point
✓
MP4
✓
Change the condition in all the (4) decision boxes
✓
… for the variables Answer and Operator
✓
MP5
✓
MP6
✓
Using OR e.g. OR Answer = 'y' and OR Operator = 'a'

Mark scheme 0478_m25_ms_22.pdf →

Show text version of question

Question 7

Part (c)

(i)

Question 7

This flowchart represents an algorithm.

START

OUTPUT "Continue?"

INPUT Answer

No IS Answer = Yes 'Y' ?

INPUT STOP Value1

INPUT Operator

Yes IS Operator = INPUT 'A' ? Value2 OUTPUT Value1 + No Value2

Yes IS Operator = 'S' ? OUTPUT Value1 – No Value2

Yes IS Operator = No 'M' ? OUTPUT OUTPUT Value1 * Value1 /

Value2 Value2

Question 7

, , There are problems with the given algorithm. If the lower-case letter ‘y’ is entered for Answer, the algorithm stops and if a lower-case letter is entered for Operator, the algorithm gives an incorrect output.

(i)

Explain how you would change the algorithm to prevent the problems described.

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

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

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

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

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

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

[3]
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 0478_m25_qp_22.pdf

Keep practising this topic