Software Design Patterns
Test your knowledge of software design patterns including J2EE patterns and GoF patterns
Questions
Which one of the following is not a participant in Proxy pattern?
- Proxy
- ConcreteProxy
- Subject
- RealSubject
Which one of the following is not a participant in State pattern?
- State
- Context
- ConcreteState
- ConcreteContext
Provides a way to access the elements of an aggregate object sequentially without exposing its underlying representation.
- Iterator
- Visitor
- Composite
- Command
Defines an interface for creating an object, but let the subclasses decide which class to instantiate.It let the instantiation differ to subclasses.
- Abstract Factory
- Factory Method
- Builder
- Prototype
Define the skelton of an algorithm in an operation, deferring some steps to subclasses. It lets subclasses redefine certain steps of an algorithm without changing the algorithm structure.
- Chain of responsibility
- Template method
- Interpreter
- Mediator
Julia Fractals Inc. is building a J2EE based application for Order Entry and management of their fractal software. Once the order is taken, it is submitted to a relational database. A provisioning system then queries data and makes appropriate calls to various subsystems using JMS on MQ Series. What design pattern is JMS an example of here?
- Observer
- Mediator
- Adapter
- Bridge
- Visitor
centralizes control, retrieval, and invocation of view and command processing
- Front Controller
- Application Controller
- Context Object
- Business Delegate
reduces coupling between remote tiers and provides an entry point for accessing remote services in the business tier
- Application Controller
- Front Controller
- Business Delegate
- Dispatcher View
enables loose coupling between the business and resource tiers and encapsulates all the data access logic to create, retrieve, delete, and update data from a persistent store
- Service Activator
- Data Access Object
- Domain Store
- Business Object
enables asynchronous processing in your enterprise applications using JMS
- Service Activator
- Data Access Object
- Domain Store
- Business Object
Simpliflies the client access to the business tier components and eliminates client's direct dependency on multiple business objects
- Service Locator
- Session Façade
- Application Service
- Business Delegate
provides a powerful mechanism to implement transparent persistence for your object model
- Web Service Broker
- Domain Store
- Data Access Object
- Service Activator
uses the GoF iterator pattern to provide query execution and processing services
- Value List Handler
- T O Assembler
- Transfer Object
- Composite Entity
In which of the following condintions, Web Service Broker pattern is applicable
- do not want to use entity beans
- bridge the gap between business requirements and existing service capabilities
- application might be running in a web container
- conceptual model with sophisticated business logic, validation and business rules
which of the following is not a benefit of the business delegate pattern
- reduction of coupling between presentation tier and business tier
- reduction of an additional layer to manage
- adding a simple uniform interface for the clients to access Business components
- performace improvements by caching