This Object Oriented Programming Quiz assesses key concepts such as composition, object usage, constructors, singleton classes, and dynamic binding in C++. It is designed to enhance understanding and application skills in OOP, crucial for software development.
Operator
Function
Macro
Object
Rate this question:
Copy constructor
Default constructor
Friend constructor
Parameterized constructor
Rate this question:
Abstract
Virtual
Singleton
Friend
Rate this question:
Data hiding
Dynamic binding
Dynamic loading
Dynamic typing
Rate this question:
Using c++ tables
Using virtual tables
Using indexed virtual table
using polymorphic tables
Rate this question:
<<
>>
+
=
Rate this question:
Const int ShowData(void) { /* statements */ }
Int const ShowData(void) { /* statements */ }
Int ShowData(void) const { /* statements */ }
Both A and B
Rate this question:
This->x
This.x
*this.x
*this-x
Rate this question:
Only 1 is true
Only 2 is true
Both 1 and 2 are true
Both are false
Rate this question:
Public data members
Private data member
Protected Data members
Member Function
Rate this question:
Multiple
Multilevel
Distributive
Hierarchical
Rate this question:
Compiler reports an error on compilation.
Only base class function will get called irrespective of object.
Only derived class function will get called irrespective of object.
Base class object will call base class function and derived class object will call derived class function.
Rate this question:
Classes cannot have data as protected members.
Structures can have functions as members.
Class members are public by default.
Structure members are private by default.
Rate this question:
Protected
Public
Private
Rate this question:
A static member function can access only static data members of a class.
A static data member is shared among all the object of the class.
A static data member can be accessed directly from main().
A static member function can access only static data members of a class and A static data member is shared among all the object of the class.
Rate this question:
Abstarction
Inheritence
Dynamic Binding
Encapsulation
Rate this question:
Class is an instance of object.
Object is an instance of a class.
Class is an instance of data type.
Object is an instance of data type.
Rate this question:
1
2
3
4
Rate this question:
Int
Class
String
Double
Rate this question:
Quiz Review Timeline (Updated): May 27, 2024 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.