Exam 2: Object-Oriented Design OOD and C++

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

In single inheritance, the derived class is derived from ____base class(es).

(Multiple Choice)
4.7/5
(33)

If class dog has a derived class retriever, which of the following is true?

(Multiple Choice)
4.9/5
(43)

By using templates, you can write a single code segment for a set of related functions, called a ____.

(Multiple Choice)
4.7/5
(40)

Overriding a member function is the same as redefining it.

(True/False)
4.9/5
(33)

The base class inherits all its properties from the derived class.

(True/False)
4.9/5
(36)

In C++ the user can create new operators.

(True/False)
4.8/5
(38)

When overloading an operator, the meaning of how an operator works with built-in types remains the same.

(True/False)
4.7/5
(33)

A call to the base class constructor is specified in the ____ of a derived class constructor.

(Multiple Choice)
4.8/5
(40)

Redefining a member function is the same as overloading the member function.

(True/False)
4.8/5
(26)

To include a system-provided header file, such as iostream, in a user program, you enclose the header file between ____.

(Multiple Choice)
4.8/5
(40)

A derived class cannot have a constructor with default parameters.

(True/False)
4.9/5
(44)

For efficiency purposes, wherever possible, you should overload operators as nonmember functions.

(True/False)
4.9/5
(34)

Just as variables are parameters to functions, data types are parameters to templates.

(True/False)
4.8/5
(40)

Header files of new classes contain commands that tell the computer where to look for definitions of the base class.

(True/False)
4.8/5
(40)

To include a header file in a program, you use the preprocessor command ____.

(Multiple Choice)
5.0/5
(38)
Showing 21 - 35 of 35
close modal

Filters

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