Certified Professional in Python Programming (PCPP-32-101) — Question 16
What is true about type in the object-oriented programming sense?
Answer options
- A. It is the bottommost type that any object can inherit from.
- B. It is a built-in method that allows enumeration of composite objects
- C. It is the topmost type that any class can inherit from.
- D. It is an object used to instantiate a class.
Correct answer: C
Explanation
The correct answer is C because in object-oriented programming, the type often refers to a base class from which all classes inherit, making it the topmost type. Options A and D are incorrect as they misrepresent the hierarchical nature of types, and option B describes a method rather than the concept of type itself.