Note AcademyNote Academy

Computer Science · May / June 2025 · Paper 1 TZ3 SL · Question 11

Adapt for 2027Processing arrays with loops and conditions is taught, but the algorithms must be written in Python or Java instead of pseudocode.

IBCS

As printed in the paper

The question as text

11. There are 200 students in a school. Their names are held in the one-dimensional string array STUDENTS. The one-dimensional integer array MARKS stores marks (0–100 inclusive) that students scored in an examination. Figure 1: Example data stored in the two arrays STUDENTS and MARKS STUDENTS MARKS [0] Diego Smith [0] 47 [1] Eloise Abadie [1] 9 [2] Helen Weber [2] 94 [3] Paul Alley [3] 75 [4] Robert Wang [4] 59 … … [199] Isabella Teller [199] 44 The one-dimensional integer array GRADES will be used to store the grades awarded to students based on their examination marks. In Figure 1, Robert Wang scored 59 marks. His grade will be stored in GRADES[4]. Consider the following algorithm that the school currently uses for awarding grades: loop K from 0 to 199 GRADES[K] = 1 + (MARKS[K] div 10) if GRADES[K] >= 7 then GRADES[K] = 7 end if end loop

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

Show the answer and mark scheme
  • 11(a)(i)[1]

  • 11(a)(ii)[1]

  • 11(a)(iii)[1]

  • 11(a)(iv)[1]

  • 11(b)[4]

  • 11(c)[7]

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