Please only answer if you actually know the answers. Positive rating will only b
ID: 3647820 • Letter: P
Question
Please only answer if you actually know the answers. Positive rating will only be received if answers are correct. Thanks!____ 34. C++ requires that a copy constructor's parameter be a(n)
A. integer data type
B. floating point data type
C. pointer variable
D. reference object
E. None of these
____ 35. C++ allows you to redefine the way ____________ work when
used with class objects.
A. compiler errors
B. preprocessor directives
C. standard operators
D. undefined variables
E. None of these
____ 36. When objects contain pointers, it is a good idea to create
an explicit ________ function.
A. destructor
B. copy constructor
C. static constructor
D. inline constructor
E. None of these
____ 37. A good reason for overloading an operator is to enable it to:
A. outperform its C language counterparts
B. work in its usual way, but with programmer-defined data types
C. operate on more operands than in its standard definition
D. operate on no operands
E. None of these
____ 38. When a class contains an instance of another class, it is
known as
A. object overloading
B. operator overloading
C. object composition
D. dynamic composition
E. None of these
____ 39. If you do not furnish one of these, an automatic memberwise
copy will be performed when one object is assigned to another
object.
A. overloaded constructor function
B. overloaded assignment operator
C. default constructor function
D. overloaded copy operator
E. None of these
Explanation / Answer
D. reference object C. standard operators B. copy constructor B. work in its usual way, but with programmer-defined data types C. object composition B. overloaded assignment operato