Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

_ F _ The copy constructor is called during the declaration of an object _ F _ F

ID: 3775604 • Letter: #

Question

_ F _ The copy constructor is called during the declaration of an object _ F _ Function overloading is used when different functions have the same implementation. _ T _ Friend functions of a class have access to its private members. _ F _ The function "new" allows us to allocate memory during compile time. _ T _ The function "delete" is used to de-allocate memory allocated by "new." _ F _ The compiler requires that identifiers indicate the purpose of what they name. _ F _ "this" is an object. _ F _ All members of a structure are private by default. _ T _ Declarations can appear almost anywhere in the body of a C++ program. _ F _ An instance of a user-defined type is called a class. _ F _ void functions do not have parameters. _ F _ Au array is accessed randomly, because the first element is accessed quicker than the element in the array. _ F _ Objects can be passed explicitly to *this. _ T _ Pointers can be passed by referenced. _ T _ When an object of a class is declared memory is allocated. _ T _ The copy constructor is called during a call-by-value. _ T _ The return statement in a called function is used to pass the value of an expression back to the calling function. _ F _ The state of a class is the public data members. _ T _ Accessor functions never change the state of an object. _ F _ A deep copy is a bit-by-bit copy done by the copy constructor _ T _ Overloaded functions car have the same name and return type, but they must have different argument lists.

Explanation / Answer

Answers:

1.False

2.False

3.True

4.False

5.True

6.False

7.False,this is a constant pointer

8.False ,By default all are public

9.True

10.True

11.False ,void functions does not return anything but they may or may not contain parameters

12.True

13.True

14.True

15.True

16.False ,As it would keep calling itself if call by value

17.True

18.True

19.True

20.True

21.True