C++ II Exam I(Inheritance and Polymorphism Section)

0.0(0)
studied byStudied by 1 person
0.0(0)
full-widthCall with Kai
GameKnowt Play
New
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/19

flashcard set

Earn XP

Description and Tags

Study only in multiple choice!

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

20 Terms

1
New cards

Which of the following statements A, B or C is false?

The existing class is called the derived class, and the new class is called the base class.

2
New cards

Which of the following statements A, B or C is false?

All of the above statements are true.

3
New cards

Which of the following statements A, B or C is false?

Polymorphic programs can process objects of classes related by inheritance as if they're all objects of the derived-class type.

4
New cards

With regard to interface inheritance:

With interface inheritance, the base class provides the implementation details.

5
New cards

Which of the following statements A, B or C is false?

Once classes are employed in inheritance hierarchies, they become uncoupled with other classes.

6
New cards

A class can be ________

Both A and B.

7
New cards

Which of the following statements A, B or C is false? In public inheritance ________.

public and protected base-class members become protected derived-class members

8
New cards

Which of the following statements A, B or C is false?

Given Employee, BirthDate and PhoneNumber classes, it's proper to say that an Employee is a BirthDate or that an Employee is a PhoneNumber.

9
New cards

Which of the following statements A, B or C is false?

All of the above statements are true.

10
New cards

Which of the following statements A, B or C is false?

All of the above statements are true.

11
New cards

Which of the following statements A, B or C is false?

All of the above statements are true.

12
New cards

Which of the following statements is false?

All of the above statements are true.

13
New cards

Which of the following statements A, B or C is false?

All of the above statements are true.

14
New cards

Which of the following statements A, B or C is false?

You can compare strings using only string's overloaded equality operators.

15
New cards

Which of the following statements is false?

You may not append a C-string literal to a string object using +=.

16
New cards

Which of the following statements is false?

D) In C++20, if you define == for your class, C++ provides !=, >= and <= for you.

17
New cards

Which of the following statements A, B or C is false?

All of the above statements are true.

18
New cards

Which of the following statements A, B or C is false?

The unique_ptr object that originally allocated the dynamic memory is responsible for deleting the memory.

19
New cards

Which of the following statements A, B or C is false?

The compiler-generated copy constructor and copy assignment operator perform memberwise deep copies.

20
New cards

Which of the following statements A, B or C is false?

All of the above statements are true.

Explore top flashcards

CGT 163 Exam 1
Updated 967d ago
flashcards Flashcards (81)
Chapter 1 & 2
Updated 231d ago
flashcards Flashcards (65)
Body Mechanics
Updated 197d ago
flashcards Flashcards (34)
Biology term 1 y9
Updated 883d ago
flashcards Flashcards (49)
CGT 163 Exam 1
Updated 967d ago
flashcards Flashcards (81)
Chapter 1 & 2
Updated 231d ago
flashcards Flashcards (65)
Body Mechanics
Updated 197d ago
flashcards Flashcards (34)
Biology term 1 y9
Updated 883d ago
flashcards Flashcards (49)