SWD392 2/2 Exam Prep Questions and Answers (100% Pass)
An input message to a state-dependent control object corresponds to:
(a) An event on the internal state machine
(b) An action on the internal state machine
(c) A condition on the internal state machine
(d) A state on the internal state machine - ✔️✔️A
An output message from a statedependent control object corresponds to:
(a) An event on the internal state machine
(b) An action on the internal state machine
(c) A condition on the internal state machine
(d) A state on the internal state machine - ✔️✔️B
An interaction diagram should be developed for:
(a) Only the main sequence of the use case
(b) The main sequence and every alternative sequence of the use case
(c) The main sequence and a representative alternative sequence of the use case
(d) The alternative sequences of the use case - ✔️✔️B
Which of the following could happen on an interaction diagram?
(a) A state-dependent control object sends a message to an entity object.
(b) A state-dependent control object sends a message to a coordinator object.
(c) A state-dependent control object sends a message to a printer object.
(d) All of the above - ✔️✔️D
If the same state machine is used in more than one use case, how is this modeled on interaction
diagrams?
(a) Develop one state-dependent control object for each use case.
(b) Develop one state-dependent control object containing states from each use case.
(c) Develop a hierarchical state machine.
(d) Develop a coordinator object - ✔️✔️B
How would two state-dependent control objects communicate with each other?
(a) By sending messages to each other
(b) By transitioning to the same state
(c) Through an entity object
(d) Through a proxy object - ✔️✔️A
An object can send alternative messages a or b to a state-dependent control object. How is this
handled in the state machine?
(a) One state with a different transition out of it for each incoming message
(b) One state for each of the alternative messages
(c) A composite state to handle the alternative messages
(d) A substate for each alternative message - ✔️✔️A
In a system in which a client object executes a state machine and communicates with a service,
which of the following is true?
(a) The client has a state-dependent control object but the service does not.
(b) The service has a state-dependent control object but the client does not.
(c) Both the client and the service have state-dependent control objects.
(d) Neither the client nor the service has a state-dependent control object. - ✔️✔️A
What does the software architecture describe?
(a) The software inside a building
(b) The structure of a client/server system
(c) The overall structure of a software system
(d) The software classes and their relationships - ✔️✔️C
Which of the following statements is NOT true for a component?
(a) A composite object composed of other objects
(b) An operation
(c) A simple object
(d) Provides an interface - ✔️✔️B
What is a structural view of a software architecture?
(a) A view in terms of a module hierarchy
(b) A view in terms of components and connectors
(c) A view of the physical configuration in terms of nodes and interconnections
(d) A view in terms of objects and messages - ✔️✔️B
What is a dynamic view of a software architecture?
(a) A view in terms of a module hierarchy
(b) A view in terms of components and connectors
(c) A view of the physical configuration in terms of nodes and interconnections
(d) A view in terms of objects and messages - ✔️✔️D
What is a deployment view of a software architecture?
(a) A static view in terms of a module hierarchy
(b) A static view in terms of components and connectors
(c) A view of the physical configuration in terms of nodes and interconnections
(d) A dynamic interaction view in terms of objects and messages - ✔️✔️C
What is a software architectural pattern?
(a) The structure of the major subsystems of a system
(b) The components and connectors in a software architecture
(c) A small group of collaborating objects
(d) A recurring architecture used in a variety of systems - ✔️✔️A
What happens in a Layers of Abstraction pattern?
(a) Each layer uses services in the layer immediately below it.
(b) Each layer uses services in the layer immediately above it.
(c) Each layer uses services in the layers immediately above it and below it.
(d) Each layer is independent of the other layers - ✔️✔️A
What happens in a Call/Return pattern?
(a) A calling operation in the calling object sends a message to an operation (a.k.a. method) in the
called object.
(b) A calling operation in the calling object invokes an operation (a.k.a. method) in the called
object.
(c) The calling object waits for a response from the called object.
(d) The calling object does not wait for a response from the called object. - ✔️✔️B
A producer sends a message to a consumer. Which one of the following is asynchronous message
communication?
(a) The producer waits for a response from the consumer.
3
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller OliviaWest. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $12.49. You're not tied to anything after your purchase.