Note AcademyNote Academy

Computer Science · Oct / Nov 2020 · Paper 1 SL · Question 9

Adapt for 2027Searching and processing lists is taught, but the old pseudocode collections must be rewritten as Python lists or Java ArrayLists.

IBCS

As printed in the paper

The question as text

9. A school has 100 students. All student names (strings) and student ID numbers (five-digit integers) are held in two separate one-dimensional arrays named SID and SNAMES. SID SNAMES [0] 10011 [0] Aron Zucker [1] 10002 [1] Cary Armand [2] 11876 [2] Pia Baranger [3] 10122 [3] Peter Bow [4] 22103 [4] John Buffet … … … … [99] 32000 [99] Evan Apples For example, student Pia Baranger has ID number 11 876. A binary search algorithm is not used to find a particular name in array SNAMES.

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

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

  • 9(b)[4]

  • 9(c)[3]

  • 9(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.