Contents

Passing Arguments and Returning Values


How many methods used for passing arguments to functions?
a) one  
b) two 
c) three
d) four

c

Explanation: passing constants, passing arguments by values, passing arguments by reference



Which is used to keep the call by reference value as intact?
a) static                       
b) const
c) absolute                  
d) virtual

b

By default, how the values are passed in C++?
a) call by value
b) call by reference
c) call by pointer         
d) call by object

a

What will happen when we use void in argument passing?
a) will not return value
b) will return value
c) maybe or may not return value
d) none of these

a

Which of the following shows the data type of value return by function?
a) return data type     
b) return function
c) return operator         
d) none of these

a