Filters
Question type

Study Flashcards

Polymorphism works on any two class methods that have the same name.

A) True
B) False

Correct Answer

verifed

verified

_______________ is used to create an 'is a' relationship among classes.

Correct Answer

verifed

verified

The _______________ function determines whether an object is an instance of a specific class, or an instance of a subclass of that class.

Correct Answer

verifed

verified

What is the relationship called in which one object is a specialized version of another object?


A) Parent-child
B) Node
C) Is a
D) Class

E) C) and D)
F) B) and D)

Correct Answer

verifed

verified

The term _______________ refers to an object's ability to take different forms.

Correct Answer

verifed

verified

_____ allows a new class to inherit the members of the class it extends.


A) Encapsulation
B) Domain
C) Methods
D) Inheritance

E) B) and C)
F) C) and D)

Correct Answer

verifed

verified

Base classes are also called _____.


A) superclasses
B) derived
C) subclasses
D) classes

E) C) and D)
F) B) and D)

Correct Answer

verifed

verified

When a class inherits another class, it is required to use all the data attributes and methods of the superclass.

A) True
B) False

Correct Answer

verifed

verified

What concept involves a superclass and a subclass?


A) Polymorphism
B) Inheritance
C) Encapsulation
D) Methods

E) All of the above
F) None of the above

Correct Answer

verifed

verified

Each subclass has a method named __init__ that overrides the superclass's __init__.

A) True
B) False

Correct Answer

verifed

verified

Superclasses are also called _______________ classes.

Correct Answer

verifed

verified

An 'is a' relationship exists between a grasshopper and a bumblebee.

A) True
B) False

Correct Answer

verifed

verified

New attributes and methods may be added to a subclass.

A) True
B) False

Correct Answer

verifed

verified

_______________ allows subclasses to have methods with the same names as methods in their superclasses.

Correct Answer

verifed

verified

It is not possible to indicate inheritance in a UML diagram.

A) True
B) False

Correct Answer

verifed

verified

Showing 21 - 35 of 35

Related Exams

Show Answer