Which is a best practice for nesting structured classes?
A. should display all substructured classes of a structured class in a single to show the depth of interactions
B. should be determined by the architect during the design phase
C. should be limited to one level of depth, thereby allowing the user to navigate from diagram to diagram to show the next level
D. should limit the nesting of structured classes to two levels per diagram
正解:D
質問 2:
An architect looks at two classes. The first class has the following operations:
getName(),getSize(),getTotal(), and findAverage(). The second class has the following
operations:
getName(),getSize(), findAverage(), findMinimum(), and findMaximum(). The two classes share
the same superclass. Which operations are most likely contained in the superclass?
A. getName(), getSize(), and findAverage()
B. getName(), findAverage(), and findMaximum()
C. getName(), getSize(), getTotal(), and findAverage()
D. findMaximum(), findMinimum(), getSize(), and getTotal()
正解:A
質問 3:
Which statement is true about attributes?
A. They can only be primitives.
B. They cannot change once the object is instantiated.
C. They change value from object to object of the same class.
D. They are required for every class.
正解:C
質問 4:
Analysis classes evolve into _____. (Choose two.)
A. design packages
B. architecture
C. design classes
D. use-case realizations
E. subsystems
正解:C,E
質問 5:
When the interfaces between two classes have been defined from a sequence diagram, the ports are defined by the _____.
A. user of the system
B. operations the class performs
C. interface
D. attributes passed in the sequence diagram
正解:C