What will happen when an argument is passed by reference?
A variable is created in the function to hold the argument's value.
A function cannot access the argument's value.
A temporary variable is created in the calling program to hold the argument's value.
The function accesses the argument's original value in the calling program.
Which operator is used for defining the member functions outside the class ?
::
:
;
,
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 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
Which of the following type of data member can be shared by all instance of its class ?
Public
Inherited
Static
Friend
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;
Which of the following can access private data members of a class ?
Any class members of the derived class
Any derived class member functions
Any member function of that class
Only private member functions of that class
Which of the following keyword is used to control access to a class member ?
Default
Break
goto
Protected
Which of the following is also known as instance of class ?
Friend function
Object
Member function
Member variable
Which term is used to represent a group of similar and related objects ?
Module
Function
Class
Composition