Câu 22: PCPP-32-101: Certified Professional in Python Programming 1
Analyze the following snippet and decide whether the code is correct and/or which method should be distinguished as a class method.
Nội dung câu hỏi
Analyze the following snippet and decide whether the code is correct and/or which method should be distinguished as a class method.
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. There is only one initializer, so there is no need for a class method
- B. The getNumberOfCrosswords() method Should be decorated with @classmethod — đáp án hiện tại
- C. The code is erroneous
- D. The getNumberOfCrosswords() and isSolved methods should be decorated with @classmethod
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.