Which term is used to represent a group of similar and related objects ?
Module
Function
Class
Composition
Which of the following can be connected by the dot operator ?
A class member and a class object
A class object and a class
A class and a a member of that class
A class object and a member of that class
Which of the following can access private data members of a class ?
Any class members of the derived class
Any derived class member functions
Any member function of that class
Only private member functions of that class
What will happen 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 operator is used for defining the member functions outside the class ?
::
:
;
,
What is the general form of declaring an object ?
Class_name Object_name;
Class_name Object_name
datatype Object_name;
Class_name Object_name=value;
What is empty class ?
Class without object
Class without member function
Class without member function and data members
Class without function definition
Which of the following keyword is used to control access to a class member ?
Default
Break
goto
Protected
Which of the following is the default access specifier used in class definition?
Public
Private
Friend
What is a global object?
object that is declared outside all the functions.
object that is declared inside all the functions.
normal class objects.
None of the above