Past-paper question · 2025 February-March · Paper 22 · Q4(b)(ii)

Question 4(b)(ii) 2025 · February-March · Paper 22 · 5 marks

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

Official answer for Question 4

Part (b)

(ii)

✓
One mark per mark point:

Question 5

✓
MP1
✓
Condition controlled loop used
✓
MP2
✓
Working input and re-input of value into declared variable
✓
MP3
✓
Use of selection/loop entry/exit condition to test if input is an integer
✓
MP4
✓
Appropriate use of error message
✓
MP5
✓
Working complete termination of loop
✓
Example:
✓
REPEAT
✓
INPUT Number
✓
IF MOD(Number, 1) <> 0
✓
THEN
✓
OUTPUT "Please try again"
✓
ENDIF
✓
UNTIL MOD(Number, 1) = 0
✓
Or
✓
INPUT Number
✓
WHILE MOD(Number, 1) <> 0 (DO)
✓
OUTPUT "Please try again"
✓
INPUT Number
✓
ENDWHILE
✓
Cambridge IGCSE – Mark Scheme
✓
0478/22
✓
February/March 2025
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 0478_m25_ms_22.pdf →

Show text version of question

Question 4

Part (b)

(ii)

A
value input into a computer system must be an integer.

(ii)

Write the pseudocode for an algorithm to allow a number to be input into an appropriate

variable and check whether the number is an integer. If the number is an integer, it is accepted. If the number is not an integer, an error message is output. Re-input of the number is required until a valid number is input.

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

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

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

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

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

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

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

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

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

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

[5]

Question 4

, ,

Topic relevance

Why this question appears here

98% 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