Question: 16 -
Which of the following keywords is used to control access to a class member?
-
Protected
-
Asm
-
Default
-
Break
Answer:
Protected
Solution not available.
Question: 17 -
Which of the following statement is correct with respect to the use of friend keyword inside a class?
-
We can use friend keyword as a class name.
-
A class may be declared as a friend.
-
A private data member can be declared as a friend.
-
An object may be declared as a friend.
Answer:
A class may be declared as a friend.
Solution not available.
Question: 18 -
Which of the following also known as an instance of a class?
-
Object
-
Friend Functions
-
Member Functions
-
Member Variables
Answer:
Object
Solution not available.
Question: 19 -
Which of the following can access private data members or member functions of a class?
-
All global functions in the program.
-
Any function in the program.
-
Only public member functions of that class.
-
Any member function of that class.
Answer:
Any member function of that class.
Solution not available.
Question: 20 -
Which of the following type of data member can be shared by all instances of its class?
-
Static
-
Friend
-
Public
-
Inherited
Answer:
Static