Answer the following statements true (T) or false (F)

1. Destructor functions are often used to free memory that was allocated by the object.
2. While a class's member functions may be overloaded, the constructor cannot be overloaded.
3. When using smart pointers to dynamically allocate objects in C++ 11, it is unnecessary to delete the dynamically allocated objects because the smart pointer will automatically delete them.
4. When passing a file stream object to a function, you should always pass it by reference.


1. T
2. F
3. T
4. T

Computer Science & Information Technology

You might also like to view...

Which of the following statements about tiles is FALSE?

A) Groups of tiles can be named. B) Tiles must be left where Windows places them. C) Tiles can be grouped. D) Tile changes made to a computer appear on any computer when logging on with a Microsoft account.

Computer Science & Information Technology

Microsoft Outlook is one of the most widely used ________ software applications

A) word processor B) document management system C) personal information manager D) financial

Computer Science & Information Technology

The ________ is the entire chart and all of its elements

Fill in the blank(s) with correct word

Computer Science & Information Technology

Logical errors are program errors that occur if you do not correctly follow Ruby's syntactical rules when writing your program statements

Answer the following statement true (T) or false (F)

Computer Science & Information Technology