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. |
A programmer can create custom header files that must be end with |
| A. | .h extension |
| B. | .l extension |
| C. | .ios extension |
| D. | .a extension |
| E. | |
| Answer» B. .l extension | |
| 2. |
Constant function in C++ can be declared as |
| A. | Void display() |
| B. | Void display() const |
| C. | Const void display() |
| D. | Void const display() |
| Answer» C. Const void display() | |
| 3. |
The maths function acos (x) stands for |
| A. | Inverse Cosine of x |
| B. | Inverse Sine of x |
| C. | Inverse Tangent of x |
| D. | Floor of x |
| Answer» B. Inverse Sine of x | |
| 4. |
Which of the followings is/are not false about friend function ?i) It can be called / invoked with class object.ii) It has objects as arguments.iii) It can have built-in types as arguments.iv) It must declared only in public part of a class.v) It does not have this pointer as an argument. |
| A. | Only ii,iv |
| B. | Only i,ii,v |
| C. | Only ii,iii,v |
| D. | All of the above |
| Answer» D. All of the above | |
| 5. |
Which of the following functions are provided by compiler by default if we don't write in a C++ class? |
| A. | Copy constructor |
| B. | Assignment |
| C. | Constructor |
| D. | All the above |
| Answer» E. | |