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

Question 6(a) 2025 · May-June · Paper 23 · 41 marks

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

Official answer for Question 6

Part (a)

✓
One mark per mark point

Question 5

✓
MP1
✓
Correct Word and Letter columns
✓
MP2
✓
Correct Index column
✓
MP3
✓
Correct Store(1, 3, 4, 6, 8) columns (consonants)
✓
MP4
✓
Correct Store(2, 5, 7) columns (vowels)
✓
MP5
✓
Correct OUTPUT Column
✓
Store[]
✓
Word
✓
Index
✓
Letter
[1]
[2]
[3]
[4]
[5]
[6]
[7]
[8]
✓
OUTPUT
✓
COMPUTER

Question 1

✓
C
✓
C

Question 2

✓
O

Question 3

✓
M
✓
M

Question 4

✓
P
✓
P

Question 5

✓
U

Question 6

✓
T
✓
T

Question 7

✓
E

Question 8

✓
R
✓
R

Question 1

✓
C

Question 2

Question 3

✓
M

Question 4

✓
P

Question 5

✓
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 6

Part (a)

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 (a)

Complete the trace table for the algorithm, using input data: COMPUTER

Store[] Word Index Letter

[1]
[2]
[3]
[4]
[5]
[6]
[7]

[8] OUTPUT

[5]
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