C++ Programming Test By Kishor Raut - August 21, 2021 FacebookTwitterPinterestWhatsApp Welcome to your C++ Programming Test 1. Reference is like a?A. PointerB. StructureC. ArrayD. None of the above 2. A References is :A. A variable that holds memory address.B. A Alias to an existing variable.C. Alias to an existing variable and holds memory address.D. None of the above 3. A variable can be declared as reference by putting _______ in the declaration.A. #B. $C. &D. * 4. If a function receives a reference to a variable, can it modify the value of the variable?A. YesB. NoC. We can not pass reference to a variable.D. Reference can not contain function. 5. Through references we can avoid?A. wastage of memoryB. wastage of CPU timeC. Both A and BD. None of the above 6. References can be NULL?A. References has constant value 0.B. References has constant value .C. Yes.D. No. 7. How many objects reference can refer during its lifetime?A. 1B. 2C. 3D. 4 8. Dereference operator is also called asA. pointerB. Reference operatorC. Offset operatorD. Deoffset operator 9. Which operator is used to de-references to an object?A. #B. &C. *D. None of the above 10. Which of the following is an advantage of reference?A. SaferB. Easier to useC. Time consumingD. Both A and B 11. 2. A References is :A. virtualB. publicC. inlineD. none of above 12. Function overloading do not depend on _______ .A. number of parameterB. order of parameterC. return valuesD. differ in type of parameter 13. Which of the following statement is correct?A. Overloaded functions can have at most one default argument.B. An overloaded function cannot have default argument.C. All arguments of an overloaded function can be default.D. A function if overloaded more than once cannot have default argument. 14.What will be the output of following code ? #include using namespace std; void sum(int x,int y=0) { cout << x+y; } int main() { sum(10); sum(10,0); sum(10,10); return 0; }A. 101020B. 1020C. errorD. 01010 15. Destructor are automatically called by the compiler when the object goes out of scope.A. trueB. false Time is Up!