Certified Associate in Python Programming (PCAP) — Question 3
A variable stored separately in every object is called:
Answer options
- A. there are no such variables, all variables are shared among objects
- B. a class variable
- C. an object variable
- D. an instance variable
Correct answer: D
Explanation
The correct answer is D, an instance variable, which is unique to each object and holds its own value. Options A and B are incorrect because they refer to shared variables across objects, while option C is not a standard term used in object-oriented programming.