1. What is the main goal of object-oriented programming (OOP)? A. To model real-world entities and their interactions B. To maximize efficiency C. To use fewer lines of code D. To create simple programs Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board
2. What is an object in the context of object-oriented programming? A. A specific data type B. A built-in function C. An instance of a class D. A variable in Python Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C No explanation is given for this question Let's Discuss on Board
3. What is a class in the context of object-oriented programming? A. A blueprint for creating objects B. A built-in function C. A variable in Python D. A specific data type Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board
4. Which principle of OOP promotes the reusability of code and allows a class to inherit properties and methods from another class? A. Polymorphism B. Abstraction C. Inheritance D. Encapsulation Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C No explanation is given for this question Let's Discuss on Board
5. What is the purpose of abstraction in object-oriented programming? A. It hides complex implementation details and only exposes essential features B. It defines a new class C. It creates abstract objects D. It abstracts the data Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board
6. What does built-in function type do in context of classes? A. Determines the object name of any value B. Determines the class name of any value C. Determines class description of any value D. Determines the file name of any value Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option B No explanation is given for this question Let's Discuss on Board
7. What does single-level inheritance mean? A. A subclass derives from a class which in turn derives from another class B. A single superclass inherits from multiple subclasses C. A single subclass derives from a single superclass D. Multiple base classes inherit a single derived class Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C No explanation is given for this question Let's Discuss on Board
8. Which of the following best describes polymorphism? A. Ability of a class to derive members of another class as a part of its own definition B. Means of bundling instance variables and methods in order to restrict access to certain class members C. Focuses on variables and passing of variables to functions D. Allows for objects of different types and behaviour to be treated as the same general type Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option D No explanation is given for this question Let's Discuss on Board
9. What does encapsulation refer to in object-oriented programming? A. It defines a new class B. It creates abstract objects C. It hides complex implementation details and only exposes essential features D. It abstracts the data Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C No explanation is given for this question Let's Discuss on Board
10. What is the benefit of using inheritance in object-oriented programming? A. It promotes code reusability and allows the creation of a new class based on an existing class B. It simplifies syntax C. It reduces code size D. It makes programs run faster Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board