CertyRush
Đang tải...
C CertyRush
Câu hỏi free preview

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.)

Minh họa câu hỏi

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.

  1. A. self.queue.append(self.get_last() + 1) — đáp án hiện tại
  2. B. self.queue.append(get_last() + 1)
  3. C. self.queue.append(self.queue[-1] + 1) — đáp án hiện tại
  4. 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.

Câu hỏi liền kề