Computer Science · May / June 2023 · Paper 2 HL · Question 16
IBCS
As printed in the paper
The question as text
16. Once a month the real estate business organizes an open day for a particular house. Interested clients can sign up by giving their name and phone number to the real estate business. This information is stored in a list node ClientNode as follows. public class ClientNode { private String name; private String phone; private boolean attended; private ClientNode next; public ClientNode (String aName, String aPhone) { this.name = aName; this.phone = aPhone; this.attended = false; this.next = null; } public String getName() { return this.name; } public String getClient() { return this.name+" "+this.phone; } public void setAttended() { attended = true; } public ClientNode getNext() { return this.next; } public void setNext(ClientNode nextNode) { this.next = nextNode; } }
Read automatically from the paper; the printed page above is exact.
Show the answer and mark scheme
16(a)[2]
16(b)[3]
16(c)[5]
16(d)[4]
16(e)[6]
Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.

