Python Institute PCEP-30-02 Übungsprüfungen
Zuletzt aktualisiert am 02.06.2025- Prüfungscode: PCEP-30-02
- Prüfungsname: PCEP – Certified Entry-Level Python Programmer
- Zertifizierungsanbieter: Python Institute
- Zuletzt aktualisiert am: 02.06.2025
Question #121
How many elements will the following list contain?
data = [i for i in range (-1, 2)]
- A . one
- B . two
- C . zero
- D . four
- E . three
Question #122
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
Question #123
What is the expected output of the following code?
- A . 2
- B . 1
- C . The code is erroneous.
- D . 3
- E . 4
Question #124
The second assignment:
- A . extends the list
- B . doesn’t change the list’s length
- C . shortens the list
Question #125
Question #126
Consider the following Python code:
What are the types of the variables distance, amount and country?
- A . oat, int, str
- B . oat, str, str
- C . double, str, oat
- D . oat, oat, str
Question #127
What is the expected output of the following code?
- A . True True
- B . True False
- C . False False
- D . False True
Question #128
Consider the following python code:
What are the data types of the variables z1, z2 and z3?
- A . str, str, str
- B . str, oat, oat
- C . str, int, int
- D . str, int, oat
Question #129
What is the expected output of the following code?
- A . 1 | 1
2 | 3
3 | 4 - B . 1 | 1
2 | 3 - C . 1 | 1
- D . 1 | 1
2 | 4
Question #130
A function de fi nition:
- A . cannot be placed among other code
- B . may be placed anywhere inside the code after the fi rst invocation
- C . must be placed before the fi rst invocation