Computer Science · Oct / Nov 2019 · Paper 2 HL · Question 17
IBCS
As printed in the paper
The question as text
17. The array line in POSline is now replaced by a singly linked list list of CartNode objects. The class CartNode has been defined as follows. public class CartNode { private Cart myCart; private CartNode next; public CartNode(Cart aCart) { this.myCart = aCart; this.next = null; } public Cart getCart(){ return this.myCart; } public CartNode getNext(){ return this.next; } public void setNext(CartNode nextNode) { this.next = nextNode; } }
Read automatically from the paper; the printed page above is exact.
Show the answer and mark scheme
17(a)[2]
17(b)[4]
17(c)[2]
17(d)[2]
17(e)[6]
17(f)[4]
Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.

