

MCQOPTIONS
Saved Bookmarks
This section includes 3 Mcqs, each offering curated multiple-choice questions to sharpen your Object Oriented Programming Using C++ knowledge and support exam preparation. Choose a topic below to get started.
1. |
Which is the correct syntax to delete an array of objects? |
A. | delete [] objectName; |
B. | delete * objectName; |
C. | objectName[] delete; |
D. | delete objectName[]; |
Answer» B. delete * objectName; | |
2. |
Which type of value has resulted from the delete operator? |
A. | void |
B. | void pointer |
C. | null pointer |
D. | null |
Answer» B. void pointer | |
3. |
What is a delete operator? |
A. | Deallocates a block of memory |
B. | Deallocates whole program memory |
C. | Deallocates only primitive data memory |
D. | Deallocates all the data reserved for a class |
Answer» B. Deallocates whole program memory | |