11. Which principle of OOP emphasizes the bundling of data and methods that operate on the data into a single unit? A. Encapsulation B. Inheritance C. Abstraction D. Polymorphism 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
12. Which of the following best describes inheritance? 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 implementation of elegant software that is well designed and easily modified 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
13. Which of the following statements is wrong about inheritance? A. Protected members of a class can be inherited B. The inheriting class is called a subclass C. Private members of a class can be inherited and accessed D. Inheritance is one of the features of OOP 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
14. Which of the following is not a type of inheritance? A. Double-level B. Multi-level C. Single-level D. Multiple 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
15. What does built-in function help do in context of classes? A. Determines the object name of any value B. Determines the class identifiers of any value C. Determines class description of any built-in type D. Determines class description of any user-defined built-in type 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
16. Which of the following statements isn't true? A. A non-private method in a superclass can be overridden B. A derived class is a subset of superclass C. The value of a private variable in the superclass can be changed in the subclass D. When invoking the constructor from a subclass, the constructor of superclass is automatically invoked 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
17. What is polymorphism in object-oriented programming? A. It allows objects of different classes to be treated as objects of the same class B. It creates polygons C. It makes code more complex D. It defines methods 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
18. What is the difference between a class and an object in object-oriented programming? A. A class is a blueprint for creating objects, while an object is an instance of a class B. A class is an object C. They are the same D. An object is a class 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
19. What is a class variable in object-oriented programming? A. A variable shared among all instances of a class B. A variable within a method C. A built-in variable 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
20. What is the biggest reason for the use of polymorphism? A. It allows the programmer to think at a more abstract level B. There is less program code to write C. The program will have a more elegant design and will be easier to maintain and update D. Program code takes up less space 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