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?
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.