Value of a in a = (b = 5, b + 5); is
It is guaranteed that a ____ has atleast 8bits and a ____ has atleast 16 bits.
When class B is inherited from class A, what is the order in which the constructers of those classes are called
Which of the following is a valid floating point literal?
Which of these expressions will make the rightmost set bit zero in an input integer x?
How to declare a wide character in string literal?
Which of the following operators can be implemented as a nonmember operator?
In C++, what is the sign of character data type by default?
Which of the following is the most preferred way of throwing and handling exceptions?
When a language has the capability to produce new data type mean, it can be called as
What’s wrong? (x = 4 && y = 5) ? (a = 5) ; (b = 6);
A continue statement causes execution to skip to
Which of the following statements are false?
96. The output of this program is int main () { cout << "Hello World!" return 0; }
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.}
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.}
How many characters are specified in the ASCII scheme?
What is the difference between overloaded functions and overridden functions?
Which of the following is the most common way of implementing C++?
Each pass through a loop is called a/an
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 + 9;
8.return 0;
9.}
Which of the following accesses the seventh element stored in array?
How do we declare an abstract class?
For what values of the expression is an if-statement block not executed?
What is the range of the floating point numbers?
Evaluate the following. (false && true) || false || true
In which type does the enumerators are stored by the compiler?
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);
The size_t integer type in C++ is?
The data elements in structure are also known as what?
Suppose in a hypothetical machine, the size of char is 32 bits. What would sizeof(char) return?
What is the output of this program?
1.#include
2.using namespace std;
3.int main()
4.{
5.int *p;
6.void *vp;
7.if (vp == p);
8.cout << "equal";
9.return 0;
10.}
Which looping process is best used when the number of iterations is known?
What will happen in this code? int a = 100, b = 200;
int *p = &a, *q = &b;
p = q;
Under which of the following circumstances, synchronization takes place?
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 a[2][4] = {3, 6, 9, 12, 15, 18, 21, 24};
6.cout << *(a[1] + 2) << *(*(a + 1) + 2) << 7.2[1[a]];
7.return 0;
8.}
Which of the following will not return a value?
Is bool a fundamental datatype in C++?
If a member needs to have unique value for all the objects of that same class, declare the member as