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 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 term is used to represent a group of similar and related objects ?
Module
Function
Class
Composition
What will be used when terminating a class ?
}
;;
Which of the following is used in the class name to declare an object ?
Type specifier
Class name
New
Scope resolution
What are the two access specifiers in C++ ?
Void and free
Public and private
Int and double
Formal and informal
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 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