Note AcademyNote Academy

Computer Science · Oct / Nov 2025 · Paper 2 HL · Question 17

IBCS

As printed in the paper

The question as text

17. A lawyer’s rank depends on the number of cases they have won. The information about the number of cases won by each lawyer in the last four years is stored in a 2D array, casesWon, as shown in Figure 11. Rows represent the number of cases won by a lawyer, and columns represent the year. Figure 11: An excerpt from the 2D array, casesWon Year 2024 2023 2022 2021 LawyerID 1 7 5 8 2 2 3 6 7 7 3 1 9 8 2 4 0 2 2 1 5 8 6 5 1 ... ... ... ... ... 20 ... ... ... ... A lawyer’s rank is set to 1 only if the number of cases won by the lawyer in any two consecutive years is greater than 6. For example: The rank for lawyer 1 will remain 0, whereas the rank for lawyer 2 will be set to 1 as the number of cases they won is greater than 6 in both 2022 and 2021.

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

Show the answer and mark scheme
  • 17(a)[7]

  • 17(b)[3]

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