Free PCEP-30-02 Exam Braindumps
PCEP - Certified Entry-Level Python Programmer Questions 86–90 (page: 19)

Updated On: 10-Feb-2026

What is the expected output of the following code?
x = 1 / 2 + 3 // 3 + 4 ** 2
print(x)

  1. 17
  2. 17.5
  3. 8.5
  4. 8

Answer(s): B



You develop a Python application for your company. You have the following code.

Which of the following expressions is equivalent to the expression in the function?

  1. (a + b) * (c - d)
  2. (a + (b * c)) - d)
  3. (a + ((b * c) - d)
  4. None of the above.

Answer(s): D



What is the output of the following code?

  1. The output cannot be predicted.
  2. 2
  3. The program will cause an error.
  4. 1

Answer(s): B



What is the expected output of the following code?
x = 28
y = 8
print(x / y)
print(x // y)
print(x % y)


  1. 1 | 3.0
    2 | 3
    3 | 2

  2. 1 | 3.5
    2 | 3
    3 | 4

  3. 1 | 3
    2 | 3.5
    3 | 4

  4. 1 | 3.5
    2 | 3.5
    3 | 2

Answer(s): B



Which of the following statements are true? (Choose two.)

  1. The result of the / operator is always an integer value.
  2. The ** operator uses right-sided binding.
  3. The right argument of the % operator cannot be zero.
  4. Addition precedes multiplication.

Answer(s): B,C



Viewing page 19 of 79
Viewing questions 91 - 95 out of 481 questions


Post your Comments and Discuss Python Institute PCEP-30-02 exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!