Python Institute
PCEP-30-02
Q1:
What is the expected output of the following code?

○
A
2○
B
0○
C
3○
D
1
Python Institute
PCEP-30-02
Q2:
What is the expected result of the following code?

○
A
The code is erroneous and cannot be run.○
B
20○
C
10○
D
30
Python Institute
PCEP-30-02
Q3:
Which of the following are the names of Python passing argument styles?
(Select two answers.)
☐
A
keyword☐
B
reference☐
C
indicatory☐
D
positional
Python Institute
PCEP-30-02
Q4:
Which of the following functions can be invoked with two arguments?
A)

B)

C)

D)

○
A
Option A○
B
Option B○
C
Option C○
D
Option D
Python Institute
PCEP-30-02
Q5:
What is true about exceptions and debugging? (Select two answers.)
☐
A
A tool that allows you to precisely trace program execution is called a debugger.☐
B
If some Python code is executed without errors, this proves that there are no errors in it.☐
C
One try-except block may contain more than one except branch.☐
D
The default (anonymous) except branch cannot be the last branch in the try-except block.