Quiz
Inheritence
Dieses Quiz enthält Fragetypen, die sich im gewohnten Player öffnen.
Fragen in diesem Quiz (10)
1The dependency relationship is sometimes referred to as the ____ relationship.
- Ais-a
- Bhas-a
- Cdepends-on
- Dknows-about
2Consider the following inheritance hierarchy diagram:

- AAuto is a superclass of LandVehicle, and LandVehicle is a superclass of Vehicle.
- BAuto is a superclass of LandVehicle, and LandVehicle is a subclass of Vehicle.
- CAuto is a subclass of LandVehicle, and LandVehicle is a superclass of Vehicle.
- DAuto is a subclass of LandVehicle, and LandVehicle is a subclass of Vehicle.
3Which of the following statements are true?
- A"class A extends B" means B is a subclass of A.
- B"class A extends B" means A is a subclass of B.
- CA subclass is usually extended to contain more functions and more detailed information than its superclass.
- DA subclass is a subset of a superclass.
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- A3
- B1
- C3
- D1
- E4
- F3
- G2
- H1
- I5
- J2
- K4
- L5
- M2
- N5
- O4
- P5
- Q3
- R2
- S1
- T4
- U2
- V1
- W4
- X3
- Y5
5What is a class called that represents the most general entity in an inheritance hierarchy?
- ADefault class.
- BSuperclass.
- CSubclass.
- DInheritance class.
6Every dolphin has a fin. Every dolphin is an animal. What kind of relationship would best describe the first and second statements?
- ADependency : Inheritance
- BCoupling : Dependency
- CInheritance : Aggregation
- DAggregation : Inheritance
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?
- AVehicle should be the default class, while Auto and Motorcycle should be the subclasses.
- BVehicle should be the superclass, while Auto and Motorcycle should be the subclasses.
- CVehicle should be the subclass, while Auto and Motorcycle should be the superclasses.
- DVehicle should be the subclass, while Auto and Motorcycle should be the default classes.
8Which class represents a more specific entity in an inheritance hierarchy?
- ADefault class
- BSuperclass
- CSubclass.
- DInheritance class.
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
- AA private instance variable within the class.
- BA local variable within a mutator method.
- CA notification event to a helper class.
- DAn array of objects.
10When invoking a method with an object argument, ___________ is passed.
- Athe contents of the object
- Ba copy of the object
- Cthe reference of the object
- Dthe object is copied, then the reference of the copied object
Informationen
- Beschreibung
- More focused quiz over inheritance limited to 10 questionsv
- Autor
- Marvin Williams
- Sprache
- English
- Aufrufe
- 40
- Schlagwörter
- Bewertung
- Noch keine Bewertungen Bewerte dieses Quiz