Question: What is an object?
Answer: An instance of a class.
Question: What keyword is used to define a class in Python?
Answer: class
Question: Which OOP concept allows one class to acquire properties of another?
Answer: Inheritance.
Question: What does polymorphism mean?
Answer: Same operation, different behavior.
Question: What does abstraction hide?
Answer: Internal implementation details.
Question: Which operator is used to access an object's attributes?
Answer: Dot (.) operator.
Question: What is a class?
Answer: A blueprint for creating objects.
Question: What are the two classes involved in inheritance?
Answer: Parent class and Child class.
Question: Does polymorphism allow methods with the same name to behave differently?
Answer: Yes.
Question: Abstraction focuses on "What to do" instead of what?
Answer: "How to do it."
Question: Name the three characteristics of an object.
Answer: State, Behavior, Identity.
Question: Which special method initializes an object's attributes?
Answer: __init__()
Question: Why is inheritance useful?
Answer: It promotes code reuse.
Question: Which OOP principle allows one interface to have multiple implementations?
Answer: Polymorphism.
Question: Which OOP principle simplifies complex systems?
Answer: Abstraction.
Question: What happens when you create an object using a class?
Answer: The constructor (__init__) is automatically called.
Question: Which parameter refers to the current object inside a class?
Answer: self
Question: Which class inherits methods and attributes?
Answer: Child class.
Question: True or False: Polymorphism increases code flexibility.
Answer: True.
Question: Why is abstraction useful?
Answer: It reduces complexity and improves usability.
Question: Give an example of creating a Dog object.
Answer: dog1 = Dog("Buddy", 3)
Question: What are variables defined inside a class called?
Answer: Attributes (or Class Attributes)
Question: What is the main advantage of inheritance?
Answer: Reusability and hierarchical classification.
Question: Complete the phrase: "One interface, ______ behaviors."
Answer: Multiple.
Question: Name the four pillars of OOP.
Answer: Inheritance, Polymorphism, Encapsulation, Abstraction.