Tutor Marked Assignment PL TMA-09
In a Nutshell - CIW Course Section 2 Part B
PL TMA-09 - CD Access Code: 23841
Q1. Object oriented programs focus their attention on the flow of information.
- a) True
- b) False
Q2. A constructor is a special type of what?
- a) Variable
- b) Array
- c) Hash
- d) Subroutine
Q3. What name must constructors have?
- a) The same name as the package in which they are defined
- b) The same name as the file in which they are contained
- c) new
- d) subnew
Q4. Referring to constructors, the keyword bless promotes a data type, typically a ________, into a ________.
- a) hash, object
- b) object, hash
- c) array, object
- d) object, array
Q5. The arguments passed to the methods of an object are extracted from the @_ array beginning at which element?
- a) 0
- b) 1
- c) 2
- d) 3
Q6. Given a superclass which defines the general characteristics of a car, which of the following would be the most suitable subclasses for this superclass?
- a) Motorbike, pushbike, etc.
- b) Wheels, engine, etc.
- c) Sportscar, salooncar, etc.
- d) Bus, truck, etc.
Q7. The transfer of functionality from a main class to a supporting class is known as what?
- a) Degradation
- b) Depredation
- c) Delegation
- d) Designation
Q8. Object association is similar to inheritance with the @ISA array. However, the advantage of using object association is that you can choose precisely which methods and variables you want to inherit.
- a) True
- b) False
Q9. If you were defining a class to model a car, which of the following could be suitable methods within the class?
- a) changeGear
- b) currentGear
- c) releaseHandbrake
- d) engageHandbrake
- e) handbrakeOn
Q10. Thinking ahead and designing your objects and classes so that they may be reused in the future is known as what?
- a) Sizing
- b) Scaling
- c) Spacing
- d) Subclassing

