Python Institute PCEP-30-02 Practice Exams
Last updated on Apr 13,2025- Exam Code: PCEP-30-02
- Exam Name: PCEP – Certified Entry-Level Python Programmer
- Certification Provider: Python Institute
- Latest update: Apr 13,2025
Question #61
The following snippet:
- A . will output 4
- B . will output 2
- C . is erroneous
- D . will return None
Question #62
Question #63
What is the expected output of the following code?
- A . (1, 2)
- B . The code is erroneous.
- C . {‘a’:1, ‘b’:2}
- D . [1,2]
Question #64
Question #65
Which of the following are the names of Python passing argument styles? (Choose two.)
- A . indicatory
- B . positional
- C . reference
- D . keyword
Question #66
What is the output of the following snippet?
- A . 9
- B . The snippet is erroneous (invalid syntax).
- C . 6
Question #67
Question #68
The print() function is an example of:
- A . a Python built-in function
- B . a user-de fi ned function
- C . an anonymous function
- D . a Python output method
Question #69
What is the output of the following snippet?
- A . [‘Mary’, ‘had’, ‘a’, ‘little’, ‘lamb’]
- B . [‘Mary’, ‘had’, ‘a’, ‘lamb’]
- C . [‘Mary’, ‘had’, ‘a’, ‘ramb’]
- D . No output, the snippet is erroneous
Question #70
How would you remove all the items from the d dictionary?
Expected output:
Code:
- A . d.del()
- B . d.remove()
- C . del d
- D . d.clear()