Which of the following lines of code will work flawlessly when put independently inside the add_new () method in order to make the snippet's output equal to [0, 1, 21 ? (Select two answers)
A. self.queue.append(self.get last()+1)
B. queue.append(self.get last () + 1)
C. self.queue.append(get_Iast() + 1)
D. self.queue.append(self.queue[+1]
Answer:A
Which of the following lines of code will work flawlessly when put independently inside the add_new () method in order to make the snippet's output equal to [0, 1, 21 ? (Select two answers)
A. self.queue.append(self.get last()+1) B. queue.append(self.get last () + 1) C. self.queue.append(get_Iast() + 1) D. self.queue.append(self.queue[+1]