Exam 8: Class Features and Design Issues

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

A(n) ____________________ constructor is one that does not require any arguments.

Free
(Short Answer)
4.9/5
(35)
Correct Answer:
Verified

default

The ____ directive means that you have reached the end of the block of code that you are defining.

Free
(Multiple Choice)
4.8/5
(37)
Correct Answer:
Verified

B

Match each term with the correct statement below.
Premises:
performs initialization and cleanup
Responses:
copy constructor
auxiliary function
constructor
Correct Answer:
Verified
Premises:
Responses:
performs initialization and cleanup
copy constructor
Free
(Matching)
5.0/5
(31)
Correct Answer:
Verified

How do constructor functions differ from other member functions?

(Essay)
4.8/5
(47)

____ is a measure of the strength of the connection between two functions; it expresses the extent to which information is exchanged by functions.

(Multiple Choice)
4.7/5
(41)

In highly ____________________ functions, all operations are related.

(Short Answer)
4.9/5
(38)

What does it mean to overload a constructor?

(Essay)
4.7/5
(37)

What is the difference between tight coupling and loose coupling in functions?

(Essay)
4.7/5
(34)

What are the four special member functions that every C++ class object automatically has?

(Essay)
4.8/5
(37)

____ functions test the truth of some condition.

(Multiple Choice)
4.8/5
(31)

Several destructors can exist for each class.

(True/False)
4.8/5
(24)

A ____ constructor makes a local copy.

(Multiple Choice)
4.9/5
(34)

A(n) ____________________ constructor is one that requires at least one argument.

(Short Answer)
4.9/5
(36)
Match each term with the correct statement below.
Premises:
also known as a facilitator
Responses:
mutator function
auxiliary function
member-object
Correct Answer:
Verified
Premises:
Responses:
also known as a facilitator
mutator function
(Matching)
4.8/5
(41)

The one's complement operator is also called the bitwise complement operator.

(True/False)
4.9/5
(29)

____ functions change an object's state or attributes.

(Multiple Choice)
4.8/5
(30)
Match each term with the correct statement below.
Premises:
is called automatically each time an object is destroyed
Responses:
auxiliary function
destructor
constructor
Correct Answer:
Verified
Premises:
Responses:
is called automatically each time an object is destroyed
auxiliary function
(Matching)
4.8/5
(38)

getName() is a typical example of a(n) ____ function.

(Multiple Choice)
4.9/5
(42)

____ functions perform some action or service, such as sorting data or searching for data.

(Multiple Choice)
4.8/5
(38)

The composition relationship is called an "is-a" relationship.

(True/False)
4.9/5
(35)
Showing 1 - 20 of 53
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)