Past-paper question · 2025 May-June · Paper 23 · Q4(b)(ii)

Question 4(b)(ii) 2025 · May-June · Paper 23 · 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, max five

Question 5

✓
MP1
✓
Appropriate condition-controlled loop
✓
MP2
✓
Password input to a variable
✓
MP3
✓
Use of LENGTH function to find password length
✓
MP4
✓
Selection statement to check password length is at least 12
✓
MP5
✓
Error message if length incorrect inside loop
✓
MP6
✓
Correct loop termination for password of correct length.
✓
For example,
✓
// Variable declarations are not required for this question
✓
REPEAT
✓
INPUT Password
✓
IF LENGTH(Password) < 12
✓
THEN
✓
OUTPUT "Password too short, please try again"
✓
ENDIF
✓
UNTIL LENGTH(Password) >= 12
✓
0478/23
✓
Cambridge IGCSE – Mark Scheme
✓
May/June 2025
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 0478_s25_ms_23.pdf →

Show text version of question

Question 4

Part (b)

(ii)

A
password system requires all new passwords to contain at least 12 characters.

(ii)

Write the pseudocode to allow a new password to be entered and to ensure that it

contains at least 12 characters. The password is re-input until it meets this requirement. Use an appropriate error message for inputs that do not meet the requirement.

You do not need to declare any variables for this algorithm.

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

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

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

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

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

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

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

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

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

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

[5]

Question 7

, ,

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

Keep practising this topic