Object
Classes
Inheritance
Polymorphism
Abstraction
100

Question: What is an object?


Answer: An instance of a class.

100

Question: What keyword is used to define a class in Python?


Answer: class

100

Question: Which OOP concept allows one class to acquire properties of another?


Answer: Inheritance.

100

Question: What does polymorphism mean?


Answer: Same operation, different behavior.

100

Question: What does abstraction hide?


Answer: Internal implementation details.

200

Question: Which operator is used to access an object's attributes?


Answer: Dot (.) operator.

200

Question: What is a class?


Answer: A blueprint for creating objects.

200

Question: What are the two classes involved in inheritance?


Answer: Parent class and Child class.

200

Question: Does polymorphism allow methods with the same name to behave differently?


Answer: Yes.

200

Question: Abstraction focuses on "What to do" instead of what?


Answer: "How to do it."

300

Question: Name the three characteristics of an object.


Answer: State, Behavior, Identity.

300

Question: Which special method initializes an object's attributes?


Answer: __init__()

300

Question: Why is inheritance useful?


Answer: It promotes code reuse.

300

Question: Which OOP principle allows one interface to have multiple implementations?


Answer: Polymorphism.

300

Question: Which OOP principle simplifies complex systems?


Answer: Abstraction.

400

Question: What happens when you create an object using a class?


Answer: The constructor (__init__) is automatically called.

400

Question: Which parameter refers to the current object inside a class?


Answer: self

400

Question: Which class inherits methods and attributes?


Answer: Child class.

400

Question: True or False: Polymorphism increases code flexibility.


Answer: True.

400

Question: Why is abstraction useful?


Answer: It reduces complexity and improves usability.

500

Question: Give an example of creating a Dog object.


Answer: dog1 = Dog("Buddy", 3)

500

Question: What are variables defined inside a class called?


Answer: Attributes (or Class Attributes)

500

Question: What is the main advantage of inheritance?


Answer: Reusability and hierarchical classification.

500

Question: Complete the phrase: "One interface, ______ behaviors."


Answer: Multiple.

500

Question: Name the four pillars of OOP.


Answer: Inheritance, Polymorphism, Encapsulation, Abstraction.