Note AcademyNote Academy

Computer Science · May / June 2018 · Paper 2 HL · Question 18

IBCS

As printed in the paper

The question as text

18. Full details of the customers are stored as objects of the Customer class. This class is partially shown below: public class Customer { private String memberId; private String email; //email address (assume only 1 per customer) public Customer(String a, String b) { memberId = a; email = b; } public String getMemberId() { return memberId; } public String getEmail() { return email; } } The objects can be accessed through the linked list allCustomers which is declared in the main (driver) class as follows: LinkedList<Customer> allCustomers = new LinkedList<Customer>();

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

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

  • 18(b)[6]

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