The size of an object or a type can be determined using which operator?
What is the output of this program? 1.#include
2.using namespace std;
3.int main ()
4.{
5.int numbers[5];
6.int * p;
7.p = numbers; *p = 10;
8.p++; *p = 20;
9.p = &numbers[2]; *p = 30;
10.p = numbers + 3; *p = 40;
11.p = numbers; *(p + 4) = 50;
12.for (int n = 0; n < 5; n++)
13. cout << numbers[n] << ",";
14. return 0;
15.}
Which of the following language is not supported by C++?
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);
Which of the following is not a valid conditional inclusions in preprocessor directives
Which of the following is not one of the sizes of the floating point types?
Minimum number of temporary variable needed to swap the contents of 2 variables is:
What defines a general set of operations that will be applied to various types of data?
Identify the correct sentence regarding inequality between reference and pointer.
Implementation dependent aspects about an implementation can be found in ____
How do we define a constructor?
The declaration of structure is also called as?
Which of the following is the most common way of implementing C++?
Which one of the following is not a fundamental data type in C++
Which of the following is true about const member functions?
Which is used to indicate single precision value?
How the constants are declared?
What will happen when defining the enumerated type?
Which reference modifier is used to define reference variable?
Which of these expressions will make the rightmost set bit zero in an input integer x?
Which of the following is a valid floating point literal?
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 the following program? 1.#include
2.using namespace std;
3.int main()
4.{
5.int a = 5;
6.float b;
7.cout << sizeof(++a + b);
8.cout << a;
9.return 0;
10.}
Identify the incorrect option.
What is the output of this program? 1.#include
2.using namespace std;
3.int main()
4.{
5.int arr[] = {4, 5, 6, 7};
6.int *p = (arr + 1);
7.cout << arr;
8.return 0;
.}
Which of the following is not a valid conditional inclusions in preprocessor directives
Which of the two operators ++ and — work for the bool datatype in C++?
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.}
The value 132.54 can represented using which data type?
How do we declare an ‘interface’ class?
96. The output of this program is int main () { cout << "Hello World!" return 0; }
It is guaranteed that a ____ has atleast 8bits and a ____ has atleast 16 bits.
Which of the following gives the memory address of the first element in array?
Each pass through a loop is called a/an
What is the output of this program? 1.#include
2.using namespace std;
3.void addprint()
4.{
5.static int s = 1;
6.s++;
7.cout << s;
8.}
9.int main()
10.{
11.addprint();
12.addprint();
13.addprint();
14.return 0;
15}
Which of the following is the most preferred way of throwing and handling exceptions?
Which of the following relationship is known as inheritancerelationship?
Which of the following is the most general exception handler that catches exception of ‘any type’?