Python Institute Certified Associate in Python Programming (PCAP-31-02) Free Practice Test
Question 1
What is the expected output of the following snippet?


Correct Answer: D
Question 2
What is the expected output of the following snippet?


Correct Answer: C
Question 3
What is the expected output of the following snippet?


Correct Answer: D
Question 4
And operator able to perform bitwise shifts is coded as (Select two answers)
Correct Answer: A,B
Question 5
If you want to transform a string into a list of words, what invocation would you use? (Select two answers)

Code:


Code:

Correct Answer: C,D
Question 6
What would you used instead of XXX if you want to check weather a certain 'key' exists in a dictionary called dict? (Select two answers)


Correct Answer: A,C
Question 7
A variable stored separately in every object is called:
Correct Answer: D
Question 8
Is it possible to safely check if a class/object has a certain attribute?
Correct Answer: C