Python Institute PCEP-30-02 Practice Exams
Last updated on Apr 12,2025 - Exam Code: PCEP-30-02
- Exam Name: PCEP – Certified Entry-Level Python Programmer
- Certification Provider: Python Institute
- Latest update: Apr 12,2025
Question #31
Only one of the following statements is true – which one?
- A . addition precedes multiplication
- B . multiplication precedes addition
- C . neither statement can be evaluated
Question #32
What is the expected output of the following code?
- A . {(2, 3): 2}
- B . {(1, 2): 1}
- C . The code is erroneous.
- D . 1
Question #33
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 #34
An alternative name for a data structure called a stack is:
- A . LIFO
- B . FIFO
- C . FOLO
Question #35
What is the expected output of the following code?
- A . 7
- B . The code is erroneous.
- C . 6.0
- D . 7.0
- E . 6
Question #36
A variable de fi ned outside a function:
- A . may be read, but not written (something more is needed to do so)
- B . may not be accessed in any way inside the function
- C . may be freely accessed inside the function
Question #37
What is the expected result of the following code?
- A . The code is erroneous and cannot be run.
- B . 10
- C . 20
- D . 30
Question #38
Consider the following code.
Which of the following codes will print the right output?
A )
B )
C )
D )
- A . Option A
- B . Option B
- C . Option C
- D . Option D
Question #39
What is the expected output of the following code?
print(3 * ‘abc’ + ‘xyz’)
- A . 3abcxyz
- B . abcabcxyzxyz
- C . abcabcabcxyz
- D . abcxyzabcxyzabcxyz
Question #40