MCQs
Total Questions : 10
Answer: Option D. -> All of the mentioned
None.
Answer: Option B. -> blank space
None.
Answer: Option B. -> The location of variable in memory is passed to the function so that it can use the same memory area for its processing
In pass by reference, we can use the function to access the variable and it can modify it.
Therefore we are using pass by reference.
Answer: Option C. -> Two or more functions with the same name but different number of parameters or type.
None.
Answer: Option D. -> 10 2.5
In this program, we are divide and multiply the values.
Output:
$ g++ over3.cpp
$ a.out
10 2.5
Answer: Option D. -> compile time error
None.
Answer: Option C. -> both of the mentioned
None.
Answer: Option A. -> return function
While overloading the return function, it will rise a error, So we can’t overload the return function.
Answer: Option B. -> constructor overloading
In constructor overloading, we will be using the same options availed in function overloading.
Answer: Option A. -> 5500.263
In this program, we are printing the values and the values will be print(5) will be printed first
because of the order of the execution.
Output:
$ g++ over.cpp
$ a.out
5500.263