Past-paper question · 2023 October-November · Paper 21 · Q6(a)

Question 6(a) 2023 · October-November · Paper 21 · 1 mark

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)

✓
Displaying/sort 10 names in alphabetical order 9

Question 1

✓
Cambridge IGCSE – Mark Scheme
✓
0478/21
✓
October/November 2023
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 0478_w23_ms_21.pdf →

Show text version of question

Question 6

Part (a)

Question 6

An algorithm has been written in pseudocode.

01 DECLARE A[1:10] : STRING 02 DECLARE T : STRING 03 DECLARE C, L : INTEGER 04 L 10 05 FOR C 1 TO L 06 OUTPUT "Please enter name " 07 INPUT A[C] 08 NEXT C 09 FOR C 1 TO L 10 FOR L 1 TO 9 11 IF A[L] > A[L + 1] 12 THEN 13 T A[L] 14 A[L] A[L + 1] 15 A[L + 1] T 16 ENDIF 17 NEXT L 18 NEXT C 19 FOR C 1 TO L 20 OUTPUT "Name ", C, " is ", A[C] 21 NEXT C

Part (a)

State the purpose of this pseudocode algorithm.

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

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

[1]

Question 5

Topic relevance

Why this question appears here

83% 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_w23_qp_21.pdf

Keep practising this topic