Inheritence

Descripción

More focused quiz over inheritance limited to 10 questionsv
Marvin Williams
Test por Marvin Williams, actualizado hace más de 1 año
Marvin Williams
Creado por Marvin Williams hace alrededor de 6 años
25
0

Resumen del Recurso

Pregunta 1

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

Pregunta 2

Pregunta
Consider the following inheritance hierarchy diagram:
Respuesta
  • 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.

Pregunta 3

Pregunta
Which of the following statements are true?
Respuesta
  • "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.

Pregunta 4

Pregunta
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
Respuesta
  • 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

Pregunta 5

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

Pregunta 6

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

Pregunta 7

Pregunta
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?
Respuesta
  • 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.

Pregunta 8

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

Pregunta 9

Pregunta
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
Respuesta
  • 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.

Pregunta 10

Pregunta
When invoking a method with an object argument, ___________ is passed.
Respuesta
  • 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
Mostrar resumen completo Ocultar resumen completo

Similar

DNA and Gene Expression
Melania Pugliese
UML arrows
Marvin Williams
1_DNA and Gene Expression
Melania Pugliese
Mi Entorno Personal de Aprendizaje (PLE)
Martín López Barrientos
Resumen sobre Los Reyes Católicos
maya velasquez
Sistema Economico
bella_colindres
Medio ambiente
aflugo
LA REVOLUCIÓN FRANCESA
ROSA MARIA ARRIAGA
HUESOS DEL CRÁNEO
Emilia Vargas
MAPA CONCEPTUAL DE NETIQUETA
Hayler Narvaez
Relación del sistema nervioso y reproductivo
Zucy Flores