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 of the following access specifies is used in class definition as default ?
Protected
Public
Private
Friend
How many methods are used for defining a member function ?
1
2
3
4
Which function is used for defining member functions with the body of the class ?
Inline function
Composite function
Inverse function
Linear function
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 will be used when terminating a class ?
:
;
}
;;
Which operator is used for defining the member functions inside the class ?
::
,
Which term is used to represent a group of similar and related objects ?
Module
Function
Class
Composition
Which operator has the facility to access global variable ?
Scope resolution operator
Bitwise operator
Assignment operator
Relational operator
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