MCQOPTIONS
Saved Bookmarks
This section includes 3 Mcqs, each offering curated multiple-choice questions to sharpen your Cpp Multiple Choice knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
-1?$ |
| A. | ptr is NULL |
| B. | exception occured: exiting |
| C. | none of the mentioned |
| Answer» C. none of the mentioned | |
| 2. |
Which statement is used to catch all types of exceptions? |
| A. | catch() |
| B. | catch(Test t) |
| C. | catch(…) |
| D. | none of the mentioned |
| Answer» C. catch(‚Äö√Ñ√∂‚àö√묨‚àÇ) | |
| 3. |
Which type of program is recommended to include in try block? |
| A. | static memory allocation |
| B. | dynamic memory allocation |
| C. | const reference |
| D. | pointer |
| Answer» D. pointer | |