Core Concepts of C++

This Test will cover the Inline Functions, Function Overloading, Constructor and Destructor, Namespace, Static Keyword, Const Keyword

Q. Function which is defined inside a class is by default treated as
Q. Function overloading do not depend on _______ .

Q. Which of the following statement is correct?
Q. What will be the output of following code ?
#include<iostream>
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;
}
Q. Destructor are automatically called by the compiler when the object goes out of scope.
Q. What does a compiler add to an empty class declaration in C++ ?
Q. Which of the following statement is not correct for a Namespace ?
Q. What will be the output of following code ?
#include<iostream>
using namespace std;

int main()
{
  int i=10;
  int &j=i;
  int k=20;
  j=k;
  cout << i << j<< k ;
  return 0;
}

Q) Destructor has the same name as the constructor and it is preceded by ______ .
Q. __________ used to make a copy of one class object from another class object of the same class type ?
Q. What will be the outputof following code ?
#include <iostream>
using namespace std;

int main()
{
  const int i = 10;
  const int j = i+10;   // line 4
  cout << i++;   // line 5
}
Q. Member inside class are by default ________
Q. Which of the following statement is not correct about References in C++ ?
Q. To have pointer to data member and member functions you need to make them public.
Q. In default argument list ,the missing argument must be the _______ argument .

SUBMIT TEST