Home / Engineering / CPP Programming MCQs / Page 4
CPP Programming MCQs | Page - 4
Dear candidates you will find MCQ questions of CPP Programming here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
M
Q. 31) How C++ compiler does differ between overloaded postfix and prefix operators?
M
Q. 32) Which of the following operator functions cannot be global?
M
Q. 33) Which of the following is true about this pointer?
M
Q. 35) Which of the following in Object Oriented Programming is supported by Function overloading and default arguments features of C++?
M
Q. 36) Output of the program?
#include<iostream>
using namespace std;
int fun(int x = 0, int y = 0, int z)
{ return (x + y + z); }
int main()
{
cout << fun(10);
return 0;
}
M
Q. 37) Output of following program?
#include <iostream>
using namespace std;
int fun(int=0, int = 0);
int main()
{
cout << fun(5);
return 0;
}
int fun(int x, int y)
{
return (x+y);
}
M
Q. 39) If a function is friend of a class, which one of the following is wrong?
M
Q. 40) Which one of the following is correct, when a class grants friend status to another class?
Explore More Categories
Click on category to learn MCQs of that category.Electronics and Communication Engineering