Overloaded Function Names

1

What are the advantages of passing arguments by reference?

A. Changes to parameter values within the function also affect the original arguments.
B. There is need to copy parameter values (i.e. less memory used)
C. There is no need to call constructors for parameters (i.e. faster)
D. All of the mentioned

2

When our function doesn't need to return anything means what will we use/send as 

parameter in function?

A. void
B. blank space
C. both a & b
D. none of the mentioned

3

What will happen while using pass by reference

A. The values of those variables are passed to the function so that it can manipulate them
B. The location of variable in memory is passed to the function so that it can use the same memory area for its processing
C. The function declaration should contain ampersand (& in its type declaration)
D. All of the mentioned

4

Overloaded functions are

A. Very long functions that can hardly run
B. One function containing another one or more functions inside it.
C. Two or more functions with the same name but different number of parameters or type.
D. none of the mentioned

5

What is the output of the following program?

1.
    #include 
2.    
    using namespace std;
3.    
    int operate (int a, int b)
4.    
    {
5.    
        return (a * b);
6.        
    }
7.    
    float operate (float a, float b)
8.    
    {
9.    
        return (a / b);
10.        
    }
11.    
    int main()
12.    
    {
13.    
        int x = 5, y = 2;
14.        
        float n = 5.0, m = 2.0;
15.        
        cout << operate(x, y) <<"\t";
16.
        cout << operate (n, m);
17.        
        return 0;
18.        
    }
A. 10.0 5.0
B. 5.0 2.5
C. 10.0 5
D. 10 2.5