Note AcademyNote Academy

Computer Science · May / June 2025 · Paper 1 TZ2 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] Ximena Alba [0] 5 [1] Boris Mount [1] 88 [2] Hugh Parr [2] 45 [3] Arjinder Singh [3] 75 [4] Mei Chen [4] 59 … … [199] Tammy Teller [199] 51 The one-dimensional integer array GRADES will be used to store the grades awarded to students based on their examination marks. In Figure 1, Boris Mount scored 88 marks. His grade will be stored in GRADES[1]. 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.