Python Institute PCAP-31-03 Actual Free Exam Questions & Community Discussion
What is the expected output of the following snippet?


Correct Answer: B
Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
Which of the following expressions evaluate to True? (Select two answers)
Correct Answer: B,D
Vote an answer
A property that stores information about a given class's super-classes is named:
Correct Answer: D
Vote an answer
A Python module named pymod, py contains a function named pyfun ( ).
Which of the following snippets will let you invoke the function? (Select two answers)
Which of the following snippets will let you invoke the function? (Select two answers)
Correct Answer: A,D
Vote an answer
What is a true about python class constructors? (Select two answers)
Correct Answer: A,C
Vote an answer
If you need to serve two different exceptions called Ex1 and Ex2 in one except branch, you can write:
Correct Answer: C
Vote an answer
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: C,D
Vote an answer
Assuming that the following snippet has been successfully executed, which of the equations are False? (Select two answers)


Correct Answer: B,D
Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
What is the expected out of the following code of the file named zero_length_existing_file is a zero-length file located inside the working directory?


Correct Answer: B
Vote an answer
Which of the following statements are true? (Select two answers)
Correct Answer: C,D
Vote an answer
You are going to read just one character from a stream called s. Which statement would you use?
Correct Answer: B
Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
Which of the following lambda definitions are correct? (Select two answers)
Correct Answer: A,D
Vote an answer
What is the expected output of the following code?


Correct Answer: B
Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
0
0
0
10

