Inheritence

Beschreibung

More focused quiz over inheritance limited to 10 questionsv
Marvin Williams
Quiz von Marvin Williams, aktualisiert more than 1 year ago
Marvin Williams
Erstellt von Marvin Williams vor etwa 6 Jahre
25
0

Zusammenfassung der Ressource

Frage 1

Frage
The dependency relationship is sometimes referred to as the ____ relationship.
Antworten
  • is-a
  • has-a
  • depends-on
  • knows-about

Frage 2

Frage
Consider the following inheritance hierarchy diagram:
Antworten
  • Auto is a superclass of LandVehicle, and LandVehicle is a superclass of Vehicle.
  • Auto is a superclass of LandVehicle, and LandVehicle is a subclass of Vehicle.
  • Auto is a subclass of LandVehicle, and LandVehicle is a superclass of Vehicle.
  • Auto is a subclass of LandVehicle, and LandVehicle is a subclass of Vehicle.

Frage 3

Frage
Which of the following statements are true?
Antworten
  • "class A extends B" means B is a subclass of A.
  • "class A extends B" means A is a subclass of B.
  • A subclass is usually extended to contain more functions and more detailed information than its superclass.
  • A subclass is a subset of a superclass.

Frage 4

Frage
Match the following Correct Response [blank_start]__3__[blank_end] makes the software available for use Correct Response [blank_start]__1__[blank_end] ensures that the code meets the requirements specification and weeds out bugs. Correct Response [blank_start]__4__[blank_end] seeks to analyze the data flow and to identify the system’s input and output. Correct Response [blank_start]__5__[blank_end] involves translating the system design into programs. Correct Response [blank_start]__2__[blank_end] is concerned with updating and improving the product. 1. Testing 2. Maintenance 3. Deployment 4. Analysis 5. Implementation
Antworten
  • 3
  • 1
  • 3
  • 1
  • 4
  • 3
  • 2
  • 1
  • 5
  • 2
  • 4
  • 5
  • 2
  • 5
  • 4
  • 5
  • 3
  • 2
  • 1
  • 4
  • 2
  • 1
  • 4
  • 3
  • 5

Frage 5

Frage
What is a class called that represents the most general entity in an inheritance hierarchy?
Antworten
  • Default class.
  • Superclass.
  • Subclass.
  • Inheritance class.

Frage 6

Frage
Every dolphin has a fin. Every dolphin is an animal. What kind of relationship would best describe the first and second statements?
Antworten
  • Dependency : Inheritance
  • Coupling : Dependency
  • Inheritance : Aggregation
  • Aggregation : Inheritance

Frage 7

Frage
You are creating a class inheritance hierarchy about motor vehicles that will contain classes named Vehicle, Auto, and Motorcycle. Which of the following statements is correct?
Antworten
  • Vehicle should be the default class, while Auto and Motorcycle should be the subclasses.
  • Vehicle should be the superclass, while Auto and Motorcycle should be the subclasses.
  • Vehicle should be the subclass, while Auto and Motorcycle should be the superclasses.
  • Vehicle should be the subclass, while Auto and Motorcycle should be the default classes.

Frage 8

Frage
Which class represents a more specific entity in an inheritance hierarchy?
Antworten
  • Default class
  • Superclass
  • Subclass.
  • Inheritance class.

Frage 9

Frage
It is common for certain classes to keep track of how many times certain events have occurred over the life of an object. This is done using
Antworten
  • A private instance variable within the class.
  • A local variable within a mutator method.
  • A notification event to a helper class.
  • An array of objects.

Frage 10

Frage
When invoking a method with an object argument, ___________ is passed.
Antworten
  • the contents of the object
  • a copy of the object
  • the reference of the object
  • the object is copied, then the reference of the copied object
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

DNA and Gene Expression
Melania Pugliese
UML arrows
Marvin Williams
1_DNA and Gene Expression
Melania Pugliese
ExamTimes Erste Schritte Anleitung
max.grassl
Sehenswürdigkeiten Deutschlands
Natalia Romanova
Fragenkatalog Wirtschaftspolitik
Isaak Roscher
OEKO UniVie (korrigiert)
Laus Kojka
Vetie Para Morphologie Protozoen
Kristin E
Geflügel Allerlei
Anne Käfer
Vetie - Spezielle Pathologie 2021
Svea Schill
Vetie Milchhygiene 2022
Maite J