Câu 45: PCAP: Certified Associate in Python Programming
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, 2]? (Choose two.)
Nội dung câu hỏi
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, 2]? (Choose two.)
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. self.queue.append(self.get_last() + 1) — đáp án hiện tại
- B. self.queue.append(get_last() + 1)
- C. self.queue.append(self.queue[-1] + 1) — đáp án hiện tại
- D. queue.append(self.get_last() + 1)
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.
Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.