Which of the following statements about a unique_ptr object is true?
a. A unique_ptr is a “smart pointer” for managing dynamically allocated memory.
b. When a unique_ptr goes out of scope, its destructor automatically returns the managed memory to the free store.
c. You must explicitly delete the memory that’s managed by a unique_ptr before the object goes out of scope.
d. All of the above.
c. You must explicitly delete the memory that’s managed by a unique_ptr before the object goes out of scope.
You might also like to view...
____________________ happens when input applied to a variable is larger than the memory allotted to that variable.
Fill in the blank(s) with the appropriate word(s).
__________ senses an interrupt signal, saves key control information for the currently executing program, and starts the operating system’s interrupt handler routine.
a. Hardware b. Software c. The operating system d. The file system
When a user goes to install a new application, they may have to uncompress the application first. Why are some applications compressed?
A. reduce their size B. remove encryption C. remove adware D. ensure compatibility
Give examples of systems in which it may make sense to use traditional file processing instead of a database approach.
What will be an ideal response?