C++ Programming Test

    Welcome to your C++ Programming Test

    1. Reference is like a?
    2. A References is :
    3. A variable can be declared as reference by putting _______ in the declaration.
    4. If a function receives a reference to a variable, can it modify the value of the variable?
    5. Through references we can avoid?
    6. References can be NULL?
    7. How many objects reference can refer during its lifetime?
    8. Dereference operator is also called as
    9. Which operator is used to de-references to an object?
    10. Which of the following is an advantage of reference?
    11. 2. A References is :
    12. Function overloading do not depend on _______ .
    13. Which of the following statement is correct?
    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; }
    15. Destructor are automatically called by the compiler when the object goes out of scope.