Note AcademyNote Academy

Computer Science · May / June 2024 · Paper 2 SL · Question 12

IBCS

As printed in the paper

The question as text

12. All Car objects have been read into a large unsorted array called allCars. A method is needed to show customers the range of available cars. This method should take the array allCars as a parameter and select Car objects from allCars so that every available brandModel is presented only once. You may assume that there are never more than 100 different types of cars (as identified by the variable brandModel).

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

Show the answer and mark scheme
  • 12(a)[2]

  • 12(b)[8]

  • 12(c)[5]

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