When a language has the capability to produce new data type mean, it can be called as
The size_t integer type in C++ is?
How the constants are declared?
What happens when a null pointer is converted into bool?
The data elements in structure are also known as what?
Which variable does equals in size with enum variable?
What would be the output of the following program (in 32-bit systems)? 1.#include
2.using namespace std;
3.int main()
4.{
5.cout << sizeof(char);
6.cout << sizeof(int);
7.cout << sizeof(float);
8.return 0;
9.}
The two types of file structure existing in VSAM file are
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 declaration of structure is also called as?
What is the output of this program? #include
using namespace std;
int main()
{
int arr[] = {4, 5, 6, 7};
int *p = (arr + 1);
cout << *p;
return 0;
}
Which of the following statements are false?
Which reference modifier is used to define reference variable?
Under which of the following circumstances, synchronization takes place?
Which of the following correctly describes C++ language?
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.}
A void pointer cannot point to which of these?
What is the index number of the last element of an array with 9 elements?
What is the output of this program? 1.#include
2.using namespace std;
3.int main()
4.{
5.int const p = 5;
6.cout << ++p;
7.return 0;
8.}
Which of the following is not a standard exception built in C++.
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.}
The return value of the following code is Class1& test(Class1 obj) Class1 *ptr = new Class1(); _________ return ptr;
What’s wrong? for (int k = 2, k <=12, k++)
Which one of the following is not a fundamental data type in C++
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.}
If a member needs to have unique value for all the objects of that same class, declare the member as
What we can’t do on a void pointer?
Which of the following is not true about preprocessor directives
Evaluate the following (false && true) || false || true
Which one of the following is not a valid reserved keyword in C++
What is the output of this program? 1.#include
2.using namespace std;
3.int main()
4.{
5.float num1 = 1.1;
6.double num2 = 1.1;
7.if(num1 == num2)
8.cout << "stanford";
9.else
10.cout << "harvard";
11.return 0;
12.}
How many copies of a class static member are shared between objects of the class?
What defines a general set of operations that will be applied to various types of data?
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.}
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.}
96. The output of this program is int main () { cout << "Hello World!" return 0; }
Which of the following language feature is not an access specifier in C++?
Which of the following accesses the seventh element stored in array?
What is the range of the floating point numbers?