Passing Arguments and Returning Values
How many methods used for passing arguments to functions?
a) one
b) two
c) three
d) four
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
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
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
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