Past-paper question · 2023 October-November · Paper 22 · Q6(b)

Question 6(b) 2023 · October-November · Paper 22 · 2 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 two

Question 2

✓
MP1
✓
to add together / find the average of a batch of numbers
✓
MP2
✓
the total and average are output (when the batch is complete/when
✓
0 is entered)
✓
MP3
✓
when 0 is entered a new batch is started.
✓
Cambridge IGCSE – Mark Scheme
✓
0478/22
✓
October/November
✓
PUBLISHED
✓
2023
✓
Question
✓
Answer
✓
Marks

Mark scheme 0478_w23_ms_22.pdf →

Show text version of question

Question 6

Part (b)

Question 6

The flowchart represents an algorithm that performs a process on groups of values that are input.

The algorithm will fail if the first value of any group is 0.

An input of –1 will terminate the algorithm.

START

Total 0 OUTPUT "Average is ", Average Count 0

INPUT OUTPUT Value "Total is ", Total

IS Yes Value = Average Total / Count 0 ?

No

IS Yes Value = STOP

  • 1 ?

No

Total Total + Value

Count Count + 1

Question 7

Part (b)

Describe the purpose of the algorithm.

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

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

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

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

[2]

Question 8

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

Keep practising this topic