Contents

The …… operator must have at least one operand of user defined.
a) New                                  
b) overloaded
c) existing                             
d) binary

b

The feature that allows you to use the same function name for separate function that have different arguments list is called……..
a) overriding                        
b) constructing
c) destructing                       
d) overloading

d

What happen when object s1 and s2 are added?
string s1=” hello’; string s2=” world”; string s3=(s1+s2).substr(5);
a) run time error                  
b) statements run perfectly
c) segmentation fault                                         
d) no string has sub function

b

A non-member function that is given access to all members of class within it is declared, is called……
a) friend function              
b) operator function
c) access function               
d) none of these

a

Which of the following operators can be overloaded?
a) +                        
b) ++      
c) --                        
d) ::

d

If you want to use a class to define objects in many different programs, you should define the class in a C++ ……… file.
a) text                                   
b) source
c) program                           
d) header

d