Python Institute PCEP-30-02 PCEP – Certified Entry-Level Python Programmer Online Training
Python Institute PCEP-30-02 Online Training
The questions for PCEP-30-02 were last updated at Apr 07,2025.
- Exam Code: PCEP-30-02
- Exam Name: PCEP – Certified Entry-Level Python Programmer
- Certification Provider: Python Institute
- Latest update: Apr 07,2025
Insert the correct snippet so that the program produces the expected output.
Expected output:
Code:
- A . b = 0 not in list
- B . b = list[0]
- C . b = 0 in list
- D . b = False
Assuming that the tuple is a correctly created tuple, the fact that tuples are immutable means that the following instruction:
- A . is illegal
- B . may be illegal if the tuple contains strings
- C . can be executed if and only if the tuple contains at least two elements
- D . is fully correct
What is the expected output of the following code?
- A . [1, 3]
- B . [1, 4]
- C . [4, 3]
- D . [1, 3, 4]
What is the expected output of the following code?
- A . [‘Peter’, 404, 3.03, ‘Wellert’, 33.3]
- B . None of the above.
- C . [404, 3.03]
- D . [‘Peter’, ‘Wellert’]
Take a look at the snippet, and choose the true statements: (Choose two.)
- A . nums is longer than vals
- B . nums and vals are of the same length
- C . vals is longer than nums
- D . nums and vals refer to the same list
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.
What will be the output of the following code snippet?
- A . [1, 3, 5, 7, 9]
- B . [8, 9]
- C . [1, 2, 3]
- D . [1, 2]