Note AcademyNote Academy

Computer Science · Oct / Nov 2021 · Paper 21 · Question 4

0478

As printed in the paper

The question as text

The algorithm shown by this flowchart allows the input of examination marks for a class of students. A mark of –1 ends the process. If a mark is 80 or over then a distinction grade is awarded. The number of distinctions for the whole class is calculated. If this is over 50% of the class, the class is awarded a highly commended certificate. START END Yes IS Mark = –1? INPUT Mark Counter ← 0 Distinction ← 0 Counter ← Counter + 1 OUTPUT "Highly Commended" IS Mark >= 80? IS Award > 0.5? Distinction ← Distinction + 1 No No No Yes Yes Award ← Distinction/Counter 13 Complete a trace table for the algorithm using this input data: 88, 74, 60, 90, 84, 87, 95, 72, 84, 66, –1 Counter Distinction Mark Award OUTPUT [5]

Read automatically from the paper; the printed page above is exact.

Show the answer and mark scheme

One mark for each correct column

Counter Distinction

Award

OUTPUT

0

0

1

1

88

2

74

3

60

4

2

90

5

3

84

6

4

87

7

5

95

8

72

9

6

84

10

66

-1

0.6

Highly Commended

Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.