What is the implicit pointer that is passed as the first argument for nonstatic member functions?
Which of the following relationship is known as inheritancerelationship?
What’s wrong? (x = 4 && y = 5) ? (a = 5) ; (b = 6);
The operator used for dereferencing or indirection is ____
Which of the following statements are false?
What does the following statement mean? void a;
What is the output of the following program? 1.#include
2.using namespace std;
3.int main()
4.{
5.int x = -1;
6.unsigned int y = 2;
7.if(x > y) {
8.cout << "x is greater";
9.} else {
10.cout << "y is greater";
11.}
12.}
If class A is friend of class B and if class B is friend of class C, which of the following is true?
What is the output of this program? 1.#include
2.using namespace std;
3.int main()
4.{
5.char arr[20];
6.int i;
7.for(i = 0; i < 10; i++)
8.*(arr + i) = 65 + i;
9.*(arr + i) = '\0';
10.cout << arr;
11.return(0);
12.}
Can two functions declare variables(non static) with the same name.
What is output of the this program? 1.#include
2.using namespace std;
3.int main()
4.{
5.int i;
6.enum month {
7.JAN = 1, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC
8.};
9.for (i = MAR; i <= NOV; i++)
10.cout << i;
11.return 0;
12.}
Which of the following will not return a value?
What’s wrong? for (int k = 2, k <=12, k++)
How to declare a wide character in string literal?
Inline functions are invoked at the time of
Evaluate the following. (false && true) || false || true
Which looping process checks the test condition at the end of the loop?
What is the output of this program? 1.#include
2.using namespace std;
3.enum cat {
4.temp = 7
5.};
6.int main()
7.{
8.int age = 14;
9.age /= temp;
10.cout << "If you were cat, you would be " << age << endl;
11.return 0;
12.}
How do we represent a wide character of the form wchar_t?
Which value we cannot assign to reference?
What is the output of this program? 1.#include
2.using namespace std;
3.int main()
4.{
5.int i;
6.char c;
7.void *data;
8.i = 2;
9.c = 'd';
10.data = &i;
11.cout << "the data points to the integer value" << data;
12.data = &c;
13.cout << "the data now points to the character" << data;
14.return 0;
15.}
Which is correct with respect to size of the datatypes?
Which datatype is used to represent the absence of parameters?
In a group of nested loops, which loop is executed the most number of times?
What is the index number of the last element of an array with 9 elements?
Regarding following statement which of the statements is true? const int a = 100;
Which of the following is not a file operation:
What is meaning of following declaration? int(*p[5])();
What is the output of this program? 1.#include
2.int main()
3.{
4.char a = '\012';
5. printf("%d", a);
6.return 0;
7.}
Which of the following correctly declares an array?
____ have the return type void?
Under which of the following circumstances, synchronization takes place?
What would be the output of the following program (in 32-bit systems)? 1.#include
2.using namespace std;
3.int main()
4.{
5.cout << sizeof(char);
6.cout << sizeof(int);
7.cout << sizeof(float);
8.return 0;
9.}
Which of the following below can perform conversions between pointers to related classes?
Which of the following operator cannot be overloaded?
What is the output of this program? 1.include
2.using namespace std;
3.int main()
4.{
5.int a = 9;
6.int & aref = a;
7.a++;
8.cout << "The value of a is " << aref;
9.return 0;
10.}