Python Institute PCEP-30-02 Übungsprüfungen
Zuletzt aktualisiert am 28.05.2025 - Prüfungscode: PCEP-30-02
- Prüfungsname: PCEP – Certified Entry-Level Python Programmer
- Zertifizierungsanbieter: Python Institute
- Zuletzt aktualisiert am: 28.05.2025
What is the expected output of the following code?
- A . *
- B . **
- C . ***
- D . The code produces no output.
You want to write a program that asks the user for a value. For the rest of the program you need a whole number, even if the user enters a decimal value.
What would you have to write?
- A . num = str(input(‚How many do you need?‘))
- B . num = int( oat(input(‚How many do you need?‘)))
- C . num = oat(input(‚How many do you need?‘))
- D . num = int(‚How many do you need?‘)
Which of the following snippets shows the correct way of handling multiple exceptions in a single except clause?
A )
B )
C )
D )
E )
F )
- A . Option A
- B . Option B
- C . Option C
- D . Option D
- E . Option E
- F . Option F
You develop a Python application for your company. You have the following code.
Which of the following expressions is equivalent to the expression in the function?
- A . (a + b) * (c – d)
- B . (a + (b * c)) – d)
- C . (a + ((b * c) – d)
- D . None of the above.
The meaning of the keyword parameter is determined by:
- A . its value
- B . its connection with existing variables
- C . its position within the argument list
- D . the argument’s name speci fi ed along with its value
What is the expected output of the following code?
- A . The program will cause an error.
- B . (1, 4, 9)
- C . (‚A‘, ‚D‘, ‚Z‘)
- D . (5.0, 7.5, 9.9)
Which of the following function calls can be used to invoke the below function de fi nition? (Choose three.) def test(a, b, c, d):
- A . test(a=1, b=2, c=3, 4)
- B . test(1, 2, 3, d=4)
- C . test(a=1, 2, 3, 4)
- D . test(1, 2, 3, 4)
- E . test(a=1, b=2, c=3, d=4)
- F . test(a=1, 2, c=3, 4)
DRAG DROP
Arrange the binary numeric operators in the order which re fl ects their priorities, where the top-most position has the highest priority and the bottom-most position has the lowest priority.
What is the expected output of the following code?
- A . The code is erroneous.
- B . 3
- C . 1
- D . 2