Computer Science · Oct / Nov 2023 · Paper 1 SL · Question 12
Adapt for 2027Averages, counting and binary search over arrays are taught, but the algorithms must be written in Python or Java instead of pseudocode.
IBCS
As printed in the paper
The question as text
12. There were 10 gymnasts who took part in a gymnastics competition. The names and the scores for all competitors were sorted in alphabetical order and stored in two arrays, NAMES and SCORES (see Figure 1). Figure 1: Data held in the NAMES array and the SCORES array NAMES SCORES [0] Adams, Lana [0] 7.8 [1] Allen, Mary [1] 6.5 [2] Baker, Lilly [2] 5.4 [3] Brown, Lea [3] 9.2 [4] Fox, Tea [4] 6.2 [5] Labar, Tanya [5] 8.5 [6] Lee, Mae [6] 8.8 [7] Miller, Ann [7] 5.1 [8] Palmer, Ella [8] 6.4 [9] Wood, Sarah [9] 9.1 For example, the score awarded to Mary Allen was 6.5 .
Read automatically from the paper; the printed page above is exact.
Show the answer and mark scheme
12(a)[1]
12(b)[3]
12(c)[4]
12(d)[7]
Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.

