which of the following is the function defined within a class?
Inline function
Composite function
Inverse function
Linear function
What is empty class ?
Class without object
Class without member function
Class without member function and data members
Class without function definition
Which of the following is the default access specifier used in class definition?
Protected
Public
Private
Friend
Which of the following argument is used to pass a copy of an entire object to the function ?
Pass by reference
Pass by value
Recursion
Setting a condition
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 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 ?
Friend function
Object
Member function
Member variable
Which operator is used for defining the member functions outside the class ?
::
:
;
,
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
What is the general form of declaring an object ?
Class_name Object_name;
Class_name Object_name
datatype Object_name;
Class_name Object_name=value;