Note AcademyNote Academy

Computer Science · May / June 2019 · Paper 2 HL · Question 16

IBCS

As printed in the paper

The question as text

16. An Event has been instantiated with 2 qualifying heats for a total of 11 swimmers. Event free100 = new Event("100 m free style",2); The swimmers were added to the two Race arrays and after the races, their times were recorded as shown in the table. (For the purpose of this question, the name represents the full swimmer object.) races[0] swimmer Andy Bella Chris Duc Eric null null null time 34.2 33.8 40.9 36.3 34.6 0 0 0 [0] [1] [2] [3] [4] [5] [6] [7] races[1] swimmer Fiona George Hetty Idan Jo Karl null null time 41.2 36.6 37.6 35.2 48.8 37.2 0 0 [0] [1] [2] [3] [4] [5] [6] [7] The method fillFinals() will select the 8 fastest swimmers, in ascending order of time, from both swimmer arrays and copy them to the swimmer array in the finals race.

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

Show the answer and mark scheme
  • 16(a)[3]

  • 16(b)[6]

  • 16(c)(i)[1]

  • 16(c)(ii)[4]

  • 16(d)[6]

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