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

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.
3

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.
4

Which of the following best describes when primary operations should be shown on class diagrams?
A)All primary operations are shown on class diagrams in design.
B)Primary operations are shown in class diagrams only if they modify attribute values.
C)Primary operations are shown on design class diagrams if they are part of the public interface of the class.
5

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.
6

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.
7

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.
8

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.
9

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..
10

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.
11

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.
12

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.
13

What does an arrowhead at the end of an association mean?
A)It shows that the association may 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.
14

The interaction operator opt means which of the following?
A)It means that the combined fragment will execute randomly.
B)It means that different parts of the combined fragment are optional.
C)It means that the combined fragment will only be executed if the interaction constraint is true.
15

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.
16

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.
17

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.
18

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.
19

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.
20

Which of the following about algorithm design is not true?
A)The most important criterion is optimised performance.
B)Algorithms should be as simple as possible.
C)Ease of implementation and understandability in most cases justify sacrificing some performance.







O-O Systems Analy, Bennett, 3eOnline Learning Center

Home > Chapter 14 > Multiple Choice Quiz