Python Institute PCEP-30-02 PCEP – Certified Entry-Level Python Programmer Online Training
Python Institute PCEP-30-02 Online Training
The questions for PCEP-30-02 were last updated at Jul 03,2025.
- Exam Code: PCEP-30-02
- Exam Name: PCEP – Certified Entry-Level Python Programmer
- Certification Provider: Python Institute
- Latest update: Jul 03,2025
What code would you insert instead of the comment to obtain the expected output?
Expected output:
Code:
- A . print(k[0])
- B . print(k)
- C . print(k[‘0’])
- D . print(k["0"])
What is the expected output of the following code?
- A . 15913
- B . 1234
- C . 13 14 15 16
- D . 481216
What is the expected output of the following code?
- A . The code is erroneous.
- B . 2
- C . 1
- D . 0
What is the expected output of the following code?
- A . [2]
- B . [3, 4, 5]
- C . The program will cause an error.
- D . [2, 3, 4, 5]
You develop a Python application for your company.
A list named employees contains 200 employee names, the last fi ve being company management. You need to slice the list to display all employees excluding management.
Which code segments can you use? (Choose two.)
- A . employees[1:-5]
- B . employees[0:-5]
- C . employees[:-5]
- D . employees[0:-4]
- E . employees[1:-4]
What is the expected output of the following code?
- A . 112345
- B . 234561
- C . 234566
- D . 123456
What is the expected output of the following code?
- A . [1, 10, 3, 20, 5, 30, 7, 40, 9, 50, 60]
- B . [1, 2, 10, 20, 30, 40, 50, 60]
- C . The code is erroneous.
- D . [10, 2, 20, 4, 30, 6, 40, 8, 50, 60]
What is the expected output of the following code?
- A . 2
- B . 1
- C . The code is erroneous.
- D . 3
- E . 4
What is the expected output of the following code?
- A . hellopeter
- B . hello@Peter!!
- C . hello@peter!!
- D . None
Consider the following list.
data = [1, 5, 10, 19, 55, 30, 55, 99]
Which of the code snippets below would produce a new list like the following?
[1, 5, 10, 99]
A )
B )
C ) None of the above.
D )
E )
- A . Option A
- B . Option B
- C . Option C
- D . Option D
- E . Option E