The default access level assigned to members of a class is ___________.
Which of the following language feature is not an access specifier in C++?
Which of the following correctly describes the meaning of‘namespace’ feature in C++?
Which of the following statement is not true about preprocessor directives?
Which of the following is the most general exception handler that catches exception of any type?
What is the index number of the last element of an array with 9 elements?
Which of the following is not an advantage of secondary memory
Which of the STL containers store the elements contiguously (in adjacent memory locations)?
Identify the type of the variables. typedef char* CHAR;. CHAR p,q;
In C++, what is the sign of character data type by default?
In a C language ‘3’ represents
Identify the correct sentence regarding inequality between reference and pointer.
Which of the following is not true about preprocessor directives
What will be output of this program? 1.#include
2.using namespace std;
3.int main()
4.{
5.int i = 3;
6.int l = i / -2;
7.int k = i % -2;
8.cout << l << k;
9.return 0;
10.}
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
The return value of the following code is Class1& test(Class1 obj) Class1 *ptr = new Class1(); _________ return ptr;
Which of the following operators below allow to define the member functions of a class outside the class?
0946, 786427373824, ‘x’ and 0X2f are _____, _____, ____ and _____ literals respectively
-
-
-
-
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 statements are false?
It is guaranteed that a ____ has atleast 8bits and a ____ has atleast 16 bits.
Which of the following operators can be overloaded?
Which of the following is not one of the sizes of the floating point types?
Which of the following functions below can be used Allocate space for array in memory?
How do we declare an abstract class?
Which of the following is not a standard exception built in C++.
What does the following statement mean? int (*fp)(char*)
When does the void pointer can be dereferenced?
Observe following program and answer 100 class Example{public: int a,b,c; Example(){a=b=c=1;} //Constructor 1 Example(int a){a = a; b = c = 1;} //Constructor 2 Example(int a,int b){a = a; b = b; c = 1;} //Constructor 3 Example(int a,int b,int c){ a = a; b = b; c = c;} //Constructor 4 } In the above example of constructor overloading, the following statement will call which constructor Example obj = new Example (1,2,3);
Which is used to indicate single precision value?
When a language has the capability to produce new data type mean, it can be called as
Which of the following will not return a value?
Identify the incorrect statements.
int var = 10;
int *ptr = &(var + 1); //statement 1
int *ptr2 = &var; //statement 2
&var = 40; //statement 3
What is the value of the following 8-bit integer after all statements are executed?
int x = 1;
x = x << 7;
x = x >> 7;
Evaluate the following. (false && true) || false || true
How many copies of a class static member are shared between objects of the class?
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.}