Certified Associate in Python Programming (PCAP-31-03) — Question 75
What is true about Object-Oriented Programming in Python? (Choose two.)
Answer options
- A. the same class can be used many times to build a number of objects
- B. each object of the same class can have a different set of methods
- C. if a real-life object can be described with a set of adjectives they may reflect a Python object method
- D. a subclass is usually more specialized than its superclass
Correct answer: A, D
Explanation
Option A is correct because a class in Python can indeed be instantiated multiple times to create different objects. Option D is also correct as subclasses are typically designed to be more specific than their superclasses. Options B and C are incorrect; B misrepresents how methods work in a class, and C confuses the concept of attributes and methods in Python.