Deck 12: Object-Oriented Design: Fundamentals
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/89
Play
Full screen (f)
Deck 12: Object-Oriented Design: Fundamentals
1
One type of design class stereotype is called a "concrete class" because it can be instantiated.
False
2
In object-oriented design,the design models are extensions of the analysis models.
True
3
A "persistent" class is sometimes referred to as an "entity" class.
True
4
An object-oriented program consists of a set of object classes that work together to process an input message.
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
5
The only difference between a domain class diagram and a design class diagram is the addition of the methods.
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
6
One tenet of Agile philosophy is that while analysis models may be useful,it generally is not necessary to develop design models.
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
7
Visibility is a design property that indicates whether a class can be "seen" by the user interface classes.
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
8
Detailed Object-oriented design (OOD)is done on a use case-by-use case basis.
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
9
The first step in object-oriented design is to develop the design class diagram.
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
10
One popular standard UML model that is used for object-oriented design is through the use of CRC Cards.
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
11
Both a communication diagram and a sequence diagram have the same purpose and provide basically the same information.
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
12
The objective of object-oriented design is to identify and specify all the classes and messages that work together to carry out each use case.
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
13
It is usually a bad idea to try to include user-interface classes to a CRC design.
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
14
The primary difference between the first-cut design class diagram and the final design class diagram is the addition of method signatures.
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
15
Attributes within a property class can have their own properties.
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
16
The objective of object-oriented analysis is to identify the objects that must work together to carry out each use case.
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
17
In the design of a complex use case,both a communication diagram and a sequence diagram may be needed.
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
18
The design models that are useful for modeling the flow of execution are Communication diagrams,Sequence diagrams,and Activity diagrams.
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
19
The primary difference between a design class symbol and a problem domain class symbol is the addition of method signatures.
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
20
Developers do not typically add more classes to design class diagrams than were originally defined in the domain model.
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
21
Cohesion is a measure of how well the system "hangs together" by having strong connections between classes.
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
22
A one-to-many relationship means that a foreign key is placed in the "many" class,which gives navigation visibility from the "many" class to the "one" class.
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
23
In order for an object to send a message to another object it must have navigation to that object.
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
24
Which two models are primary models in object-oriented detailed design?
A)Design class diagram and component diagram
B)Package diagram and CRC cards
C)Sequence diagram and communication diagram
D)Sequence diagram and design class diagram
A)Design class diagram and component diagram
B)Package diagram and CRC cards
C)Sequence diagram and communication diagram
D)Sequence diagram and design class diagram
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
25
Which analysis model serves as an input model to a design class diagram?
A)Use case diagram
B)Activity diagram
C)Domain model class diagram
D)System sequence diagram (SSD)
A)Use case diagram
B)Activity diagram
C)Domain model class diagram
D)System sequence diagram (SSD)
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
26
Which of the following is NOT part of a multilayer object-oriented design (OOD)?
A)Database access
B)Problem domain object
C)User input form
D)Functional module
A)Database access
B)Problem domain object
C)User input form
D)Functional module
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
27
Which diagram is directly used to identify methods and write programming code for object-oriented systems?
A)Sequence diagram
B)Design class diagram
C)Package diagram
D)State-machine diagram
A)Sequence diagram
B)Design class diagram
C)Package diagram
D)State-machine diagram
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
28
In Unified Modeling Language (UML)notation,a stereotype is indicated by ____.
A)parentheses
B)brackets
C)guillemets
D)underline
A)parentheses
B)brackets
C)guillemets
D)underline
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
29
A(n)____ class acts as a switchboard between the view layer and the domain layer.
A)boundary
B)controller
C)entity
D)persistent
A)boundary
B)controller
C)entity
D)persistent
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
30
Which of the following is included in the top compartment of a design class?
A)Attributes
B)Parameter list
C)Type-expression
D)Stereotype name
A)Attributes
B)Parameter list
C)Type-expression
D)Stereotype name
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
31
An input window class is an example of a(n)____ design class type.
A)boundary
B)control
C)entity
D)persistent
A)boundary
B)control
C)entity
D)persistent
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
32
In generalization/specialization the attributes (but not the associations)of the subclass are inherited from the superclass.
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
33
High coupling is usually better than low coupling because it makes the system more integrated.
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
34
A class level attribute applies to all instances of a class.
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
35
CRC stands for Class-Responsibility-Communication.
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
36
Which of the following is NOT one of the design models used for object-oriented design.
A)Communication diagram
B)System sequence diagram
C)CRC cards
D)Design class diagram
A)Communication diagram
B)System sequence diagram
C)CRC cards
D)Design class diagram
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
37
Separation of responsibilities is the basic principle upon which multilayer design is founded.
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
38
Design using CRC cards does not require the use of a design class diagram.
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
39
Navigation visibility may be bidirectional.
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
40
Object responsibility is important because it helps to decide what methods are assigned to what classes.
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
41
A class that is responsible for accessing both the Internet and a database has ____ cohesion.
A)very low
B)low
C)medium
D)high
A)very low
B)low
C)medium
D)high
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
42
A Web based application that integrates HTML code with business logic is said to be in violation of what design principle?
A)Object responsibility
B)Indirection
C)Protection from variations
D)Coupling
A)Object responsibility
B)Indirection
C)Protection from variations
D)Coupling
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
43
Which of the following is true of class-level methods?
A)They depend on the existence of a particular object.
B)They cannot access data across all objects.
C)They are executed by the class instead of a specific object of the class.
D)There can only be one class method per class.
A)They depend on the existence of a particular object.
B)They cannot access data across all objects.
C)They are executed by the class instead of a specific object of the class.
D)There can only be one class method per class.
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
44
In design class notation,the ____ of an attribute is enclosed in curly braces {}.
A)visibility
B)type-expression
C)initial-value
D)property
A)visibility
B)type-expression
C)initial-value
D)property
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
45
If a class is reusable,that is to say that it can be used in several different applications,then it has been designed using what good design principle? An example might be a button class.
A)Separation of concerns
B)Object responsibility
C)Low coupling
D)High cohesion
A)Separation of concerns
B)Object responsibility
C)Low coupling
D)High cohesion
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
46
In a design class diagram,navigation visibility is identified by ____.
A)a solid arrow between the classes, pointing to the visible class
B)a solid arrow between the classes, initiating from the visible class
C)a dashed arrow between the classes, pointing to the visible class
D)a solid line between the classes
A)a solid arrow between the classes, pointing to the visible class
B)a solid arrow between the classes, initiating from the visible class
C)a dashed arrow between the classes, pointing to the visible class
D)a solid line between the classes
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
47
Which of the following is the best coupling choice for an input window,domain,and database object in a system?
A)The input window is coupled to both the domain and database objects.
B)The input window is coupled to the domain and the domain is coupled to the database.
C)The input window and the domain are both coupled to the database object.
D)All objects are coupled to each other.
A)The input window is coupled to both the domain and database objects.
B)The input window is coupled to the domain and the domain is coupled to the database.
C)The input window and the domain are both coupled to the database object.
D)All objects are coupled to each other.
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
48
Which of the following is valid Unified Modeling Language (UML)notation for a method signature?
A)visibility name:type-expression {parameter list}
B)name:class-name (parameter list):type-expression
C)visibility name(parameter list):type-expression
D)visibility class-name:name:type-expression {parameter list}
A)visibility name:type-expression {parameter list}
B)name:class-name (parameter list):type-expression
C)visibility name(parameter list):type-expression
D)visibility class-name:name:type-expression {parameter list}
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
49
High coupling ____ in a system.
A)is easier to maintain
B)reduces ripple effects in a system when changes occur
C)adds complexity
D)decreases visibility between classes
A)is easier to maintain
B)reduces ripple effects in a system when changes occur
C)adds complexity
D)decreases visibility between classes
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
50
UML provides a technique to extend the standard UML notation to include new symbols. This technique is called ________.
A)extending
B)stereotyping
C)prototyping
D)externalizing
A)extending
B)stereotyping
C)prototyping
D)externalizing
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
51
After completing a use-case design using CRC cards,the next step is to _______.
A)add required utility classes
B)select another use case
C)program the use case
D)update the design class diagram
A)add required utility classes
B)select another use case
C)program the use case
D)update the design class diagram
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
52
Given two classes,customer and order,which class would probably have navigational visibility to which class?
A)Cannot determine based on the information provided
B)Bidirectional -- each has visibility to the other
C)Order to Customer
D)Customer to Order
A)Cannot determine based on the information provided
B)Bidirectional -- each has visibility to the other
C)Order to Customer
D)Customer to Order
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
53
Which of the following is a general guideline for designing navigation visibility?
A)A superior/subordinate relationship is usually navigated from the superior to the subordinate class
B)A superior/subordinate relationship is usually navigated from the subordinate to the superior class
C)Relationships in which objects in one class cannot exist without objects of another class are usually navigated from the more dependent class to the more independent class
D)Navigation arrows should not be modified during the design process
A)A superior/subordinate relationship is usually navigated from the superior to the subordinate class
B)A superior/subordinate relationship is usually navigated from the subordinate to the superior class
C)Relationships in which objects in one class cannot exist without objects of another class are usually navigated from the more dependent class to the more independent class
D)Navigation arrows should not be modified during the design process
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
54
CRC stands for what?
A)Collaboration responsibility card
B)Class responsibility collaboration
C)class relationship collaboration
D)collaboration relationship class
A)Collaboration responsibility card
B)Class responsibility collaboration
C)class relationship collaboration
D)collaboration relationship class
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
55
____ is a qualitative measure of the consistency of functions within a single class.
A)Cohesion
B)Encapsulation
C)Coupling
D)Visibility
A)Cohesion
B)Encapsulation
C)Coupling
D)Visibility
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
56
Which of the following is correct UML notation for an attribute in a design class?
A)visibility name:type-expression = initial-value{property}
B)visibility class-name:type-expression {property}
C)visibility name:initial-value(property)
D)visibility name:type-expression initial-value (property)
A)visibility name:type-expression = initial-value{property}
B)visibility class-name:type-expression {property}
C)visibility name:initial-value(property)
D)visibility name:type-expression initial-value (property)
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
57
Which of the following is usually NOT included in a first-cut design class diagram?
A)Initial value information for attributes
B)Attribute types
C)Method signatures
D)Navigation visibility arrows
A)Initial value information for attributes
B)Attribute types
C)Method signatures
D)Navigation visibility arrows
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
58
If you are doing detailed design for the use case Create New Order,which class should receive the first input?
A)Order Transaction
B)Order
C)Order Handler
D)Customer
A)Order Transaction
B)Order
C)Order Handler
D)Customer
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
59
A plugin,such as adobe PDF reader,that is attached to a browser,such as Firefox,is a good example of what design principle?
A)Separation of concerns
B)Protection from Variations
C)Indirection
D)Good cohesion
A)Separation of concerns
B)Protection from Variations
C)Indirection
D)Good cohesion
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
60
A class named SaleItem which has methods to calculate its own price is said to have good ______.
A)API
B)cohesion
C)coupling
D)object responsibility
A)API
B)cohesion
C)coupling
D)object responsibility
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
61
The term "_______" is a measure of the focus or unity of purpose within a single class.
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
62
What is the term to denote a method that is invoked on a class instead of on an object?
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
63
What is the term used to define the characteristic of an object attribute that describes whether it can be directly accessed by another object -- denoted by + or - ?
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
64
A(n)_______ ______ class is a class that is used to retrieve data from a database.
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
65
What do we call the notation that shows all the information required to call or invoke a method?
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
66
The general term that refers to the process to identify the set of classes,their methods and the messages to execute a use case is called ______ ______ ______.
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
67
What term is used to describe a design principle in which an intermediate class is placed between two classes to decouple them but still link them?
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
68
When an object receives a message,a(n)_______,which is a small segment of program logic,receives the message and processes it.
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
69
A class that can be instantiated with objects of its type being created is called a(n)______ _____.
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
70
The term used to identify an attribute that contains the same value for all objects of this type in the system is _______.
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
71
A(n)_______ class is one where its objects exist after the system is turned off.
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
72
The main purpose of a(n)______ ______ diagram is to document and describe the programming classes that will be built for the new system.
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
73
What is the term that is used to describe a design principle in which parts of a system that are unlikely to change are segregated from those that will?
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
74
Which of the following are information items on CRC cards. (Choose two)
A)Object names
B)Method signatures
C)Attributes
D)Stereotypes
E)Interactions
F)Responsibilities
A)Object names
B)Method signatures
C)Attributes
D)Stereotypes
E)Interactions
F)Responsibilities
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
75
The term "______ ______" is a design principle in which one object has reference to another object and can thus interact with it.
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
76
A class that can never have objects of its type created is called a(n)______ ______.
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
77
The creation of a programming object based on the template provided by the class definition is called _______.
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
78
A design principle in which objects are responsible for carrying out system processing is called ______ ______.
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
79
A brainstorming technique for designing interactions in use cases by assigning responsibilities and collaborations for classes is called _______ ______ .
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck
80
Which is a valid sequence of modeling steps for designing a use case?
A)Choose use case, CRC cards, Final DCD, package diagram
B)Sequence diagram, DCD, State chart diagram, Package diagram
C)First cut DCD, CRC cards, package diagram, Final DCD
D)First cut DCD, Communication diagram, Final DCD, Package Diagram
A)Choose use case, CRC cards, Final DCD, package diagram
B)Sequence diagram, DCD, State chart diagram, Package diagram
C)First cut DCD, CRC cards, package diagram, Final DCD
D)First cut DCD, Communication diagram, Final DCD, Package Diagram
Unlock Deck
Unlock for access to all 89 flashcards in this deck.
Unlock Deck
k this deck