A
Here, you will find a collection of MCQ questions on C++. Go through these questions to enhance your preparation for upcoming examinations and interviews.
To check the correct answer, simply click the View Answer button provided for each question.
Have your own questions to contribute? Click the button below to share your MCQs with others!
+ Add QuestionA
A
A
int main()
{
int a = 10;
cout<<a++;
return 0;
}
A
class base
{
public:
base()
{
cout<<"BCon";
}
~base()
{
cout<<"BDest ";
}
};
class derived: public base
{
public:
derived()
{ cout<<"DCon ";
}
~derived()
{ cout<<"DDest ";
}
};
int main()
{
derived object;
return 0;
}
A
int main()
{
int a, b=20;
a = 90/b;
return 0;
}
A
A
A
A
int main()
{
const int a=10;
a++;
cout<<a;
return 0;
}
A
int main()
{
int i=0;
lbl:
cout<<"mcqbuddy.com";
i++;
if(i<5)
{
goto lbl;
}
return 0;
}
If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.
Share Your MCQ