Welcome to TestSimulate

Pass Your Next Certification Exam Fast!

Everything you need to prepare, learn & pass your certification exam easily.

365 days free updates. First attempt guaranteed success.

Python Institute Certified Associate in Python Programming (PCAP-31-03) Free Practice Test

Question 1
What is the expected behavior of the following code?

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

Correct Answer: D
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 3
A property that stores information about a given class's super-classes is named:

Correct Answer: C
Question 4
What is the expected output of the following code?

Correct Answer: B
Question 5
What can you deduce from the following statement? (Select two answers)
str = open('file.txt', "rt")

Correct Answer: A,D
Question 6
What is the expected behavior of the following code?

Correct Answer: B
Question 7
What is the expected behavior of the following code?

It will:

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

Correct Answer: B
Question 9
How many elements will the list2 list contain after execution of the following snippet?
list1 = [False for i in range (1, 10) ]
list2 = list1 [-1:1:-1]

Correct Answer: B
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 10
Which of the following expressions evaluate to True? (Select two answers)

Correct Answer: A,C
Question 11
There is a stream named s open for writing. What option will you select to write a line to the stream''

Correct Answer: D
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 12
What is the expected output of the following code?
def foo(x,y,z):
return x(y) - x(z)
print{f00(lambda x: x % 2, 2, 1) )

Correct Answer: D