Q. The following operator can be used to calculate the value of one number raised to another.
Q. Which type of data file is analogous to an audio cassette tape?
Q. What is meant by containership
?
Q. What is the output of the following C++ program?
#include <iostream>
using namespace std;
#define MIN(a,b) (((a)<(b)) ? a : b)
int main()
{
float i, j;
i = 100.1;
j = 100.01;
cout <<"The minimum is"<< MIN(i, j)<< endl;
return 0;
}
Q. What is the output of the following C++ program?
void main()
{
}
Q. What does derived class does not inherit from the base class?
Q. What is the output of the following C++ program?
#include <iostream>
using namespace std;
int main()
{
cout<< "Value of __LINE__ : " << __LINE__ << endl;
cout<< "Value of __FILE__ : " << __FILE__ << endl;
cout<< "Value of __DATE__ : " << __DATE__ << endl;
cout<< "Value of __TIME__ : " << __TIME__ << endl;
return 0;
}
Q. What is the output of the following C++ program?
#include <iostream.h>
using namespace std;
#define SquareOf(x) x * x
int main()
{
int x;
cout<< SquareOf(x + 4);
return 0;
}
Q. What is the output of the following C++ program?
#include <iostream.h>
using namespace std;
#define PR(id) cout << id;
int main()
{
int i = 10;
PR(i);
return 0;
}
Q. What is the output of the following C++ program?
#include <iostream.h>
using namespace std;
#define MAX 10
int main()
{
int num;
num = ++MAX;
cout << num;
return 0;
}
Q. What is the other name of the macro
?
Q. Which is the storage specifier used to modify the member variable even though the class object is a constant object?
Q. Which data type can be used to hold a wide character in C++?
Q. What is the output of the following C++ program?
#include <iostream>
using namespace std;
int main()
{
int *p = new int;
delete p;
delete p;
cout<<"Done";
return 0;
}
Q. What is the output of the following C++ program?
#include <iostream>
using namespace std;
void f()
{
static int i = 3;
cout << (i);
if(--i) f();
}
int main()
{
f();
return 0;
}