Python Institute PCEP-30-02 Übungsprüfungen
Zuletzt aktualisiert am 05.06.2025- Prüfungscode: PCEP-30-02
- Prüfungsname: PCEP – Certified Entry-Level Python Programmer
- Zertifizierungsanbieter: Python Institute
- Zuletzt aktualisiert am: 05.06.2025
Question #151
What is the decimal value of the following binary number?
1010
- A . 8
- B . 4
- C . 12
- D . 10
Question #152
What is the expected output of the following code?
print (oat (‚1.3‘))
- A . The code is erroneous.
- B . 1,3
- C . 13
- D . 1.3
Question #153
What is the expected output of the following code?
- A . [‚1‘, ‚2‘, ‚3‘, ‚4‘]
- B . (1, 2, 3, 4)
- C . (‚1‘, ‚2‘, ‚3‘, ‚4‘)
- D . The code is erroneous.
Question #154
Insert the correct snippet to convert the t tuple to a dictionary named d.
Expected output:
Code:
- A . t >> d.dict
- B . d = dict(t)
- C . d.dict(t)
- D . d = t(dict)
Question #155
Question #156
Which of the following lines properly starts a parameterless function de fi nition?
- A . def fun:
- B . def fun():
- C . fun function():
- D . function fun():
Question #157
Question #158
What is the expected output of the following code?
print(type(1J))
- A . <type ‚dict‘>
- B . <type ‚unicode‘>
- C . <type ‚ oat‘>
- D . <type ‚complex‘>
Question #159
What is the expected output of the following code?
- A . 6
- B . The code is erroneous.
- C . 9
- D . 3
Question #160