Câu 117: PCEP-30-02: PCEP – Certified Entry-Level Python Programmer
Analyze the following code fragments that assign a boolean value to the variable even?
Nội dung câu hỏi
Analyze the following code fragments that assign a boolean value to the variable even?
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. All three are correct, but Code-2 is preferred.
- B. All three are correct, but Code-3 is preferred. — đáp án hiện tại
- C. Code-3 has a syntax error because you attempt to assign a number to even.
- D. All three are correct, but Code-1 is preferred.
- E. Code-2 has a syntax error because you cannot have True and False literals in the conditional expression.
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.