Certified Associate in Python Programming (PCAP-31-03) — Question 26
A property that stores information about a given class’s super-classes is named:
Answer options
- A. __bases__
- B. __super__
- C. __upper__
- D. __ancestors__
Correct answer: A
Explanation
The correct answer is A, __bases__, as it specifically stores the super-classes of a class in Python. The other options, while related to class inheritance, do not serve this particular purpose: __super__ is a built-in function to access a parent class, __upper__ is not a relevant term in this context, and __ancestors__ is not a standard property in Python.