C++ Test
Number of questions:10
Q.1 The keyword used to transfer control from a function back to the calling function is
Q.2 What is the notation for following functions?
1. int f(int a, float b)
{
/* Some code */
}
2. int f(a, b)
int a; float b;
{
/* Some code */
}
Q.3 How many times the program will print "IndiaBIX" ?
#include
int main()
{
printf("IndiaBIX");
main();
return 0;
}
Q.4 Destructor has the same name as the constructor and it is preceded by ______ .
Q.5 For automatic objects, constructors and destructors are called each time the objects
Q.6 Which constructor function is designed to copy objects of the same class type?
Q.7 Which of the following statement is correct?
Q.8 Which of the following statement is incorrect?
Q.9 When are the Global objects destroyed?
Q.10 Copy constructor must receive its arguments by __________ .


