Question: Question 1(2 points) what happens when you overload an operator such as the '+' or '*' Question 1 options: the new operator overload invalidates the

Question 1(2 points)

what happens when you overload an operator such as the '+' or '*'

Question 1 options:

the new operator overload invalidates the other operator functions

the operator will now act in a new additional manner

the new operator cannot be used in a constructor

operator will be used when C== makes a bit wise copy of the data

Question 2(2 points)

what is a destructor

Question 2 options:

a special function only used to free up memory

the function executed if the program gets a memory error

the last function listed in the class

the function that executes when an object goes out of scope

Question 3(2 points)

what does the "this" pointer do

Question 3 options:

a pointer that is passed to a function that points back to the calling object

indicates which member function is running

points to the destructor and used if a memory error occurs

points to the constructor being executed

M14CompSciIIFinal

Question 4(2 points)

Privatemembers mustbedeclared brfore public members..

Question 4 options:

TrueFalse

Question 5(2 points)

It is legal to define a pointer to a class object

Question 5 options:

TrueFalse

Question 6(2 points)

Constructorsdo not have to have thesamename as theclass.

Question 6 options:

TrueFalse

Question 7(2 points)

Constructorsmay not haveareturn type

Question 7 options:

TrueFalse

Question 8(2 points)

constructors cannot have arguements

Question 8 options:

TrueFalse

Question 9(2 points)

Destructorscannot take arguments.

Question 9 options:

TrueFalse

Question 10(2 points)

Destructors may return avalue.

Question 10 options:

TrueFalse

Question 11(2 points)

Member functions may beoverloaded.

Question 11 options:

TrueFalse

Question 12(2 points)

Constructors may beoverloaded.

Question 12 options:

TrueFalse

Question 13(2 points)

Destructorsmay beoverloaded.

Question 13 options:

TrueFalse

Question 14(2 points)

Aclassmaynot have a constructor with no parameter list

Question 14 options:

TrueFalse

Question 15(2 points)

A class may only haveonedestrucror.

Question 15 options:

TrueFalse

Question 16(2 points)

A class may only haveoneconstructor

Question 16 options:

TrueFalse

Question 17(2 points)

Whenthe keywordconstappearsaftertheparentheses in a memberfunctiondeclaration, it specifies that the function will not change any data stored in the calling object.

Question 17 options:

TrueFalse

Question 18(2 points)

you can overload member functions of a class

Question 18 options:

TrueFalse

Question 19(2 points)

a member function can have the same name and same parameter list as a regular functionsin the same program

EX. a member function and non-member function named dispaly()

Question 19 options:

TrueFalse

Question 20(2 points)

a constructor is a member function

Question 20 options:

TrueFalse

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!