Which of the following gives the memory address of the first element in array?
Which of the two operators ++ and — work for the bool datatype in C++?
Is bool a fundamental datatype in C++?
‘Prime area’ in context of file system is defined as
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 this program? 1.#include
2.using namespace std;
3.#define PI 3.14159
4.int main ()
5.{
6.float r = 2;
7.float circle;
8.circle = 2 * PI * r;
9.cout << circle;
10.return 0;
11.}
Which of these expressions will make the rightmost set bit zero in an input integer x?
Which of the following is not a file operation:
What will happen in this code? int a = 100, b = 200;
int *p = &a, *q = &b;
p = q;
Which variable does equals in size with enum variable?
Which of the following is a valid destructor of the class name “Country”
Implementation dependent aspects about an implementation can be found in ____
When a language has the capability to produce new data type mean, it can be called as
Which datatype is used to represent the absence of parameters?
The conditional compilation
Pick the right option Statement 1:A definition is also a declaration.
Statement 2:An identifier can be declared just once.
Select the right option: Given the variables p, q are of char type and r, s, t are of int type (1) t = (r * s) / (r + s); (2) t = (p * q) / (r + s);
What’s wrong? (x = 4 && y = 5) ? (a = 5) ; (b = 6);
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.}
What is the output of the following program? 1.#include
2.using namespace std;
3.int main ( )
4.{
5.static double i;
6.i = 20;
7.cout << sizeof(i);
8.return 0;
9.}
In C++, what is the sign of character data type by default?
What defines a general set of operations that will be applied to various types of data?
Under which of the following circumstances, synchronization takes place?
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}
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.}
Evaluate the following (false && true) || false || 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.}
What is meaning of following declaration? int(*p[5])();
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 correctly describes the meaning of ‘namespace’ feature in C++?
Identify the incorrect option.
What will be used when terminating a structure?
Which of the following languages is a subset of C++ language?
0946, 786427373824, ‘x’ and 0X2f are _____, _____, ____ and _____ literals respectively
-
-
-
-
Identify the type of the variables. typedef char* CHAR;. CHAR p,q;
The two types of file structure existing in VSAM file are