Contents

Which of the following specifier       is used to restrict the use of class member within class as well as outside the class?
a) public                                               
b) private
c) protected                          
d) final

a

Which of the following keyword is used for creating object?
a) method                            
b) class
c) function                           
d) object

b

Which of the following operator is used for accessing function of class through object?
a) insertion operation (>>)                
b) extraction operator (<<)
c) dot operator (.)              
d) and operator (&)

c

How many items are used in defining member function outside the class?
a) one    
b) three 
c) five   
d) seven

c

Explanation: return-type, class-name, scope operator (::), function-name, function-body


Which function is used to fill the array with values?
a) display ()                          
b) fill ()
c) max ()                                               
d) min ()

b

Which function is used to display the values of array?
a) display ()                         
b) fill ()
c) max ()                                               
d) min ()

a