Which of the following is not a component of file system
Void pointer can point to which type of objects?
What will be the output of this program? 1.#include
2.using namespace std;
3.int array1[] = {1200, 200, 2300, 1230, 1543};
4.int array2[] = {12, 14, 16, 18, 20};
5.int temp, result = 0;
6.int main()
7.{
8.for (temp = 0; temp < 5; temp++) {
9.result += array1[temp];
10.}
11.for (temp = 0; temp < 4; temp++) {
12.result += array2[temp];
13.}
14.cout << result;
15.return 0;
16.}
What is the output of this program? 1.#include
2.using namespace std;
3.enum colour {
4.green, red, blue, white, yellow, pink
5.};
6.int main()
7.{
8.cout << green<< red<< blue<< white<< yellow<< pink;
9.return 0;
10}
Statement scanf(“%d”,80);
Evaluate the following. (false && true) || false || true
When class B is inherited from class A, what is the order in which the constructers of those classes are called
In C language, a hexadecimal number is represented by writing
In C++, what is the sign of character data type by default?
Identify the user-defined types from the following?
For what values of the expression is an if-statement block not executed?
It is guaranteed that a ____ has atleast 8bits and a ____ has atleast 16 bits.
Inline functions are invoked at the time of
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.}
What is the output of the following program? 1.#include
2.using namespace std;
3.int main()
4.{
5.float i = 123.0f;
6.cout << i << endl;
7.return 0;
8.}
What is the output of this program? 1.#include
2.using namespace std;
3.int main()
4.{
5.int i;
6.char *arr[] = {"C", "C++", "Java", "VBA"};
7.char *(*ptr)[4] = &arr;
8.cout << ++(*ptr)[2];
9.return 0;
10.}
0946, 786427373824, ‘x’ and 0X2f are _____, _____, ____ and _____ literals respectively
-
-
-
-
What happens when a null pointer is converted into bool?
Which of the following is a valid destructor of the class name “Country”
Which of the following operators below allow to define the member functions of a class outside the class?
What is the output of the following program? 1.#include
2.using namespace std;
3.int main()
4.{
5.int num1 = 10;
6.float num2 = 20;
7.cout << sizeof(num1 + num2);
8.return 0;
9.}
Which of the following statements are true for: int f(float)
What is the output of this program? 1.#include
2.using namespace std;
3.int main()
4.{
5.char *ptr;
6.char Str[] = "abcdefg";
7.ptr = Str;
8.ptr += 5;
9.cout << ptr;
10.return 0;
11.}
How do we declare an ‘interface’ class?
There is nothing like a virtual constructor of a class.
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.}
Which of these expressions will return true if the input integer v is a power of two?
Which of the following will not return a value?
Which is correct with respect to size of the datatypes?
To which of these enumerators can be assigned?
What is the output of this program? 1.#include
2.using namespace std;
3.int main()
4.{
5.int array[] = {10, 20, 30};
6.cout << -2[array];
7.return 0;
8.}
The size_t integer type in C++ is?
Which of the following statement is not true about preprocessor directives?
Which datatype is used to represent the absence of parameters?
How do we define a constructor?
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 of the following operators can be overloaded?