Free PCAP-31-03 Questions for Python Institute Certified Associate in Python Programming PCAP-31-03 Exam as PDF & Practice Test Engine
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) )
def foo(x,y,z):
return x(y) - x(z)
print{f00(lambda x: x % 2, 2, 1) )
Correct Answer: A
Vote an answer
If you need to serve two different exceptions called Ex1 and Ex2 in one except branch, you can write:
Correct Answer: A
Vote an answer
How many elements will the list1 list contain after execution of the following snippet?
Correct Answer: A
Vote an answer
Which of the following statements are true? (Select two answers)
Correct Answer: A,B
Vote an answer
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]
list1 = [False for i in range (1, 10) ]
list2 = list1 [-1:1:-1]
Correct Answer: C
Vote an answer
Explanation: Only visible for ExamDiscuss members. You can sign-up / login (it's free).
An operator able to perform bitwise shifts is coded as (select two answers)
Correct Answer: A,C
Vote an answer
Explanation: Only visible for ExamDiscuss members. You can sign-up / login (it's free).
0
0
0
10


