Contents

What is the syntax of overloading operator + for class A?
a) int [+](argument_list){}
b) int +(argument_list){}
c) A operator[+](argument_list){}   
d) A operator +(argument_list){}

d

Which of the following operators cannot be overloaded?
a) ternary or conditional operator   
b) pointer-to-member operator
c) dot operator                    
d) all of these

d

Which of the following operators should be preferred to overload as a global function rather than a member method?
a) prefix ++                          
b) postfix ++
c) comparison operator                     
d) insertion operator

d

Which of the following is correct example of unary operator?
a) /                         
b) --                        
c) &                       
d) ==

b

The functions that are used to format or modify the output stream is called….
a) manipulators 
b) input function
c) output functions             
d) none of these

a

Which of the following manipulator is used to move the cursor at the beginning of next line?
a) stew manipulator           
b) endl
manipulator
c) input manipulator
d) none of these

b