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

Updated On: 1-Feb-2026

What does the following code do?

  1. Defines a list and initializes it.
  2. Defines a function, which passes its parameters through.
  3. None of the above.
  4. Defines a function, which does nothing.
  5. Defines an empty class.

Answer(s): D



What is the expected behavior of the following snippet?

It will:

  1. cause a runtime exception on Line 9
  2. cause a runtime exception on Line 8
  3. print 6
  4. print 4
  5. print 8

Answer(s): E



What is the expected output of the following code?

  1. 3
  2. 6
  3. 8
  4. 1

Answer(s): C



What is the output of the following snippet?

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

Answer(s): A



Which of the following lines correctly invoke the function defined below: (Choose two.)

  1. fun(b=0, a=0)
  2. fun(b=1)
  3. fun(0, 1, 2)
  4. fun()

Answer(s): A,C



Viewing page 12 of 79
Viewing questions 56 - 60 out of 481 questions



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

Join the PCEP-30-02 Discussion