Note AcademyNote Academy

Computer Science · Oct / Nov 2020 · Paper 2 HL · Question 15

IBCS

As printed in the paper

The question as text

15. The management of the company will launch a new scheme to give every 50th car driver and every 60th motorcyclist a free coffee voucher. The code for printing this voucher has already been created and is activated by calling the static method Vouchers.printCoffeeVoucher(). A getKind() method has already been added to the Vehicle class, which returns a char value indicating whether it is a car (c) or a motorbike (m).

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

Show the answer and mark scheme
  • 15(a)[5]

  • 15(b)[3]

  • 15(c)[6]

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