OOPS Quiz (Set 1) OOPS Quiz (Set 1) 1 / 10 What is abstraction? Abstraction is the hiding of the implementation details of a class Abstraction is the hiding of the data and methods of a class Abstraction is the grouping of data and methods together 2 / 10 What is encapsulation? Encapsulation is the hiding of data and methods within a class Encapsulation is the sharing of data and methods between classes Encapsulation is the grouping of data and methods together 3 / 10 What is an object? An object is an instance of a class An object is an instance of a function An object is an instance of a variable 4 / 10 What is a class? A class is a blueprint for creating objects A class is a blueprint for creating functions A class is a blueprint for creating variables 5 / 10 What is object-oriented programming (OOP)? OOP is a programming paradigm that treats data as objects, which have both data and methods associated with them OOP is a programming paradigm that treats data as functions OOP is a programming paradigm that treats data as variables 6 / 10 We can define shallow copy as Member wise copying of the object Same as deep copy Bitwise copying of objects None of the above 7 / 10 From the following options, what can we consider true for making a class abstract? The class must not have method definitions. The class must have a constructor that takes no arguments. The class must have a function definition equal to zero. The class which cannot be instantiated as they are mainly for inheritance. 8 / 10 The characteristics of an object that distinguish it from all other kinds of objects Aggregation Abstraction Modularity None of the above 9 / 10 A recursive function would result in infinite recursion, if the following were left out Base call Recursive call Subtraction Local variable declarations 10 / 10 What are the major elements in an object model from the below options? Abstraction, Encapsulation and persistence Hierarchy, concurrency and typing Abstraction, encapsulation and hierarchy Typing Your score isThe average score is 0% 0% Restart quiz