Question 6(a) 2023 · October-November · Paper 22 · 5 marks
Reveal official mark-scheme answer
Official answer for Question 6
Part (a)
Question 5
Question 25
Question 25
Question 1
Question 35
Question 60
Question 2
Question 3
Question 63
Question 3
Question 21
Question 57
Question 57
Question 1
Question 20
Question 77
Question 2
Question 25
Question 3
Question 18
Question 4
Question 30
Show text version of question
Question 6
Part (a)
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 (a)
Complete the trace table for the input data:
25, 35, 3, 0, 57, 20, 25, 18, 0, –1, 307, 40, 0
Value Average Total Count OUTPUT
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_w23_qp_22.pdf
