Which term is used to represent a group of similar and related objects ?
Module
Function
Class
Composition
Which of the following is correct when a class is inherited publically ?
Public members of the base class become protected members of derived class
Public members of the base class become private members of derived class
Private members of the base class become protected members of derived class
Public members of the base class become public members of derived class
Which of the following access specifies is used in class definition as default ?
Protected
Public
Private
Friend
What is empty class ?
Class without object
Class without member function
Class without member function and data members
Class without function definition
Why an object is said to be global objects ?
If the object can be used outside all the functions
If the object can be used inside all the functions
Both 1 and 2
None of the above
How many copy of static data members can be created for the entire class ?
1
2
3
4
What are the two access specifiers in C++ ?
Void and free
Public and private
Int and double
Formal and informal
Which of the following statement is correct with respect to the use of friend keyword inside a class ?
A private data member can be declared as a friend
A class may be declared as a friend
An object may be declared as a friend
We can use friend keyword as a class name
Which operator has the facility to access global variable ?
Scope resolution operator
Bitwise operator
Assignment operator
Relational operator
Which of the following type of data member can be shared by all instance of its class ?
Inherited
Static