Choose a topic to test your knowledge and improve your OOPS skills
Which is not a feature of OOP in general definitions?
Which feature of OOP indicates code reusability?
What is encapsulation in OOP?
Which of the following is not true about polymorphism?
Which constructor will be called from the object created in the below C++ code? class A { int i; A() { i=0; cout<<i; } A(int x=0) { i=x; cout<<I; } }; A obj1;
What is an abstraction in object-oriented programming?
Which among the following can show polymorphism?
In which access should a constructor be defined, so that object of the class can be created in any function?
Which among the following is correct for the class defined below? class student { int marks; public: student(){} student(int x) { marks=x; } }; main() { student s1(100); student s2(); student s3=100; return 0; }
The copy constructors can be used to ____
Which constructor will be called from the object obj2 in the following C++ program? class A { int i; A() { i=0; } A(int x) { i=x+1; } A(int y, int x) { i=x+y; } }; A obj1(10); A obj2(10,20); A obj3;
Which among the following represents correct constructor?
What happens when an object is passed by reference?
Which access specifier is usually used for data members of a class?
How to access data members of a class?
Which feature of OOP reduces the use of nested classes?
Which keyword among the following can be used to declare an array of objects in java?
Which operator can be used to free the memory allocated for an object in C++?
Which of the following is not a property of an object?
Which type of members canβt be accessed in derived classes of a base class?
Which among the following best describes the Inheritance?
Single level inheritance supports _______ inheritance.
How to overcome diamond problem?
Which keyword is used to declare virtual functions?
What happens if non static members are used in static member function?
What is friend member functions in C++?
Where is the memory allocated for the objects?
Which of the following best describes member function overriding?
Encapsulation and abstraction differ as _____
Which feature of OOP is exhibited by the function overriding?
How to access the private member function of a class?
Which keyword should be used to declare static variables?
Which is correct syntax for declaring pointer to object?
If data members are private, what can we do to access them from the class object?
Which among the following is not a necessary condition for constructors?
Object being passed to a copy constructor ______
If in multiple inheritance, class C inherits class B, and Class B inherits class A. In which sequence are their destructors called if an object of class C was declared?
Instance of which type of class canβt be created?
_______ underlines the feature of Polymorphism in a class.
Which feature in OOP is used to allocate additional functions to a predefined operator in any language?
Which feature can be implemented using encapsulation?
If a function can perform more than 1 type of tasks, where the function name remains same, which feature of OOP is used here?
If different properties and functions of a real world entity is grouped or embedded into a single element, what is it called in OOP language?
Which of the following is not a feature of pure OOP?
Which among the following doesnβt come under OOP concept?
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; } };
Which feature may be violated if we donβt use classes in a program?
How many basic features of OOP are required for a programming language to be purely OOP?
The feature by which one object can interact with another object is ______
Which feature in OOP is used to allocate additional function to a predefined operator in any language?