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

Question 6(a) 2023 · October-November · Paper 22 · 5 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 correct column, max five

Question 5

✓
Value
✓
Average
✓
Total
✓
Count
✓
OUTPUT
✓
0
✓
0

Question 25

Question 25

Question 1

Question 35

Question 60

Question 2

Question 3

Question 63

Question 3

✓
0

Question 21

✓
Total is 63
✓
Average is 21
✓
0
✓
0

Question 57

Question 57

Question 1

Question 20

Question 77

Question 2

Question 25

✓
102

Question 3

Question 18

✓
120

Question 4

✓
0

Question 30

✓
Total is 120
✓
Average is 30
✓
0
✓
0
✓
−1

Mark scheme 2210_w23_ms_22.pdf →

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

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

Keep practising this topic