What is empty class ?
Class without object
Class without member function
Class without member function and data members
Class without function definition
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 operator has the facility to access global variable ?
Scope resolution operator
Bitwise operator
Assignment operator
Relational operator
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 also known as instance of class ?
Friend function
Object
Member function
Member variable
What are the two access specifiers in C++ ?
Void and free
Public and private
Int and double
Formal and informal
Which of the following statement is correct ?
Data items in a class must be private
Both data and functions can be either private or public
Member functions of a class must be private
Constructor of a class cannot be private
Which of the following is used in the class name to declare an object ?
Type specifier
Class name
New
Scope resolution
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