C++ Quiz

Welcome to your C++ Quiz

Which of the following tags are used to nake a line break?
It is not possible to achieve to achieve inheritance of structures in c++?
Your new question!

What is the output of this code?
int main()
{
int y=7;
int x;
for(x=4;x<7;x++) {
   cout<<y;
}
cout<<x;
return 0;
}

Which of the following functions are performed by a constructor?
Which of the following type of class allows only one object of it to be created?
Which of the following concepts of OOPS means exposing only necessary information to client?
How many types of polymorphisms are supported by C++?
Which of the following concepts means adding new components to a program as it runs?
Which of the following approach is adapted by C++?

Leave a comment