

MCQOPTIONS
Saved Bookmarks
This section includes 5 Mcqs, each offering curated multiple-choice questions to sharpen your Technical MCQs knowledge and support exam preparation. Choose a topic below to get started.
1. |
Which of the following is correct option? |
A. | Compiler Error |
B. | 8 10 |
C. | 8 8 |
D. | 10 8 |
E. | |
Answer» C. 8 8 | |
2. |
Which of the following is the correct order involves in the process of operator overloading.i) Define the operator function to implement the required operations.ii) Create a class that defines the data type that is to be used in the overloading operation.iii) Declare the operator function op() in the public part of the class. |
A. | 1-i, 2-ii, 3-iii |
B. | 1-ii, 2-iii, 3-i |
C. | 1-ii, 2-i, 2-iii |
D. | 1-iii, 2-ii, 3-i |
Answer» C. 1-ii, 2-i, 2-iii | |
3. |
Which of the following operator functions cannot be global, i.e., must be a member function. |
A. | new |
B. | delete |
C. | Converstion Operator |
D. | All of the above |
Answer» D. All of the above | |
4. |
While overloading binary operators using member function, it requires ___ argument? |
A. | 2 |
B. | 1 |
C. | 0 |
D. | 3 |
Answer» C. 0 | |
5. |
Which is the correct statement anout operator overloading in C++?. |
A. | Only arithmetic operators can be overloaded |
B. | Associativity and precedence of operators does not change |
C. | Precedence of operators are changed after overlaoding |
D. | Only non-arithmetic operators can be overloaded |
Answer» C. Precedence of operators are changed after overlaoding | |