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

Question 7(c)(ii) 2025 · February-March · Paper 22 · 1 mark

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

Official answer for Question 7

Part (c)

(ii)

✓
One mark, for example:

Question 1

✓
Only tests for A, S, and M; any other input is assumed to be D (for division)
✓
Divide by 0 error (if D and 0 are entered)
✓
Wrong data type e.g. character instead of number
✓
No data entered (enter without a preceding value)
✓
If Yes/yes entered the algorithm stops
✓
No input prompts.
✓
Question
✓
Answer
✓
Marks

Mark scheme 0478_m25_ms_22.pdf →

Show text version of question

Question 7

Part (c)

(ii)

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.

(ii)

Identify one more error related to inputs when the algorithm is run.

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

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

[1]

Question 8

, ,

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

Keep practising this topic