Which of the following operators can be implemented as a nonmember operator?
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 main()
4.{
5.int a = 5, b = 10, c = 15;
6.int *arr[ ] = {&a, &b, &c};
7.cout << arr[1];
8.return 0;
9.}
In mulit-list organization
Under which of the following circumstances, synchronization takes place?
Which of the following operators below allow to define the member functions of a class outside the class?
Identify the type of the variables. typedef char* CHAR;. CHAR p,q;
What happens when a pointer is deleted twice?
Which reference modifier is used to define reference variable?
What is the output of this program? 1.#include
2.using namespace std;
3.int main()
4.{
5.int arr[] = {4, 5, 6, 7};
6.int *p = (arr + 1);
7.cout << *arr + 9;
8.return 0;
9.}
Which one of the following is not a valid reserved keyword in C++
Which type is best suited to represent the logical values?
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?
Which of the following is not true about preprocessor directives
Which of the following correctly describes C++ language?
Identify the user-defined types from the following?
In C++, what is the sign of character data type by default?
What happens when a null pointer is converted into bool?
What is the value of the bool? bool is_int(789.54)
In C++, what is the sign of character data type by default?
How many copies of a class static member are shared between objects of the class?
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.}
Identify the incorrect option.
How do we represent a wide character of the form wchar_t?
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 of the following is not one of the sizes of the floating point types?
The output of this program is int a = 10; void main(){ int a = 20; cout << a << ::a;}
What will happen when the structure is declared?
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.}
Which of the following is not a valid conditional inclusions in preprocessor directives
Which of the following statements are false?
Which of these expressions will return true if the input integer v is a power of two?
Which datatype is used to represent the absence of parameters?
Which of the following is the most preferred way of throwing and handling exceptions?
Choose the right option. string* x, y;