Exam 11: Inheritance

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

A single method invocation may contain constants or variables,but not both.

Free
(True/False)
4.7/5
(75)
Correct Answer:
Verified

False

How is generalization/specialization represented on a UML class diagram?

Free
(Multiple Choice)
4.9/5
(76)
Correct Answer:
Verified

B

If two methods in a class hierarchy have the same name,

Free
(Multiple Choice)
4.9/5
(79)
Correct Answer:
Verified

D

A polymorphic method

(Multiple Choice)
4.7/5
(83)

Polymorphism is used extensively in commercial programming.

(True/False)
4.8/5
(72)

A single driver program may instantiate two or more instances of the same class.

(True/False)
4.9/5
(85)

A single method can return values that are of different data types.

(True/False)
4.7/5
(90)

A method in a subclass can invoke a method in its base class.

(True/False)
4.8/5
(78)

Which of the following people was not involved in the definition of UML?

(Multiple Choice)
4.9/5
(79)

Structured programming control structures do not apply in designing a class when inheritance is used.

(True/False)
4.9/5
(74)

Inheritance is

(Multiple Choice)
4.7/5
(73)

A subclass can contain a new design of an inherited method.

(True/False)
4.9/5
(73)

When a subclass is created,processing proceeds as if

(Multiple Choice)
4.9/5
(83)

Developers often use inheritance to simplify and shorten their implementation tasks.

(True/False)
4.9/5
(85)

A base class may also be called a(n)

(Multiple Choice)
4.9/5
(78)

What is another name for an "is-a"relationship?

(Multiple Choice)
4.9/5
(87)

Classes that are not abstract classes are sometimes referred to as

(Multiple Choice)
4.9/5
(85)

Another name for a subclass is a(n)

(Multiple Choice)
4.9/5
(76)

A tennis player is a kind of athlete is an example of

(Multiple Choice)
4.9/5
(77)

The process of reimplementing in a subclass a method from the base class is called

(Multiple Choice)
4.9/5
(74)
Showing 1 - 20 of 30
close modal

Filters

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