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

Updated On: 7-Feb-2026

What is the expected output of the following code?

  1. 1 1 2 3 4 5
  2. 2 3 4 5 6 1
  3. 2 3 4 5 6 6
  4. 1 2 3 4 5 6

Answer(s): C



What is the expected output of the following code?

  1. [1, 10, 3, 20, 5, 30, 7, 40, 9, 50, 60]
  2. [1, 2, 10, 20, 30, 40, 50, 60]
  3. The code is erroneous.
  4. [10, 2, 20, 4, 30, 6, 40, 8, 50, 60]

Answer(s): C



What is the expected output of the following code?

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

Answer(s): C



What is the expected output of the following code?

  1. hellopeter
  2. hello@Peter!!
  3. hello@peter!!
  4. None

Answer(s): C



Consider the following list.
data = [1, 5, 10, 19, 55, 30, 55, 99]

Which of the code snippets below would produce a new list like the following?
[1, 5, 10, 99]



  1. None of the above.


Answer(s): D






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

Join the PCEP-30-02 Discussion