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 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
Which of the following access specifies is used in class definition as default ?
Protected
Public
Private
Friend
How many copy of static data members can be created for the entire class ?
1
2
3
4
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 operator is used for defining the member functions inside the class ?
::
:
;
,
How many methods are used for defining a member function ?
Which of the following keyword is used to control access to a class member ?
Default
Break
What will be used when terminating a class ?
}
;;
Why an object is said to be global objects ?
If the object can be used outside all the functions
If the object can be used inside all the functions
Both 1 and 2
None of the above