Python Institute PCAP-31-02 Actual Free Exam Questions & Community Discussion

  • Exam Code/Number: PCAP-31-02
  • Exam Name/Title: Certified Associate in Python Programming
  • Certification Provider: Python Institute
  • Corresponding Certification: Python Institute PCAP
  • Exam Questions: 75
  • Updated On: May 31, 2026
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:
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?
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
What is the expected output of the following snippet?
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