Certified Associate in Python Programming (PCAP) — Question 134
What is true about Object-Oriented Programming in Python? (Choose two.)
Answer options
- A. each object of the same class can have a different set of methods
- B. a subclass is usually more specialized than its superclass
- C. if a real-life object can be described with a set of adjectives, they may reflect a Python object method
- D. the same class can be used many times to build a number of objects
Correct answer: B, D
Explanation
Option B is correct because a subclass is indeed more specialized, inheriting attributes and methods from its superclass while adding its own unique features. Option D is also correct, as a class can be instantiated multiple times to create various objects, each representing an instance of that class. Options A and C are incorrect; objects of the same class share the same set of methods, and while adjectives describe properties, they do not directly correspond to methods.