Exam Details

  • Exam Code
    :PCEP-30-02
  • Exam Name
    :PCEP - Certified Entry-Level Python Programmer
  • Certification
    :Python Institute Certifications
  • Vendor
    :Python Institute
  • Total Questions
    :420 Q&As
  • Last Updated
    :May 01, 2025

Python Institute Python Institute Certifications PCEP-30-02 Questions & Answers

  • Question 391:

    You are developing a Python application for an online product distribution company. You need the program to iterate through a list of products and escape when a target product ID is found.

    What would you insert instead of ??? and ??? ?

    A. 1 | if 2 | break

    B. 1 | break 2 | while

    C. 1 | for 2 | break

    D. 1 | while 2 | break

    E. 1 | while 2 | for

    F. 1 | for 2 | while

  • Question 392:

    Consider the following code.

    You want to print the numbers 1 to 7 to the monitor. But the code does not work. What do you have to change? (Choose two.)

    A. x = x + 1 # Line 8

    B. while (x < 10): # Line 3

    C. print(nums[x]) # Line 4

    D. if nums[x] == 7: # Line 5

  • Question 393:

    How many stars (*) will the following code output to the screen?

    A. one

    B. six

    C. two

    D. three

  • Question 394:

    What is the expected output of the following code? print(len([i for i in range(0, -2)]))

    A. 1

    B. 3

    C. 2

    D. 0

  • Question 395:

    What is the expected output of the following code?

    A. 6

    B. 4

    C. 7

    D. 2

  • Question 396:

    How many stars will the following snippet print to the monitor?

    A. three

    B. zero

    C. two

    D. one

  • Question 397:

    How many stars will the following snippet print to the monitor? x = 16 while x > 0: print('*') x //= 2

    A. one

    B. three

    C. The code will enter an in nite loop.

    D. ve

  • Question 398:

    The ABC company is creating a program that allows customers to log the number of miles biked. The program will send messages based on how many miles the customer logs. You create the following Python code.

    What would you insert instead of ??? and ??? ? (Choose two.)

    A. def calc_calories(miles, calories_per_mile):

    B. def calc_calories():

    C. def calc_calories(miles, burn_rate):

    D. def get_name(biker):

    E. def get_name(name):

    F. def get_name():

  • Question 399:

    What is the expected output of the following code?

    A. 10221

    B. 10212

    C. 11112

    D. 11121

    E. 21102

  • Question 400:

    Consider the following program to calculate a discount percentage:

    Which of the following inputs will get the user a discount of 5 %?

    A. Sunday

    B. Thursday

    C. Wednesday

    D. Saturday

    E. Friday

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Python Institute exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your PCEP-30-02 exam preparations and Python Institute certification application, do not hesitate to visit our Vcedump.com to find your solutions here.