Certified Associate in Python Programming (PCAP-31-03) — Question 34

What is true about Python class constructors? (Choose two.)

Answer options

Correct answer: A, B

Explanation

Option A is correct because the first parameter in a Python constructor, typically named 'self', refers to the instance being created. Option B is also correct as Python automatically calls the super-class constructor when a subclass constructor is invoked. Options C and D are incorrect; the constructor can be invoked directly, but under limited conditions, and it can indeed use default parameter values.