In which type does the enumerators are stored by the compiler?
In C++, what is the sign of character data type by default?
To which of these enumerators can be assigned?
What is meaning of following declaration? int(*p[5])();
How the constants are declared?
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.}
What is the output of this program? 1.#include
2.using namespace std;
3.int main()
4.{
5.int a = 5, b = 10, c = 15;
6.int arr[3] = {&a, &b, &c};
7.cout << *arr[*arr[1] - 8];
8.return 0;
9.}
How do we declare an abstract class?
Regarding following statement which of the statements is true? const int a = 100;
Which of these expressions will return true if the input integer v is a power of two?
Identify the incorrect option.
What does a escape code represent?
*ptr++ is equivalenet to:
Observe following program and answer 100 class Example{public: int a,b,c; Example(){a=b=c=1;} //Constructor 1 Example(int a){a = a; b = c = 1;} //Constructor 2 Example(int a,int b){a = a; b = b; c = 1;} //Constructor 3 Example(int a,int b,int c){ a = a; b = b; c = c;} //Constructor 4 } In the above example of constructor overloading, the following statement will call which constructor Example obj = new Example (1,2,3);
What happens when a null pointer is converted into bool?
The constants are also called as
What is the value of p? 1.#include 2.
3.using namespace std;
4.int main()
5.{
6.int p;
7.bool a = true;
8.bool b = false;
9.int x = 10;
10.int y = 5;
11.p = ((x | y) + (a + b));
12.cout << p;
13.return 0;
14.}
For what values of the expression is an if-statement block not executed?
The default access level assigned to members of a class is ___________.
What will be used when terminating a structure?
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 describes C++ language?
Which of the following statement is not true about preprocessor directives?
In C language, a hexadecimal number is represented by writing
Which of these expressions will make the rightmost set bit zero in an input integer x?
What will happen when defining the enumerated type?
Which datatype is used to represent the absence of parameters?
Can two functions declare variables(non static) with the same name.
Which one of the following is not a possible state for a pointer.
The difference between x and ‘x’ is
Which of the following members do get inherited but become private members in child class
What is the difference between overloaded functions and overridden functions?
Which of the following is not a standard exception built in C++.
What is the output of this program? #include
using namespace std;
int main()
{
int arr[] = {4, 5, 6, 7};
int *p = (arr + 1);
cout << *p;
return 0;
}
Evaluate the following. (false && true) || false || true