Exam 14: More About Classes

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

When a class contains an instance of another class, it is known as

(Multiple Choice)
4.9/5
(30)

It is a good idea to make a copy constructor's parameters __________ by specifying the __________ key word in the parameter list.

(Multiple Choice)
4.9/5
(35)

You may overload any C++ operator and you may use the operator function to define non-standard operations, such as @ or ^.

(True/False)
4.7/5
(32)

The overloaded = operator copies data from one object to another so it is known as the overload copy operator.

(True/False)
4.9/5
(28)

C++ allows you to redefine the way __________ work when used with class objects.

(Multiple Choice)
4.8/5
(29)

In the following function header, the word int is known as a(n) __________. FeetInches FeetInches: : Operator++(int)

(Multiple Choice)
4.9/5
(35)

Each object of a class has its own copy of the class's

(Multiple Choice)
4.8/5
(40)

If you overload the prefix ++ operator, the postfix ++ operator is automatically overloaded.

(True/False)
4.9/5
(34)

When you overload an operator, you can change the operator's original meaning to something entirely different.

(True/False)
4.9/5
(40)

A reason to overload the __________ is to allow you to write classes that have array-like behaviors.

(Multiple Choice)
4.9/5
(33)

When you overload the << operator you must also overload the >> operator.

(True/False)
4.8/5
(27)

The __________ member variable may be accessed before any objects of the class have been created.

(Multiple Choice)
4.8/5
(35)

In C++ if you overload the < operator, you must also overload the > operator.

(True/False)
4.7/5
(32)

When you overload an operator, you cannot change the number of __________ taken by the operator.

(Multiple Choice)
4.9/5
(29)

An aggregate class's constructor can use a member initialization list to call the constructors for each of its member objects.

(True/False)
4.8/5
(43)

Which of the following operators may be used to assign one object to another?

(Multiple Choice)
4.9/5
(36)

In C++11 the __________ operator swaps the members of the object being assigned with the temporary object.

(Multiple Choice)
4.8/5
(39)

When objects contain pointers, it is a good idea to create an explicit __________ function.

(Multiple Choice)
4.8/5
(51)

A(n) __________ is a special built-in pointer that is available to a class's member functions..

(Multiple Choice)
4.9/5
(36)

If a member is declared __________, all objects of that class have access to that variable.

(Multiple Choice)
4.9/5
(37)
Showing 21 - 40 of 46
close modal

Filters

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