This flowchart inputs the marks gained in an examination. An input of –1 ends the routine. [Flowchart Diagram] Complete the trace table for the mark input data: 50, 70, 65, 30, 95, 50, 55, 85, 65, 35, −1, 45
- Total | Count | Distinction | Mark | OUTPUT ------|-------|-------------|------|-------------------------- 0 | 0 | 0 | 50 | | | | 70 | | | | 65 | | | | 30 | | | | 95 | | | | 50 | | | | 55 | | | | 85 | | | | 65 | | | | 35 | | | | −1 | | | | 45 |[4]
This question uses a diagram from the original paper, which isn't shown here. Open the full paper from the past papers archive to see it.
Mark scheme
Marking points from the official mark scheme (May/June 2019). The mark or mark type is shown in brackets.
- [4] 1 mark for Total and Count columns both correct.
- [4] 1 mark for each correct column apart from Total and Count.
- [4] If no marks awarded allow 1 mark for initialisation of Total, Count and Distinction, set to zero.
- [4] (Table with correct values showing trace and output) Total | Count | Distinction | Mark | OUTPUT ------|-------|-------------|------|-------------------------- 0 | 0 | 0 | 50 | 50 | 1 | 0 | 70 | 120 | 2 | 0 | 65 | 185 | 3 | 0 | 30 | 215 | 4 | 0 | 95 | 310 | 5 | 1 | 50 | 360 | 6 | 1 | 55 | 415 | 7 | 1 | 85 | 500 | 8 | 2 | 65 | 565 | 9 | 2 | 35 | 600 | 10 | -1 | | Number of Distinctions 2 | | | | Average Mark 60
Write your answer and get it marked
On Oracle Prep you can write or photograph your own answer and have it marked by AI against this mark scheme, with feedback on what you missed.
Sign up free →