Which of the following type of data member can be shared by all instance of its class ?
Public
Inherited
Static
Friend
What is empty class ?
Class without object
Class without member function
Class without member function and data members
Class without function definition
Which function has full access right to even the private members of the class?
Friend function
Member function
Constant function
Static function
Which operator is used for defining the member functions outside the class ?
::
:
;
,
Which term is used to represent a group of similar and related objects ?
Module
Function
Class
Composition
Which of the following statement is correct for this program?
#include
class Bix
{
static int x;
public:
static void SetData(int xx)
x=xx;
}
void Display( )
cout<
};
int Bix::x=0;
int main( )
Bix::SetData(33);
Bix::Display( );
return 0;
The program will print the output 0.
The program will print the output 33.
The program will report run time error.
The program will report compile time error.
Which of the following is also known as instance of class ?
Object
Member variable
What is a global object?
object that is declared outside all the functions.
object that is declared inside all the functions.
normal class objects.
None of the above
which of the following is the function defined within a class?
Inline function
Composite function
Inverse function
Linear function
Which of the following can be connected by the dot operator ?
A class member and a class object
A class object and a class
A class and a a member of that class
A class object and a member of that class