How do we represent a wide character of the form wchar_t?
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}
Which of the following is the most general exception handler that catches exception of any type?
Minimum number of temporary variable needed to swap the contents of 2 variables is:
Size of C++ objects are expressed in terms of multiples of the size of a ____ and the size of a char is ____.
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.}
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.}
Is bool a fundamental datatype in C++?
Class derived: public base1, public base2 { } is an example of
How do we declare an ‘interface’ class?
Which one of the following is not a fundamental data type in C++
Evaluate the following. (false && true) || false || true
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.}
When does the void pointer can be dereferenced?
How do we declare an abstract class?
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.}
How do we define a constructor?
Which of the following operators below allow to define the member functions of a class outside the class?
What will be the output of the this program? 1.#include
2.using namespace std;
3.int main ()
4.{
5.int array[] = {0, 2, 4, 6, 7, 5, 3};
6.int n, result = 0;
7.for (n = 0; n < 8; n++) {
8.result += array[n];
9.}
10.cout << result;
11.return 0;
12.}
What will happen when defining the enumerated type?
Is the size of character literals different in C and C++?
Under which of the following circumstances, synchronization takes place?
Which of the following languages is a subset of C++ language?
Inline functions are invoked at the time of
Is bool a fundamental datatype in C++?
What is the output of this program?
1.#include
2.using namespace std;
3.int main()
4.{
5.int *p;
6.void *vp;
7.if (vp == p);
8.cout << "equal";
9.return 0;
10.}
What is size of generic pointer in C++ (in 32-bit platform) ?
Which of the following gives the memory address of the first element in array?
The pointer can point to any variable that is not declared with which of these?
Which of the two operators ++ and — work for the bool datatype in C++?
It is guaranteed that a ____ has atleast 8bits and a ____ has atleast 16 bits.
What is the output of this program? 1.#include
2.using namespace std;
3.int main()
4.{
5.char str[5] = "ABC";
6.cout << str[3];
7.cout << str;
8.return 0;
9.}
Which of the following is not a valid conditional inclusions in preprocessor directives
96. The output of this program is int main () { cout << "Hello World!" return 0; }
Which of the following below can perform conversions between pointers to related classes?
How many characters are specified in the ASCII scheme?
Which reference modifier is used to define reference variable?