↓ Try a sample question (with explanation)

Python Institute · Practice questions

PCEP-30-02 PCEP – Certified Entry-Level Python Programmer (Exam PCEP-30-02)

Study 368 PCEP-30-02 PCEP – Certified Entry-Level Python Programmer (Exam PCEP-30-02) practice questions with explanations. 37 of them are free to try, no sign-up needed.

Buy to unlock all questions, full reading mode and PDFs.

About this question bank

Questions
368 in total
Free to try
37 questions (no sign-up)
Exam domains
6 domains
Price
JPY 1,500 (≈ US$10; shown in your local currency at checkout) · one-time payment · 3 months
PDF
Japanese–English · Chinese–English · Korean–English · English (for buyers)
Data version
2026-12

About this exam

The Python Institute's entry-level Python certification. PCEP-30-02 is the version preceding PCEP-30-03, which was released on October 31, 2026; PCEP-30-02 remains available until November 30, 2027. It covers literals and variables, operators, control flow, lists, tuples, dictionaries and strings, functions and scope, and exception basics.

Try a sample question

This is an original sample question written by itmoshi based on the exam objectives.

Before changing the stock list inventory, a developer tries to keep its original state in two variables, backup and snapshot (see the exhibit). What does this code print?

Exhibit
inventory = [3, 5, 7]
backup = inventory
snapshot = inventory[:]
inventory.append(9)
backup[0] = 0
print(len(snapshot), inventory[0], snapshot[0], backup[-1])
  1. A3 0 3 9
  2. B4 0 0 9
  3. C3 3 3 7
  4. D4 0 3 9
Show answer and explanation

Answer:A It prints 3 0 3 9.

Why it is correct

backup = inventory does not copy the list; it just gives the same list a second name. inventory[:] creates a new list with a slice, so snapshot is an independent copy of [3, 5, 7] at that moment. The later append(9) and backup[0] = 0 both change the one shared list, so inventory and backup become [0, 5, 7, 9] while snapshot stays [3, 5, 7]. So len(snapshot) is 3, inventory[0] is 0, snapshot[0] is 3, and backup[-1] is 9.

The other options

  • ✗ B This assumes snapshot points to the same list. A [:] slice creates a new list, so changes to the original do not show up in snapshot.
  • ✗ C This assumes backup is a copy. Assignment never copies a list, so the change through backup appears in inventory, and the appended 9 is visible through backup too.
  • ✗ D This correctly keeps snapshot's elements unchanged but gives it length 4. append adds to the original list only; snapshot is a separate list and still has 3 elements.

Key takeaway

b = a → one list, two names (a change through one is seen through the other). b = a[:] / a.copy() / list(a) → a new list (a shallow copy): appending or replacing items affects only that list, but mutating a shared nested object is visible through both.

Try 37 questions like this for free

Most frequent topics

  1. Literals, variables, and numeric operators76 questions
  2. Defining and calling functions45 questions
  3. List operations and methods43 questions
  4. Python basics and the interpreter37 questions
  5. Strings and character operations25 questions
  6. Scope and namespaces23 questions

Number of questions per topic among the 368 in this bank (top topics), as classified by itmoshi.

Exam domains

  1. その他1 questions
  2. Computer Programming and Python Fundamentals40 questions
  3. Data Types, Evaluations, and Basic I/O Operations132 questions
  4. Control Flow – Conditional Statements and Loops24 questions
  5. Data Collections – Lists, Tuples, and Dictionaries89 questions
  6. Functions and Exception Handling82 questions

Other Python Institute exams

← All exams

itmoshi is an unofficial study service and is not affiliated with Python Institute or any exam provider.