Note AcademyNote Academy

Computer Science · May / June 2020 · Paper 22 · Question 3

0478

As printed in the paper

Show the answer and mark scheme
  • 3(a)[4]

    One mark for error and correction

    Line 1 HighestMark ← 0

    Line 7 INPUT Mark[Count]

    Line 10 HighestMarkStudents ← HighestMarkStudents + 1

    Line 14 HighestMark ← Mark[Count]

  • 3(b)[6]

    Any six from:

    Add variable LowestMark …

    … Set this to a high value for example 100

    Add variable LowestMarkStudents …

    … Set this to zero

    Check if Mark[Count] = LowestMark …

    … True – add 1 to LowestMarkStudents

    Check if Mark[Count] < LowestMark …

    … True – set LowestMarkStudenta to 1 and set LowestMark to Mark[Count]

    Add extra output statement

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