Python Institute PCEP-30-02 Übungsprüfungen
Zuletzt aktualisiert am 26.04.2025- Prüfungscode: PCEP-30-02
- Prüfungsname: PCEP – Certified Entry-Level Python Programmer
- Zertifizierungsanbieter: Python Institute
- Zuletzt aktualisiert am: 26.04.2025
Question #21
What is the expected output of the following code?
- A . The code is erroneous.
- B . 1
- C . 0
- D . None
Question #22
After execution of the following snippet, the sum of all vals elements will be equal to:
- A . 4
- B . 5
- C . 2
- D . 3
Question #23
What is the expected output of the following code?
Print (len([i for i in range(0, -2)]))
- A . 1
- B . 3
- C . 2
- D . 0
Question #24
What is the output of the following snippet?
- A . [0, 1, 9, 16]
- B . [0, 1, 4, 16]
- C . [0, 1, 4, 9]
- D . [1, 4, 9, 16]
Question #25
The escape character owes its name to the fact that it:
- A . cannot be caught due to its high speed
- B . escapes from source les into the computer memory
- C . changes the meaning of the character next to it
Question #26
What is the expected output of the following code?
- A . (2)
- B . (2,)
- C . 2
- D . The code is erroneous.
Question #27
Question #28
Insert the correct piece of code, so that the program produces the expected output.
Expected output:
Code:
- A . print(Andy
Brown) - B . print("Andy Brown", end=" ")
- C . print("Andy Brown", sep=" ")
- D . print("Andy
Brown")
Question #29
How many stars will the following code print to the monitor?
- A . two
- B . one
- C . four
- D . eight
Question #30
What is the expected output of the following code?
- A . 2
- B . None
- C . The code is erroneous.
- D . 4