Free PCEP-30-02 Exam Braindumps (page: 23)

Page 22 of 99

What will be the output of the following code snippet?

  1. 1
  2. 4
  3. 2
  4. 3
  5. None

Answer(s): B



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






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

PCEP-30-02 Discussions & Posts