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

Page 31 of 99

What is the expected output of the following code?


  1. 1 | False
    2 | True
    3 | False
    4 | True

  2. 1 | False
    2 | True
    3 | True
    4 | True

  3. 1 | False
    2 | True
    3 | True
    4 | False

  4. 1 | False
    2 | False
    3 | True
    4 | True

Answer(s): B



Evaluate the following Python arithmetic expression:
(3 * (1 + 2) ** 2 - (2 ** 2) * 3)

What is the result?

  1. 13
  2. 3
  3. 69
  4. 15

Answer(s): D



What value will be assigned to the x variable?

  1. 1
  2. False
  3. True

Answer(s): C



Consider the following code.

What does the second assignment do?

  1. It shortens the list.
  2. It reverses the list.
  3. It doesn’t change the list.
  4. It extends the list.

Answer(s): B






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

PCEP-30-02 Discussions & Posts