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 401:

    How many elements will the following list contain?

    data = [i for i in range(-1, 2)]

    A. one

    B. two

    C. zero

    D. four

    E. three

  • Question 402:

    Consider the following code.

    What would you insert instead of ???, so that the program prints the following pattern to the monitor?

    A. None

    B. -1

    C. 0

    D. 1

  • Question 403:

    Which of the following code snippets will print all prime numbers between 2 and 100 to the monitor?

    A. Option A

    B. Option B

    C. Option C

    D. Option D

  • Question 404:

    Consider the following code.

    Which of the following expressions will evaluate to 19?

    A. data.r nd('an') if data else None

    B. 19 if None else x / y

    C. data. nd('an') if data else None

    D. 7 if len(data) > 19 else 6

  • Question 405:

    You are designing a decision structure to convert a student's numeric grade to a letter grade. The program must assign a letter grade as speci ed as followed:

    For example, if the user enters a 90, the output should be Your letter grade is A. Likewise, if a user enters an 89, the output should be Your letter grade is B.

    Which of the following should you insert on Line-3, Line-5, Line-7 and Line-9?

    A. Option A

    B. Option B

    C. Option C

    D. Option D

  • Question 406:

    The ABC company needs a way to nd the count of particular letters in their publications to ensure that there is a good balance. It seems that there have been complaints about overuse of the letter e. You need to create a function to meet the requirements.

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

    A. 1 | word in word_list 2 | word in letter

    B. 1 | word_list in word 2 | letter in word

    C. 1 | word in word_list 2 | letter in word

    D. 1 | word is word_list 2 | letter in word

    E. 1 | word_list in word 2 | word in letter

    F. 1 | word in word_list 2 | letter is word

  • Question 407:

    You work for a company that distributes media for all ages.

    You are writing a function that assigns a rating based on a user's age. The function must meet the following requirements:

    1.

    Anyone 18 years old or older receives a rating of A.

    2.

    Anyone 13 or older, but younger than 18 receives a rating of T.

    3.

    Anyone 12 years old or younger receives a rating of C.

    4.

    If the age is unknown, the rating is set to C.

    Which of the following should you insert on Line-3 to Line-6?

    A. Option A

    B. Option B

    C. Option C

    D. Option D

    E. Option E

    F. Option F

  • Question 408:

    What is the expected output of the following snippet?

    A. P Y T H O N

    B. Python

    C. The code is erroneous.

    D. PYTHON

    E. python

    F. P y t h o n

  • Question 409:

    Which one of the lines should you put in the snippet below to match the expected output? Expected output:

    Code:

    A. exit

    B. continue

    C. print()

    D. break

  • Question 410:

    What is the expected output of the following code?

    A. 30

    B. 29

    C. 28

    D. 31

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.