Answer the following statements true (T) or false (F)

1) All virtual functions in an abstract base class must be declared as pure virtual functions
2) Referring to a derived-class object with a base-class handle is dangerous.
3) A class is made abstract by declaring that class virtual.
4) If a base class declares a pure virtual function, a derived class must implement that
function to become a concrete class.
5) Polymorphic programming can eliminate the need for switch logic.


1.False. An abstract base class can include virtual functions with implementations.
2.False. Referring to a base-class object with a derived-class handle is dangerous.
3.False. Classes are never declared virtual. Rather, a class is made abstract by including at least one pure virtual function in the class.
4.True.
5.True.

Computer Science & Information Technology

You might also like to view...

Answer the following statements true (T) or false (F)

1. Virtually all cryptographic hash functions involve the iterative use of a compression function. 2. A good hash function has the property that “the results of applying the function to a large set of inputs will produce outputs that are evenly distributed and apparently random”. 3. Limited characteristics make it impossible for hash functions to be used to determine whether or not data has changed. 4. Hash functions can be used for intrusion and virus detections. 5. Whirlpool is a popular cryptographic hash function.

Computer Science & Information Technology

The only way to verify that an action query worked correctly is to look in the ________ to see that the proper action occurred

Fill in the blank(s) with correct word

Computer Science & Information Technology

Documents that contain macros must be saved in a file format that has the ________ file extension

Fill in the blank(s) with correct word

Computer Science & Information Technology

In contrast to an array, the time it takes to retrieve data from a hash ____ as the hash grows in size.

A. is greater B. is less C. is about the same D. varies back on the type of data stored

Computer Science & Information Technology