Python Institute PCEP-30-02 Übungsprüfungen
Zuletzt aktualisiert am 07.05.2025- Prüfungscode: PCEP-30-02
- Prüfungsname: PCEP – Certified Entry-Level Python Programmer
- Zertifizierungsanbieter: Python Institute
- Zuletzt aktualisiert am: 07.05.2025
What is the expected output of the following code?
- A . The code is erroneous.
- B . TRUE
- C . FALSE
- D . None of the above.
Consider the following program to calculate a discount percentage:
Which of the following inputs will get the user a discount of 5 %?
- A . Sunday
- B . Thursday
- C . Wednesday
- D . Saturday
- E . Friday
By which variable of the sys module can we access command line arguments?
- A . argsv
- B . arguments
- C . args
- D . argv
What is the expected output of the following code?
x = 1 + 1 // 2 + 1 / 2 + 2
print(x)
- A . 3
- B . 4.0
- C . 4
- D . 3.5
What is the expected output of the following code?
- A . True
- B . The code raises an unhandled exception.
- C . e
- D . Volta Tension
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]
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()
What is the result of the following operation?
- A . 2.0
- B . 11.0
- C . The operation is illegal in Python
- D . 2
The following statement …
assert x == 0
- A . will stop the program if x is equal to 0.
- B . has no effect.
- C . is erroneous.
- D . will stop the program if x is not equal to 0.