Python Institute Certified Associate in Python Programming - PCAP-31-02 Exam Practice Test

Question 1
A file name like this one below says that: (Select three answers)
services, cpython 36.pyc

Correct Answer: B,C,D
Question 2
What is the expected output of the following code?

Correct Answer: A
Question 3
Which line can be used instead of the comment to cause the snippet to produce the following expected output? (Select two answers)
Expected output:
1 2 3
Code:

Correct Answer: A,B
Question 4
Python strings can be "glued" together using the operator:

Correct Answer: D
Question 5
What should you put instead of XXX to print out the module name?

Correct Answer: B
Question 6
If you need to serve two different exceptions called Ex1 and Ex2 in one except branch, you can write:

Correct Answer: C
Question 7
Assuming that 1st is a four-element list is there any difference between these two statements?

Correct Answer: D
Question 8
What is the expected behavior of the following code?

It will:

Correct Answer: C