Official Bank 0/147

Certified Associate in Python Programming (PCAP-31-03) - Python Exam Questions

Last updated on June 20, 2026

97% Exam Compliance
147 Total Questions
1
Question
What is a true about python class constructors? (Select two answers)
Select 2
Options
A the constructor must have at least one parameter
B the constructor must return a value other than None
C the constructor is a method named_init_
D there can the more than one constructor in a Python class.
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

2
Question
What is true about Object-Oriented Programming in Python? (Select two answers)
Select 2
Options
A if a real-life object can be described with a set of adjectives, they may reflect a Python object
method
B the same class can be used many times to build a number of objects
C each object of the same class can have a different set of methods
D a subclass is usually more specialized than its superclass
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

3
Question
What is the expected output of the following snippet?

Exhibit
Options
A the code is erroneous
B 3
C 15
D 7
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

4
Question
Which of the following lambda function definitions are correct? (Select two answers)
Select 2
Options
A lambda X : None
B lambda : 3,1415
C lambda x : def fun(x): return x
D lambda lambda: lambda * lambda
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

5
Question
The simplest possible class definition in Python can be expressed as:
Options
A class X:
B class X:
pass
C class X: {}
D class X:
return
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

Finish Practice?

Are you sure you want to finish? This will end your practice session.