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
You have the following le.
You run the le by executing the following command in the terminal. python index.py 42 3
What is the expected output?
- A . 45
- B . 424242
- C . 423
- D . 126
- E . The code is erroneous.
What is the expected output of the following code?
- A . (2, 1, 1)
- B . (1, 1, 1)
- C . (2, 2, 2)
- D . The code is erroneous.
What is the expected output of the following code?
print(list(‚hello‘))
- A . hello
- B . [h, e, l, l, o]
- C . [‚h‘, ‚e‘, ‚l‘, ‚l‘, ‚o‘]
- D . [‚h‘ ‚e‘ ‚l‘ ‚l‘ ‚o‘]
- E . None of the above.
Consider the following code.
You want to print the numbers 1 to 7 to the monitor. But the code does not work.
What do you have to change? (Choose two.)
- A . x = x + 1 # Line 8
- B . while (x < 10): # Line 3
- C . print (nums [x]) # Line 4
- D . if nums [x] == 7: # Line 5
What is the expected output of the following code?
x = 2
y = 6
x += 2 ** 3
x //= y // 2 // 3
print(x)
- A . 9
- B . 10
- C . 0
- D . 11
What is the expected output of the following code?
- A . {(2, 3): 2}
- B . {(1, 2): 1}
- C . The code is erroneous.
- D . 1
The most important difference between integer and fl oating-point numbers lies in the fact that:
- A . they are stored differently in the computer memory
- B . they cannot be used simultaneously
- C . integers cannot be literals, while oats can
What is the expected output of the following code?
- A . 4
- B . The code is erroneous.
- C . 6
- D . 2
What is the expected result of the following code?
- A . The code is erroneous and cannot be run.
- B . 10
- C . 20
- D . 30