GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Quiz

Inheritence

Marvin Williams 10 Fragen

Quiz starten

Dieses Quiz enthält Fragetypen, die sich im gewohnten Player öffnen.

Fragen in diesem Quiz (10)

  1. 1The dependency relationship is sometimes referred to as the ____ relationship.

    1. Ais-a
    2. Bhas-a
    3. Cdepends-on
    4. Dknows-about
  2. 2Consider the following inheritance hierarchy diagram:

    Bild zu Frage 2
    1. AAuto is a superclass of LandVehicle, and LandVehicle is a superclass of Vehicle.
    2. BAuto is a superclass of LandVehicle, and LandVehicle is a subclass of Vehicle.
    3. CAuto is a subclass of LandVehicle, and LandVehicle is a superclass of Vehicle.
    4. DAuto is a subclass of LandVehicle, and LandVehicle is a subclass of Vehicle.
  3. 3Which of the following statements are true?

    1. A"class A extends B" means B is a subclass of A.
    2. B"class A extends B" means A is a subclass of B.
    3. CA subclass is usually extended to contain more functions and more detailed information than its superclass.
    4. DA subclass is a subset of a superclass.
  4. 4Match 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
    1. A3
    2. B1
    3. C3
    4. D1
    5. E4
    6. F3
    7. G2
    8. H1
    9. I5
    10. J2
    11. K4
    12. L5
    13. M2
    14. N5
    15. O4
    16. P5
    17. Q3
    18. R2
    19. S1
    20. T4
    21. U2
    22. V1
    23. W4
    24. X3
    25. Y5
  5. 5What is a class called that represents the most general entity in an inheritance hierarchy?

    1. ADefault class.
    2. BSuperclass.
    3. CSubclass.
    4. DInheritance class.
  6. 6Every dolphin has a fin. Every dolphin is an animal. What kind of relationship would best describe the first and second statements?

    1. ADependency : Inheritance
    2. BCoupling : Dependency
    3. CInheritance : Aggregation
    4. DAggregation : Inheritance
  7. 7You 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?

    1. AVehicle should be the default class, while Auto and Motorcycle should be the subclasses.
    2. BVehicle should be the superclass, while Auto and Motorcycle should be the subclasses.
    3. CVehicle should be the subclass, while Auto and Motorcycle should be the superclasses.
    4. DVehicle should be the subclass, while Auto and Motorcycle should be the default classes.
  8. 8Which class represents a more specific entity in an inheritance hierarchy?

    1. ADefault class
    2. BSuperclass
    3. CSubclass.
    4. DInheritance class.
  9. 9It 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

    1. AA private instance variable within the class.
    2. BA local variable within a mutator method.
    3. CA notification event to a helper class.
    4. DAn array of objects.
  10. 10When invoking a method with an object argument, ___________ is passed.

    1. Athe contents of the object
    2. Ba copy of the object
    3. Cthe reference of the object
    4. Dthe object is copied, then the reference of the copied object

Informationen

Beschreibung
More focused quiz over inheritance limited to 10 questionsv
Sprache
English
Aufrufe
40
Schlagwörter
java 2
Bewertung
Noch keine Bewertungen
Bewerte dieses Quiz
Bewerte dieses Quiz

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck