Python Institute PCEP-30-02 Exam
PCEP - Certified Entry-Level Python Programmer (Page 13 )

Updated On: 9-Feb-2026

What is the expected output of the following code?

  1. 4
  2. 2
  3. 10
  4. 0
  5. 1
  6. 3

Answer(s): A



What is the output of the following snippet?

  1. [0, 1, 9, 16]
  2. [0, 1, 4, 16]
  3. [0, 1, 4, 9]
  4. [1, 4, 9, 16]

Answer(s): C



What is the expected output of the following code?

  1. [4, 3, 2, 1]
  2. [4, 3, 2]
  3. [4, 3]
  4. The code is erroneous.

Answer(s): B



Take a look at the snippet and choose one of the following statements which is true:

  1. nums and vals are of the same length
  2. nums is longer than vals
  3. vals is longer than nums

Answer(s): C



What is the expected output of the following code?

  1. 0 1
  2. 1 0
  3. The code is erroneous.
  4. 0 0

Answer(s): C






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

Join the PCEP-30-02 Discussion