Past-paper question · 2022 May-June · Paper 23 · Q4(a)

Question 4(a) 2022 · May-June · Paper 23 · 7 marks

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

Official answer for Question 4

Part (a)

✓
One mark per mark point, max seven

Question 7

✓
MP1
✓
correct In column
✓
MP2
✓
correct Logic column
✓
MP3
✓
correct Test column
✓
MP4
✓
correct Number column
✓
MP5
✓
correct Store[Count] column
✓
MP6
✓
correct Count and Limit columns
✓
MP7
✓
correct Out and OUTPUT columns
✓
Store
✓
In
✓
Logic
✓
Test
✓
Number
✓
Count
✓
Limit
✓
Out
✓
OUTPUT
✓
[Count]
✓
0

Question 5

Question 1

✓
TRUE

Question 2

Question 9

Question 3

✓
FALSE

Question 2

✓
TRUE

Question 2

Question 5

Question 3

Question 5

Question 1

Question 3

✓
TRUE

Question 2

Question 8

✓
FALSE

Question 4

✓
TRUE

Question 2

Question 10

✓
FALSE

Question 5

✓
TRUE

Question 2

Question 7

Question 3

Question 7

Question 2

✓
0

Question 5

Question 1

Question 7

✓
0478/23
✓
Cambridge IGCSE – Mark Scheme
✓
May/June 2022
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 0478_s22_ms_23.pdf →

Show text version of question

Question 4

Part (a)

Question 4

The pseudocode represents an algorithm.

The pre-defined function DIV gives the value of the result of integer division. For example, Y = 11 DIV 4 gives the value Y = 2

Count ←0 INPUT Limit FOR In ← ← 1 TO Limit Logic ← TRUE Test 2 INPUT Number REPEAT IF Number / Test = Number DIV Test

← THEN Logic FALSE ELSE Test ←Test + 1 ENDIF UNTIL NOT Logic OR Test >= Number DIV 2 IF Logic

← THEN

← Store[Count] Number Count Count + 1 ENDIF NEXT In FOR Out ← 0 TO Count - 1 OUTPUT Store[Out] NEXT Out

Part (a)

Complete the trace table for the algorithm using this input data:

5, 9, 5, 8, 10, 7

Store In Logic Test Number Count Limit Out OUTPUT [Count]

[7]

Question 9

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

Keep practising this topic