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

Question 6(b) 2025 · May-June · Paper 23 · 3 marks

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

Official answer for Question 6

Part (b)

✓
One mark per mark point, max three

Question 3

✓
MP1
✓
Each letter of a word is checked to see if it is A, E, I, O or U / a vowel
✓
MP2
✓
Vowels are changed to the null string using a case statement
✓
MP3
✓
Each letter or null string is individually stored in an array
✓
MP4
✓
All consonants are output.

Mark scheme 0478_s25_ms_23.pdf →

Show text version of question

Question 6

Part (b)

Question 6

This pseudocode represents an algorithm.

DECLARE Store : ARRAY[1:100] OF CHAR DECLARE Word : STRING DECLARE Index : INTEGER DECLARE Letter : CHAR INPUT Word FOR Index 1 TO LENGTH(Word) Letter SUBSTRING(Word, Index, 1) CASE OF Letter 'A' : Letter ""

'E' : Letter "" 'I' : Letter "" 'O' : Letter "" 'U' : Letter "" ENDCASE Store[Index] Letter NEXT Index FOR Index 1 TO LENGTH(Word) IF Store[Index] <> "" THEN OUTPUT Store[Index] ENDIF

NEXT Index

Question 9

, ,

Part (b)

Describe the processes in the algorithm.

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

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

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

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

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

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

[3]

Question 10

, ,

Topic relevance

Why this question appears here

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

Keep practising this topic