Site MapHelpFeedbackMultiple Choice Quiz
Multiple Choice Quiz
(See related pages)

1
Which of the following is not part of detailed design?
A)Screen and window layouts in the form of user interface classes.
B)Allocation of sub-systems to processors.
C)Allocation of responsibilities to classes.
2
Which combination of cohesion and coupling is desirable in a design?
A)High cohesion and low coupling.
B)High cohesion and high coupling.
C)Low cohesion and high coupling.
3
Good coupling is best characterised by which of the following?
A)Keeping the number of message types between objects to a minimum.
B)Ensuring that sub-classes are not strongly linked to their superclass.
C)Ensuring that operations in the same class are linked.
4
Which of the following is a beneficial consequence of good cohesion in a class?
A)The attributes in the class will only be accessed by the operations of that class.
B)The class will exhibit high levels of encapsulation.
C)The operations in the class will be easier to maintain.
5
The Liskov Substitution Principle is best described by which of the following?
A)A derived object may be treated as if it is the base object.
B)A derived object should be replaced by its base object.
C)Derived objects should be used instead of base objects.
6
The assignment of responsibilities to classes has to be addressed in detailed design. Which of following best describes the assignment of responsibilities?
A)Assigning responsibilities ensures that all classes have the same amount of responsibility.
B)Assigning responsibilities should maximise the potential for reuse.
C)Assigning responsibilities considers what each member of the project team should do.
7
When objects are being designed in detail the signature of each operation has to be specified. Which of the following statements is consistent with the term operation signature?
A)Each operation in a class has the same signature.
B)The operation name and the number of parameters are part of the operation signature.
C)A class may not have two operations with the same name.
8
Encapsulation is best enforced by which of the following decisions regarding object visibility?
A)All attributes and operations are private.
B)All attributes are public and all operations are private.
C)All attributes are private and public operations are kept to a minimum.
9
Which of the following statements is true about object visibility?
A)The most limited form of visibility is private.
B)Attributes that are protected may not be changed at all.
C)Package visibility is concerned with the visibility of a component with a system.
10
A class may contain derived attributes. Which of the following statements is true?
A)Using derived attributes always improves performance.
B)Derived attributes can only be derived from attributes in the same class.
C)Using derived attributes may introduce the need to maintain consistency between attribute values.
11
What is an interface in UML?
A)It describes boundary classes.
B)It describes an interface that a class may offer to another class.
C)It describes the human-computer interface.
12
Which of the following statements best describes a UML interface?
A)It is the external view of a class.
B)It contains no internal structure, it has no attributes and the implementation of the operations is not defined.
C)It contains a subset of the operations offered by a class together with their implementation.
13
Which of the following statements best describes the task of designing associations?
A)It is concerned with how links between objects should be implemented.
B)Its main focus is determining the multiplicity of the associations.
C)It is concerned with specifying operations that may use the links between objects.
14
The implementation of a one-to-one two-way association is best achieved by which of the following?
A)Two collection classes.
B)Placing the object identifier of each class in the other class.
C)Placing an object identifier of one class in the other.
15
How many collection classes could sensibly be used to implement a two-way many-to-many association?
A)Two or more.
B)Two.
C)One.
16
What does an arrowhead at the end of an association mean?
A)It shows that the association may be navigated in the direction of the arrowhead.
B)It shows that the association is owned by the class to which the arrowhead points.
C)It shows that the association cannot be navigated in the other direction.
17
If there is a dependency constraint between two or more attributes which of the following statements applies?
A)The value of none of the attributes should be changed.
B)If the value of one of the attributes is changed then all the others must be updated by one or more synchronizing operations.
C)Any change to the value of any of the attributes may require the other dependent attributes to be updated by one or more synchronizing operations.
18
Which of the following statements best describes the application of referential integrity during object design?
A)An object may only refer to another object if they share a link.
B)When an object is deleted all objects to which it refers must be deleted.
C)Referential integrity only applies for one-to-one associations.
19
Domain integrity is best described by which of the following?
A)It ensures that each attribute is only used in the correct application domain.
B)It ensures that attributes only hold permissible values.
C)It ensures that an object identifier in an object is actually referring to an object that exists.
20
Which of the following is an example of a domain integrity constraint?
A)The sum of the weeklyPay and bonusPay attributes must not exceed the maxPay attribute.
B)The weeklyPay attribute must be a non-negative number to two decimal places.
C)The bonusPay attribute must be zero if weeklyPay attribute is zero.
21
Which of the following is factors does not constrain algorithm design?
A)The cost of implementation.
B)The requirements for accuracy.
C)The number of operations in a class.







Bennett et al, OOSAD 4eOnline Learning Center

Home > Chapter 14 > Multiple Choice Quiz