Question Bank - SWD392
Question Bank - SWD392
(a) Developing models of software. (b) Designing software applications before coding.
(d) A standardized graphical language and notation for describing object oriented models.
(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.
(a) Notes about the software design. (b) A graphical or textual description of the software.
(c) Documentation of the software. (d) A systematic approach for producing a design.
(a) A graphical or textual description of the software. (b) Documentation of the software.
(a) A graphical or textual description of the software. (b) A fundamental idea that can be applied to
designing a system.
(c) A systematic approach for producing a design. (d) An overall plan and direction for developing
a design.
(b) Guidelines used to help in structuring a software system into its components.
(b) A precise model of the software architecture before a commitment is made to a specific platform.
(b) A precise model of the software architecture before a commitment is made to a specific platform.
(a) An oval (b) A stick figure (c) A box (d) A dashed line
(a) An oval (b) A stick figure (c) A box (d) A dashed line
(a) A box with one compartment (b) A box with one or two compartments
(a) A solid line joining two class boxes (b) A dashed line joining two class boxes
(c) A diamond touching the upper class box (d) An arrowhead touching the upper class box
(a) Class diagram and sequence diagram (b) Sequence diagram and communication diagram
(c) Class diagram and communication diagram (d) Statechart and communication diagram
(a) The physical configuration of the system in terms of physical classes and physical connections
between the classes
(b) The physical configuration of the system in terms of physical objects and physical connections
between the objects
(c) The physical configuration of the system in terms of physical nodes and physical connections
between the nodes
(d) The physical configuration of the system in terms of physical computers and physical networks
between the computers
Chapter 3: Software Life Cycle
Models and Processes
1. What is a software life cycle?
(a) The life of the software (b) A cyclic approach to developing software
(c) A phased approach to developing software (d) The life of software developed in cycles
(a) Software developed under a waterfall (b) A process model in which each phase is completed
before the next phase is started
(a) Software is developed in phases. (b) Each phase is completed before the next phase is started.
(c) Software development is cyclic. (d) Software requirements are not properly tested until a
working system is available.
4. Which of the following approaches can overcome the limitation in the previous question?
(a) Unit testing (b) Integration testing (c) Testing with knowledge of the system internals
(a) System testing (b) Integration testing (c) Testing with knowledge of the system internals
(c) Classes, information hiding, and inheritance (d) Concurrency and information hiding
3. What is a class?
(a) The signature of a class (b) The specification of operations provided by the class
(c) The internals of the class (d) The implementation of the class
7. What is an attribute?
(a) Functional requirements of the system are described in terms of functions, inputs, and outputs.
(b) Functional requirements of the system are described in terms of actors and use cases.
(a) Detailed design and coding of the classes in a subset of the system
(b) Detailed design, coding, and unit testing of the classes in a subset of the system
(c) Coding and unit testing of the classes in a subset of the system
(d) Unit and integration testing of the classes in a subset of the system
(a) White box testing (b) Black box testing (c) Unit testing (d) Integration testing
(a) A case study involving users (b) A sequence of interactions between the user and the system
(c) A sequence of interactions between the user and the objects in the system
(a) An object inside the system (b) A person who performs on stage
(a) The actor who goes on stage first (b) The actor that starts the use case
(c) An actor that participates in the use case (d) An object inside the system
(a) The actor who goes on stage second (b) The actor that starts the use case
(c) An actor that participates in the use case (d) An object inside the system
(a) To describe an inclusive use case (b) To describe a lengthy interaction with an actor
(c) To describe functionality that is common to more than one use case
(b) To describe functionality that is common to more than one use case
(c) To describe the functionality of a use case that is extended by another use case(s)
(d) To describe a conditional part of a different use case that is only executed under certain
circumstances
(a) To depict the sequence of activities executed by all the use cases in the system
(b) To depict the sequence of external activities that the use case interacts with
(d) To depict the activities in the main and alternative sequences of a use case
(a) A package describing the actors in the system (b) A package describing the use cases in the
system
(c) A group of related use cases (d) The package of objects that participate in the use case
(c) A client or server in the system (d) A collection of objects with the same characteristics
2. What is an attribute?
3. What is an association?
(a) A relationship between two classes (b) A relationship between two objects
(c) A link between two classes (d) A link between two objects
(c) How many instances of one class relate to how many instances of another class
(d) How many instances of one class relate to a single instance of another class.
(c) An association between a generalized class and a specialized class (d) A layered hierarchy
(c) A weak form of a whole/part relationship (d) A strong form of a whole/part relationship
(c) A weak form of a whole/part relationship (d) A strong form of a whole/part relationship
(a) The entity classes in the system (b) How the system interfaces to other systems
(c) The boundary between the system and the external environment
(a) An object that depends on other objects (b) An object that communicates with an external
object
(c) An object that controls other objects (d) An object that is controlled by other objects
(a) An object that depends on a state machine (b) An object that communicates with a state machine
(c) An object that controls a state machine (d) An object that executes a state machine
(a) A manager object (b) An object that makes decisions based on a state machine
(c) A decision-making object (d) An object that decides which entity object to interact with
5. How would you determine a boundary class from the context diagram?
(a) By looking at it (b) By selecting the external classes on the context diagram
(c) By determining the software classes that communicate with the external classes
(d) By drawing the boundary between the hardware and software classes
(a) Structuring an application into classes (b) Defining the attributes of a class
(c) Defining the associations of a class (d) Defining the operations of a class
8. What is the classification process for application classes analogous to?
(a) Categorizing books in a library (b) Deciding how many copies of a book are needed
(c) Finding the classrooms in a school (d) Identifying what labs the school has
(a) The state and transitions inside a control object (b) Classes and their relationships
(b) An actor can provide input to or receive output from a boundary object.
(c) An actor can provide input to or receive output from a boundary class.
(d) An instance of an actor can provide input to or receive output from a boundary object.
(d) Depicts all object instances and their links to each other
(d) Depicts all classes and their associations with each other
(a) Determine objects that participate in each use case and the sequence of interactions among them.
(b) Determine external objects and the sequence in which they provide inputs to and receive outputs
from each use case.
(d) Determine how a use case is depicted through internal states and transitions between them.
10. What kind of object would be the first object to receive an input from an external object?
(a) A user interaction object (b) A proxy object (c) An entity object (d) A boundary object
(c) An input from the external environment (d) An output from the system
(b) An input from the external environment (c) An input that is True or False
(c) An interval between two successive events (d) A computation that executes as a result of a state
transition
(c) An action that starts executing when the state is entered and completes executing when the state is
left
(d) An action that executes as a result of a state transition
(c) An action that starts executing when the state is entered and completes executing when the state is
left
(a) A transition into only one of the substates (b) A transition into each of the substates
(c) A transition into none of the substates (d) A transition into any one of the substates
(a) A transition out of only one of the substates (b) A transition out of each of the substates
10. If two actions are shown on a given state transition, which of the following is true?
(d) The second action executes when the first action completes execution.
Chapter 11: State-Dependent
Dynamic Interaction Modeling
1. What does a state-dependent interaction involve?
(a) A control object (b) A state-dependent entity object
(c) A state-dependent control object (d) A state-dependent user interaction
object
2. Which kind of object executes a state machine
(a) Any software object (b) An entity object
(c) A state-dependent control object (d) A statechart
3. 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
4. An output message from 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
5. 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
6. 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
7. 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.
8. 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
9. 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
10. 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.
(b) A synthesis of all the communication diagrams developed to support the use cases
(c) A communication diagram depicting the objects that realize a use case
(d) A communication diagram that integrates the entity objects from the static model
2. Which of the following objects should be assigned to the same subsystem?
(a) Objects that are part of the same composite object (b) Client and server objects
(c) User interface and entity objects (d) Objects that are associated with each other
(a) A user interface object is placed in the same subsystem as an entity object it updates.
(b) A state-dependent control object is placed in the same subsystem as the objects it controls.
(c) A state-dependent control object is placed in a different subsystem from the objects it
controls.
(d) A user interface object is placed in a different subsystem from an entity object it updates.
(a) It should interface to one subsystem. (b) It should interface to several subsystems.
(c) It should interface to every subsystem. (d) It should interface to none of the subsystems.
7. Which of the following objects are NOT likely to be in the same subsystem?
(c) Business logic object and entity object (d) I/O object and state-dependent control object
(a) An active object that encapsulates data (b) A passive object that encapsulates data
(c) A class that encapsulates data (d) A task that encapsulates data
(a) The class calls the interface. (b) The class implements the interface.
(c) The class is called by the interface. (d) The class is independent of the interface.
(d) A state transition table and the current state of the machine
(c) Deny cash withdrawal if balance of account is less than $10 (d) A dialog box
(b) A subsystem that makes requests and waits for the responses
(d) A hardware/software system that provides one or more services for multiple clients
(a) Multiple clients request services, and multiple services fulfill client requests.
(b) Multiple clients request services, and a service fulfills client requests.
(d) A client requests services, and multiple services fulfill client requests.
(a) An intermediate tier is a client tier. (b) An intermediate tier is a service tier.
(a) A class that encapsulates a data structure (b) A class that encapsulates a database
(c) A class that encapsulates the details of how to access data in a database
8. When designing an entity class as a relational table, which of the following is NOT true?
(c) The relational table has a primary key. (d) The relational table has a concatenated primary
key.
(a) The aggregate and part tables have different primary keys.
(b) The aggregate and part tables have the same primary key.
(c) The primary key of the aggregate table is a foreign key of the part table.
(d) The primary key of the part table is a foreign key of the aggregate table.
(a) The superclass and each subclass are designed as relational tables.
(c) The aggregate and part classes are designed as relational tables.
(c) Component instances can be deployed to different nodes in a geographically distributed environment
before implementation.
(a) The externally visible operations of a component (b) The operations provided by a component
(c) The operations required by a component (d) The operations that a component supports
(a) The operations that a component must fulfill (b) The operations inside a component
(c) The operations that a component uses (d) The operations of a component
(a) The operations that a component must fulfill (b) The operations inside a component
(c) The operations that a component uses (d) The visible operations of a component
(a) The provided port of one component to the required port of another component
(b) The provided port of one component to the provided port of another component
(c) The required port of one component to the provided port of another component
(d) The required port of one component to the required port of another component
(a) A message sent to several recipients (b) A message sent to a specific recipient
(c) A message sent to all recipients (d) A message sent to recipients who are members of a group
(a) A message sent to several recipients (b) A message sent to a specific recipient
(c) A message sent to all recipients (d) A message sent to recipients who have joined a group
(c) Component instances are assigned to hardware nodes. (d) Component instances are instantiated.
(b) An active object does not have a thread of control; a passive object has a thread of control.
(c) An active object executes in a distributed system; a passive object executes in a centralized system.
(d) An active object has a thread of control; a passive object does not have a thread of control.
(c) A task that receives inputs from an external device when it generates interrupts
(d) A task that checks whether there is new input from an external device
(a) A task that responds to each message it receives (b) A task that is activated by a timer event
(b) A task that is activated by an internal message or event from another task
(a) A task that control other tasks (b) A task that executes a statechart
(c) A task that executes on demand (d) A task that controls I/O devices
6. What is a user interaction task?
(a) A task that interacts with I/O devices (b) A task that interacts with users
(c) A task that interacts with a user sequentially (d) A task that interacts with a user concurrently
(a) External event (b) Internal event (c) Timer event (d) User event
(a) A use case with some optional steps (b) A use case that does not need to be developed
(c) A use case that is required by some product line members but not others
(d) A use case that can be chosen in place of a different use case in a SPL member
(a) A variable use case (b) A location in the use case at which change can occur
(c) An alternative use case (d) A location in the use case where an alternative path can start
(b) A group of features with a particular constraint on their usage in a SPL member
(d) A group of optional features with a particular constraint on their usage in a SPL member
(a) An entity class in the SPL (b) A SPL class that stores essential data
(c) A class that is required by all members of the SPL (d) An external class to the SPL
(b) A member of the SPL composed of kernel classes and possibly some default classes
(c) A member of the SPL composed of kernel classes and possibly some optional classes
(d) A member of the SPL composed of kernel classes and possibly some entity classes
(a) The software inside a family of buildings (b) The structure of a client/server product family
2. What is maintainability?
(a) The extent to which software is capable of being changed before deployment
(b) The extent to which software is capable of being changed after deployment
(c) The extent to which software is capable of being changed during development
(d) The extent to which software is capable of being changed after development
3. What is modifiability?
(a) The extent to which software is capable of being modified after deployment
(b) The extent to which software is capable of being modified after initial development
(c) The extent to which software is capable of being modified during and after initial development
(d) The extent to which software is capable of being changed before deployment
4. What is testability?
(b) The extent to which software is capable of being tested before deployment
(c) The extent to which software is capable of being tested after deployment
6. What is scalability?
(b) The extent to which the system is capable of growing after its initial deployment
(c) The extent to which the system is capable of growing during development
7. What is reusability?
(d) The extent to which the software is common among a program family
Which of these can be found in Common Object Request Broker Architecture (CORBA) Choose the
three correct answer
B. Facilities
A. An external part of the software system, like a library that must be be imported.
B. The basic parts of the software, which it could not run without.
D. a general name for a ‘part’ of the software system. It could be a method, variable, class, object, or
grouping of any of these
A. document style
B. envelope
C. RPC style
D. request-response
A. handshake
B. one-way.
C. solicit-response.
D. request-response.
A. True
B. False
Architecture design is about choosing the right single architecture style for a project
A. True
B. False
The "+1" in Kruchten's 4+1 View Model refers to a scenario. What is a scenario?
a. a representation of a normal use case.
b. a representation of the system-wide state.
c. an unexpected use case of the software.
d. one of the tools that is used to implement the software.
D. They are useful for clarifying the artifacts that will be produced from development
The purpose of the software design phase is to produce asoftware requirement specification.
A. True
B. False
A. True
B. False
Which of the following structrues describe the dynamic properties of software architecture?
Which of these UML diagrams are likely to be part of the process view? (select two)
A. Activity diagram
B. Class diagram
C. Sequence Diagram
D. State Diagram
What of these is an advantages of event-based architectured?