What will happen when the structure is declared?
The pointer can point to any variable that is not declared with which of these?
Which of the following languages is a subset of C++ language?
What happens when a null pointer is converted into bool?
Which of these expressions will make the rightmost set bit zero in an input integer x?
‘Prime area’ in context of file system is defined as
Choose the correct option. extern int i;
int i;
Which of these expressions will return true if the input integer v is a power of two?
Which of the following gives the memory address of the first element in array?
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[ ] = {&a, &b, &c};
7.cout << arr[1];
8.return 0;
9.}
What is the value of the bool? bool is_int(789.54)
What will be the output of this program? 1.#include
2.using namespace std;
3. int main()
4.{
5.char c = 74;
6.cout << c;
7.return 0;
8.}
Under which of the following circumstances, synchronization takes place?
When a language has the capability to produce new data type mean, it can be called as
What is the output of this program?
1.#include
2.using namespace std;
3.int func(void *Ptr);
4.int main()
5.{
6.char *Str = "abcdefghij";
7.func(Str);
8.return 0;
9.}
10.int func(void *Ptr)
11.{
12.cout << Ptr;
13.return 0;
14.}
A continue statement causes execution to skip to
0946, 786427373824, ‘x’ and 0X2f are _____, _____, ____ and _____ literals respectively
-
-
-
-
When is std::bad_alloc exception thrown?
How to declare a wide character in string literal?
Is the size of character literals different in C and C++?
Class derived: public base1, public base2 { } is an example of
What is the output of this program? 1.#include
2.using namespace std;
3.int main()
4.{
5.enum channel {star, sony, zee};
6.enum symbol {hash, star};
7.int i = 0;
8.for (i = star; i <= zee; i++) {
9.printf("%d ", i);
10.}
11.return 0;
12.}
How do we define a constructor?
Value of ix+j, if i,j are integer type and ix long type would be
Void pointer can point to which type of objects?
The value 132.54 can represented using which data type?
The operator used for dereferencing or indirection is ____
What will be used when terminating a structure?
What is the output of this program? 1.#include
2.using namespace std;
3.int main()
4.{
5.float f1 = 0.5;
6.double f2 = 0.5;
7.if(f1 == 0.5f)
8.cout << "equal";
9.else
10.cout << "not equal";
11.return 0;
12.}
Identify the incorrect option.
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.}
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.}
Identify the incorrect statement
What happens when a null pointer is converted into bool?
When class B is inherited from class A, what is the order in which the constructers of those classes are called
What is the value of the following 8-bit integer after all statements are executed?
int x = 1;
x = x << 7;
x = x >> 7;
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.}
Is bool a fundamental datatype in C++?