Python Institute Certified Associate in Python Programming - PCAP-31-03 Exam Practice Test
What would you use instead of XXX if you want to check whether a certain ' key' exists in a dictionary called diet? (Select two answers) II if XXX:
print("Key exists")
print("Key exists")
Correct Answer: A,B
Vote an answer
What is the expected behavior of the following code?

It will:

It will:
Correct Answer: A
Vote an answer
Python's built-in function named open () tries to open a file and returns:
Correct Answer: D
Vote an answer
Explanation: Only visible for PassTestking members. You can sign-up / login (it's free).
A file name like this one below says mat: (select three answers)
services. cpython-36.pyc
services. cpython-36.pyc
Correct Answer: A,C,D
Vote an answer
If you need to serve two different exceptions called Ex1 and Ex2 in one except branch, you can write:
Correct Answer: B
Vote an answer
Which one of the platform module functions should be used to determine the underlying platform name?
Correct Answer: C
Vote an answer
Which of the following expressions evaluate to True? (Select two answers)
Correct Answer: A,B
Vote an answer
What is true about Python packages? (Select two answers)
Correct Answer: B,D
Vote an answer
What is the expected behavior of the following code?

It will

It will
Correct Answer: B
Vote an answer
What is a true about python class constructors? (Select two answers)
Correct Answer: A,D
Vote an answer

