Python Institute PCAP-31-02 Actual Free Exam Questions & Community Discussion
Which line can be used instead of the comment to cause the snippet to produce the following expected output? (Select two answers)
Expected output:
1 2 3
Code:

Expected output:
1 2 3
Code:

Correct Answer: B,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: D
Vote an answer
The following class hierarchy is given.

What is the expected out of the code?

What is the expected out of the code?
Correct Answer: D
Vote an answer
If you need a function that does nothing, what would you use instead of XXX? (Select two answers)


Correct Answer: B,C
Vote an answer
What can you deduce from the following statement0 (Select two answers) str = open('file.txt', "rt")
Correct Answer: C,D
Vote an answer
The simplest possible class definition in Python can be expressed as:
Correct Answer: D
Vote an answer
Which of the following words can be used as a variable name? (Select two valid names)
Correct Answer: A,C
Vote an answer
0
0
0
10

