Chapter 18 Flashcards

1
Q
  1. An approach used to specify the software solution in terms of collaborating objects, their attributes and their methods is called object oriented design.
A

Answer: True Page: 646 LOD: Easy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
  1. An interface class is an object class that provides the means by which an actor can interface with the system.
A

Answer: True Page: 648 LOD: Easy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
  1. A dependency relationship is illustrated with a dashed arrow line.
A

Answer: True Page: 650 LOD: Easy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
  1. Method is the software logic that is executed in response to a message.
A

Answer: True Page: 651 LOD: Easy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
  1. In a pure object-oriented environment every piece of code exists inside an object class.
A

Answer: True Page: 648 LOD: Easy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
  1. An object-oriented system is structured into at least three different types of object classes.
A

Answer: True Page: 648 LOD: Easy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
  1. Entity classes are identified during systems analysis and usually correspond to items in real life and contain information, known as attributes, that describes the different instances of the entity.
A

Answer: True Page: 648 LOD: Easy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
  1. Interface classes are a means through which the attributes will interface with the instances of an entity.
A

Answer: False Page: 648 LOD: Medium
Rationale: Interface classes provide a means for the user to interface with the system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
  1. The responsibility of the interface class is twofold: (1) it translates the user’s input into information that the system can understand and use to process the business event; (2) it takes data pertaining to a business event and translates the data for appropriate presentation to the user.
A

Answer: True Page: 648-649 LOD: Easy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
  1. Controller classes implement the business logic or business rules of the system.
A

Answer: True Page: 649 LOD: Easy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
  1. System classes handle operating system-specific functionality.
A

Answer: True Page: 649 LOD: Easy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
  1. Persistence classes read and write to a database.
A

Answer: True Page: 649 LOD: Easy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q
  1. Public attributes can be accessed and public methods can be invoked by any other method in any other class.
A

Answer: True Page: 650 LOD: Easy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
  1. Private attributes can be accessed and private methods can be invoked only by any method in the class in which the attribute or method is defined.
A

Answer: True Page: 650 LOD: Easy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q
  1. A class responsibility is essentially the same thing as a class method.
A

Answer: True Page: 651 LOD: Medium

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q
  1. A class responsibility is implemented by the creation of one or more methods that may have to collaborate with other classes and methods.
A

Answer: True Page: 651 LOD: Medium

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q
  1. One technique for identifying behaviors is to search the use-case narrative for verb phrases.
A

Answer: True Page: 657 LOD: Medium

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q
  1. A class responsibility collaboration (CRC) card is a popular tool for documenting the behaviors and collaborations for an object.
A

Answer: True Page: 657-658 LOD: Easy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q
  1. Sequence diagrams show us in great detail how the objects interact with each other in time sequence.
A

Answer: True Page: 659 LOD: Easy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q
  1. Cohesion is the degree to which one class is connected to or relies upon other classes.
A
Answer: False   Page: 666   LOD: Medium
Rationale: Coupling is the degree to which one class is connected to or relies upon other classes.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q
  1. Ideally, object classes created for one information system should be able to be reused in other information systems.
A

Answer: True Page: 667 LOD: Easy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q
  1. Reusability is why operating system-specific code and database specific code are often designed into system and persistence classes.
A

Answer: True Page: 667 LOD: Easy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q
  1. A design pattern is a common solution to a given problem in a given context.
A

Answer: True Page: 668 LOD: Easy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q
  1. One advantage of using design patterns is that they provide designers with a short-hand notation for discussing design issues.
A

Answer: True Page: 669 LOD: Easy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q
  1. GOF behavioral patterns provide guidance on the way in which classes interact to distribute responsibility.
A

Answer: True Page: 669 LOD: Medium

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q
  1. GOF creational patterns provide guidance for designing classes to instantiate new objects.
A

Answer: True Page: 669 LOD: Medium

27
Q
  1. GOF structural patterns provide guidance on how classes can be designed to form larger structures.
A

Answer: True Page: 669 LOD: Medium

28
Q
  1. A component is a group of objects packaged together into one unit. An example of a component is a dynamic link library (DLL) or executable file.
A

Answer: True Page: 671 LOD: Easy

29
Q
  1. A communication diagram is similar to a sequence diagram. But while a sequence diagram focuses on the structural organization of objects in a network format, a communication diagram focuses on timing of messages.
A

Answer: False LOD: Medium
Rationale: A communication diagram is similar to a sequence diagram. But while a sequence diagram focuses on timing or sequence of messages, a communication diagram focuses on the structural organization of objects in a network format.

30
Q
  1. Communication diagrams depict the organizational units of programming code and how they interact.
A

Answer: False Page: 672 LOD: Easy
Rationale: This describes component diagrams.

31
Q
  1. Deployment diagrams are also implementation type diagrams that describe the physical architecture of the hardware and software in the system. They depict software components, processors, and devices that make up the systems architecture.
A

Answer: True Page: 673 LOD: Easy

32
Q
60. What diagram depicts how objects collaborate in message sequence to satisfy the functionality of a use case?
A) state
B) component
C) sequence
D) deployment
E) communication
A

Answer: C Page: 659 LOD: Medium

33
Q
61. What diagram depicts the life cycle of a single object?
A) state
B) component
C) sequence
D) deployment
E) communication
A

Answer: A Page: 663 LOD: Medium

34
Q
62. What diagram depicts the interaction of objects, focusing on their structural organization?
A) state
B) component
C) sequence
D) deployment
E) communication
A

Answer: E Page: 672 LOD: Medium

35
Q
63. What type of diagram is an implementation type diagram and used to graphically depict the physical architecture of the software system?
A) state
B) component
C) sequence
D) deployment
E) communication
A

Answer: B Page: 672 LOD: Medium

36
Q
66. Attributes and methods that are visible from any method in any class are said to be:
A) private
B) protected
C) public
D) persistent
E) none of these
A

Answer: C Page: 650 LOD: Medium

37
Q
67. Attributes and methods that are visible from any method in the class in which the attribute or method is defined are said to be:
A) private
B) protected
C) public
D) persistent
E) none of these
A

Answer: A Page: 650 LOD: Medium

38
Q
68. Which of the following steps are NOT done in transforming the OOA class diagram into a design class diagram?
A) add design object
B) add attribute visibility
C) add methods
D) add dependency relationships
E) all of these should be done
A

Answer: E Page: 665 LOD: Medium

39
Q
69. Which maxim best describes the rationale for using design patterns?
A) A stitch in time saves nine
B) Don't reinvent the wheel
C) Haste makes waste
D) A rolling stone gathers no moss
E) The squeaky wheel gets the grease
A

Answer: B Page: 668 LOD: Easy

40
Q
  1. Which of the following is NOT an activity done in constructing a state machine diagram?
    A) Identify state transition paths
    B) Identify initial and final states
    C) Identify triggers
    D) Identify other states an object may have during its lifetime
    E) Identify other objects that trigger changes in the object’s states
A

Answer: E Page: 663 LOD: Medium

41
Q
  1. A(n) _____________________ is a group of objects packaged together into one unit. An example is a dynamic link library (DLL) or executable file.
A

Answer: component Page: 671 LOD: Hard

42
Q
  1. All objects are said to have ___________ - the value of its attributes at one point in time.
A

Answer: state Page: 663 LOD: Hard

43
Q
  1. A(n) _______________________ triggers the change in state when something happens or when the value of one of the attributes changes.
A

Answer: state transition event Page: 663 LOD: Hard

44
Q
  1. If an object calls its own method, it is called a(n) _______________.
A

Answer: self-call Page: 660 LOD: Hard

45
Q
  1. In ________________________ , the use case scenarios are acted out by the participants. The participants may assume the role of actors or object types that collaborate to process a hypothetical business event.
A

Answer: role playing Page: 664 LOD: Hard

46
Q
  1. _________________________ diagrams show us in great detail how the objects interact with each other over time.
A

Answer: Sequence Page: 659 LOD: Hard

47
Q
  1. _________________________ is illustrated with an arrowhead pointing only to the direction a message can be sent.
A

Answer: Navigability Page: 650 LOD: Hard

48
Q
  1. _________________________ diagrams show us how objects collaborate to satisfy the functionality of a use case, focusing on the structural organization of objects in a network format.
A

Answer: Communication Page: 672 LOD: Hard

49
Q
  1. _________________________ diagrams are implementation type diagrams and are used to graphically depict the physical architecture of the software system.
A

Answer: Component Page: 672 LOD: Hard

50
Q
  1. _________________________ diagrams are also implementation type diagrams that describe the physical architecture of the hardware and software in the system. They depict software components, processors, and devices that make up the systems architecture.
A

Answer: Deployment Page: 673 LOD: Hard

51
Q
  1. _________________________ diagrams model the life cycle of a single object.
A

Answer: State machine Page: 663 LOD: Hard

52
Q
  1. _________________________ classes are objects that are introduced to represent a means through which the user will interface or interact with the system
A

Answer: Interface Page: 648 LOD: Hard

53
Q
  1. The responsibility of a(n) _________________________ class is twofold: (1) it translates the user’s input into information that the system can understand and use to process the business event; (2) it takes data pertaining to a business event and translates the data for appropriate presentation to the user.
A

Answer: interface Page: 648 LOD: Hard

54
Q
  1. _________________________ classes are those that hold application or business rule logic.
A

Answer: Controller Page: 649 LOD: Hard

55
Q
  1. _________________________ classes process messages from an interface class and respond to them by sending and receiving messages from the entity classes.
A

Answer: Controller Page: 649 LOD: Hard

56
Q
  1. _________________________ classes read and write attributes to a database.
A

Answer: Persistence Page: 649 LOD: Hard

57
Q
  1. _________________ classes isolate the other objects from operating system-specific functionality.
A

Answer: System Page: 649 LOD: Hard

58
Q
  1. _________________________ is the level of access an external object has to an attribute or method.
A

Answer: Visibility Page: 650 LOD: Hard

59
Q
  1. The process of using object-oriented techniques for designing a new system is referred to as ______________________.
A

Answer: object-oriented design Page: 648 LOD: Hard

60
Q
  1. The degree to which all of the attributes and behaviors of a single class are related to each other is called _______________.
A

Answer: cohesion Page: 666-667 LOD: Hard

61
Q
  1. A(n) _________________________ is the obligation that an object has to provide a service when requested, thus collaborating with other objects to satisfy the request if required.
A

Answer: object responsibility Page: 651 LOD: Hard

62
Q
  1. During object-oriented design the class diagram developed during the analysis phase is refined into a _______________________.
A

Answer: design class diagram Page: 665 LOD: Medium

63
Q
  1. A(n) _________________________ is a set of related, interacting objects that provide a well-defined set of services for accomplishing a task.
A

Answer: object framework Page: 671 LOD: Hard

64
Q
  1. The authors of the 1995 book, Design Patterns, which proposed a set of 23 patterns for OO design are known collectively as the ________________________.
A

Answer: Gang of Four Page: 669 LOD: Hard