Exam 11: More About Classes and Object-Oriented Programming

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

When a class contains a pointer to dynamically allocated memory, it is a good idea to equip the class with

(Multiple Choice)
4.7/5
(30)

Arguments are passed to the base class destructor function by the ________ class ________ function.

(Multiple Choice)
4.7/5
(30)

The this pointer is automatically passed to static member functions of a class.

(True/False)
4.8/5
(42)

A static member variable can be used when there are no objects of the class in existence.

(True/False)
4.8/5
(38)

An ________ operator can work with programmer-defined data types.

(Multiple Choice)
4.9/5
(27)

A lambda expression is

(Multiple Choice)
4.8/5
(38)

In an inheritance situation, the new class that you create from an existing class is known as the

(Multiple Choice)
4.8/5
(32)

The library function move() can be used to

(Multiple Choice)
4.8/5
(36)

In the statement class Car:protected Vehicle, what is being protected?

(Multiple Choice)
4.8/5
(37)

A(n) ________ is a special function that is called whenever a new object is created and initialized with data from another object of the same class.

(Multiple Choice)
4.8/5
(34)

An lvalue is

(Multiple Choice)
4.7/5
(33)

A situation in which every object of a class A has a pointer to an object of a class B, and the objects of the class B may outlive objects of class A, is called

(Multiple Choice)
4.7/5
(34)

It is possible to declare an entire class as a friend of another class.

(True/False)
4.8/5
(34)

When arguments must be passed to the base class constructor, they are passed from the derived class constructor's header line.

(True/False)
4.9/5
(29)

A ________ function is not a member of a class, but it has access to the private members of the class.

(Multiple Choice)
4.8/5
(39)

The ________ operator may be used to assign one object to another.

(Multiple Choice)
5.0/5
(35)

In the statement class Car:protected Vehicle, which is the derived class?

(Multiple Choice)
4.8/5
(33)

A reason to overload the ________ is to write classes that have array-like behavior.

(Multiple Choice)
4.9/5
(43)

It is a good idea to make a copy constructor's parameters ________ by specifying the ________ keyword in the parameter list.

(Multiple Choice)
5.0/5
(29)

The ________ class constructor is called before the ________ class constructor.

(Multiple Choice)
4.8/5
(34)
Showing 21 - 40 of 70
close modal

Filters

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