Object Oriented Programming

Share this

Object-oriented programming (OOP) is a programming paradigm based on the concept of "objects", which may contain data, in the form of fields, often known as attributes; and code, in the form of procedures, often known as methods. For example, a person is an object which has certain properties such as height, gender, age, etc. It also has certain methods such as move, talk, and so on. Object - This is the basic unit of object-oriented programming. That is both data and function that operate on data are bundled as a unit called an object.

Who invented OOP?
Pure OOP can be implemented without using class in a program. (True or False)
Which Feature of OOP illustrated the code reusability?
Which language does not support all 4 types of inheritance?
Which of the following is not type of class?
What is default access specifier for data members or member functions declared within a class without any specifier, in C++ ?
Size of a class is :
Class with main() function can be inherited (True/False)
Which definition best describes an object?
Which among the following is false?
How members of an object are accessed?
Object declared in main() function:
If a function can perform more than 1 type of tasks, where the function name remains same, which feature of OOP is used here?
Which of the following is not feature of pure OOP?

Which feature of OOP is indicated by the following code?









class student{ int marks; };
class topper:public student{ int age; topper(int age){ this.age=age; } };







How many basic features of OOP are required for a programming language to be purely OOP?
Which among the following best describes polymorphism?
Which among the following is the language which supports classes but not polymorphism?
Which problem may arise if we use abstract class functions for polymorphism?
In case of using abstract class or function overloading, which function is supposed to be called first?
Which among the following best describes encapsulation?
Which feature can be implemented using encapsulation?
Encapsulation helps in writing ___________ classes in java
Which among the following should be encapsulated?
Which among the following would destroy the encapsulation mechanism if it was allowed in programming?
Which among the following best defines abstraction?
Class is _________ abstraction
A phone is made up of many components like motherboard, camera, sensors and etc. If the processor represents all the functioning of phone, display shows the display only, and the phone is represented as a whole. Which among the following have highest level of abstraction?
Encapsulation and abstraction differ as:
How many types of constructors are available for use in general (with respect to parameters)?
Which among the following is true for copy constructor?
Which among the following is true?
Which among the following is not a necessary condition for constructors?
Which among the following is true for static constructor?
Which among the following best describes constructor overloading?
When is the constructor called for an object?
Which among the following best describes destructor?
Which among the following represents correct constructor?
When is the destructor of a global object called?
What happens when an object is passed by reference?
If an abstract class has all the private members, then _________
How many types of access specifiers are provided in OOP (C++)?
Which among the following is true?
Which access specifier is/are most secure during inheritance?
Which among the following best describes the protected specifier?
If the protected members are to be made accessible only to the nearest subclass and no further subclasses, which access specifier should be used in inheritance?
If members of a super class are public, then________
Which specifier can be used to inherit protected members as protected in subclass but public as public in subclass?
If the members have to be accessed from anywhere in program and other packages also, which access specifier should be used?
Which among the following is true for data members?
Which among the following is true for use of setter() and getter() function?
Which among the following best describes member functions?
Member function of a class can ____________
What is the scope of local class?
Which among the following is main advantage of using local classes?
Which among the following is correct advantage/disadvantage of nested classes?
If an object is passed by reference, the changes made in the function ___________
When an object is returned by a function, a _______________ is automatically created to hold the return value.
Which among the following is true?
How to refer to method of nested class?
What does memory allocation for objects mean?
Which operator can be used to check the size of an object?
What is array of objects?
If array of objects is declared as given below, which is the limitation on objects?
Class_name arrayName[size];
What are singleton objects?
Which among the following is main use of object?
Which among the following best describes abstract classes?
Use of pointers or reference to an abstract class gives rise to which among the following feature?
Which is the most significant feature that arises by using template classes?
How is function overloading different from template class?
Which is most appropriate definition of a base class?
Which among the following must be in a base class?
Which among the following is best definition of a derived class?
Which among the following is correct?
Which type of inheritance results in diamond problem?
Which among the following defines single level inheritance?
Which class represents the most abstracted information?
In which case the classes can be used to make more efficient program?
Which among the following best describes the Inheritance?
Which is the correct syntax of inheritance?
Which concept will result in derived class with more features (consider maximum 3 classes)?
Which among the following best describes multiple inheritance?
Which among the following best defines multilevel inheritance?
In multilevel inheritance, which is the most significant feature of OOP used?
Which among the following is best to define hierarchical inheritance?
Multiple inheritance is ____________________
Which among the following best defines the hybrid inheritance?
What does a virtual function ensure for an object, among the following?
Which is must condition for virtual function to achieve runtime polymorphism?
What is the syntax of a const member function?
How many types of member functions are possible in general?
Which among the following are valid ways of overloading the operators?
What is the syntax to overload an operator?
When is the memory allocated for an object gets free?
Which among the following best describes member function overriding?
Why do we need to handle exceptions?
Which among the following is true for class exceptions?
Which among the following best defines static variables members?
Passing object to a function _______________
Which among the following is true?
Which among the following is true?
This entry was posted in . Bookmark the permalink.

Leave a Reply




Apply Now

Indian National Aero Award [2019]

Call for Paper

3rd National Conference on Academic, Industrial, Scientific and Defence Research in Mechanical and Aeronautical Engineering