What happens when a pointer is deleted twice?
Which of the following is not true about preprocessor directives
What is size of generic pointer in C++ (in 32-bit platform) ?
The two types of file structure existing in VSAM file are
In C language, a hexadecimal number is represented by writing
What defines a general set of operations that will be applied to various types of data?
Which of the following statements are true for: int f(float)
What is the index number of the last element of an array with 9 elements?
Which of the following correctly declares an array?
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 to declare a wide character in string literal?
Suppose in a hypothetical machine, the size of char is 32 bits. What would sizeof(char) return?
Under which of the following circumstances, synchronization takes place?
If the class name is X, what is the type of its “this” pointer (in a nonstatic, non-const member function)?
What is the output of this program? 1.#include
2.int main()
3.{
4.char a = '\012';
5. printf("%d", a);
6.return 0;
7.}
Which of the following will not return a value?
How do we declare an abstract class?
Which of these expressions will isolate the rightmost set bit?
Which of the following functions below can be used Allocate space for array in memory?
The correct statement for a function that takes pointer to a float, a pointer to a pointer to a char and returns a pointer to a pointer to a integer is
How many copies of a class static member are shared between objects of the class?
Which looping process checks the test condition at the end of the loop?
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.}
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.}
What is the output of this program? 1.#include
2.using namespace std;
3.void addprint()
4.{
5.static int s = 1;
6.s++;
7.cout << s;
8.}
9.int main()
10.{
11.addprint();
12.addprint();
13.addprint();
14.return 0;
15}
What does a escape code represent?
C++ provides facility to specify that the compiler should match function calls with the correct definition at the run time. This process is called as
What is the output of this program? 1.#include
2.using namespace std;
3.int main()
4.{
5.void a = 10, b = 10;
6.int c;
7.c = a + b;
8.cout << c;
9.return 0;
10.}
The value 132.54 can represented using which data type?
Which classes allow primitive types to be accessed as objects?
When is std::bad_alloc exception thrown?
96. The output of this program is int main () { cout << "Hello World!" return 0; }
Identify the incorrect statements.
int var = 10;
int *ptr = &(var + 1); //statement 1
int *ptr2 = &var; //statement 2
&var = 40; //statement 3
Which of the following library function below by default aborts the program?
What will happen when the structure is declared?
What does a reference provide?