Certified Entry-Level Python Programmer (PCEP-30-02) — Question 64
Which of the following expressions evaluate to zero? (Choose two.)
Answer options
- A. 2 / –3 * 6 + 4
- B. –3 / 2 * 4 + 1
- C. 3 ** 2 // 3 / 3 – 1
- D. 2 // 2 * 2 + 3
Correct answer: A, C
Explanation
Option A evaluates to zero because the negative multiplication and addition cancel out. Option C also results in zero due to the integer division and subtraction leading to a net result of zero. The other options do not simplify to zero as they produce different numerical results.