Which of the following is also known as instance of class ?
Friend function
Object
Member function
Member variable
How many methods are used for defining a member function ?
1
2
3
4
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
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 function is used for defining member functions with the body of the class ?
Inline function
Composite function
Inverse function
Linear function
Which operator is used for defining the member functions inside the class ?
::
:
;
,
Which of the following can access private data members or member functions of a class ?
Any function in the program
All global functions in the program
Any member function of that class
Only public member functions of that class
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 of the following access specifies is used in class definition as default ?
Protected
Public
Private
Friend
Which of the following is used in the class name to declare an object ?
Type specifier
Class name
New
Scope resolution