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 - Answers A
With polymorphism and dynamic binding, an object can:
(a) Invoke operation of different names on the same objects.
(b) Invoke operations of different names on different objects.
(c) Invoke an operation of the same name on the same object.
(d) Invoke an operation of the same name on different objects. - Answers D
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.
(b) The producer does not wait for a response from the consumer.
(c) The producer goes to sleep.
(d) The producer waits for a timeout. - Answers B
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 - Answers A
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 - Answers C
Which of the following is NOT an object-oriented concept?
(a) Information hiding
(b) Class
(c) Subclass
(d) Subroutine - Answers D
Which of the following is unlikely to be encapsulated in a business logic class?
(a) A business rule
(b) Calls to operations of an entity class
(c) Deny cash withdrawal if balance of account is less than $10
(d) A dialog box - Answers D
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 - Answers A
In object-oriented design, polymorphism means that:
(a) Different classes may have the same name.
(b) Different classes may have the same interface name.
(c) Different classes may have the same superclass name.
(d) Different classes may have the same operation name. - Answers D
How should an external object be designed to interface to the system?
(a) It should interface to one subsystem.
(b) It should interface to several subsystems.
(c) It should interface to every subsystem.