Software Design Patterns

Test your knowledge of software design patterns including J2EE patterns and GoF patterns

15 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which one of the following is not a participant in Proxy pattern?

  1. Proxy
  2. ConcreteProxy
  3. Subject
  4. RealSubject
Question 2 Multiple Choice (Single Answer)

Which one of the following is not a participant in State pattern?

  1. State
  2. Context
  3. ConcreteState
  4. ConcreteContext
Question 3 Multiple Choice (Single Answer)

Provides a way to access the elements of an aggregate object sequentially without exposing its underlying representation.

  1. Iterator
  2. Visitor
  3. Composite
  4. Command
Question 4 Multiple Choice (Single Answer)

Defines an interface for creating an object, but let the subclasses decide which class to instantiate.It let the instantiation differ to subclasses.

  1. Abstract Factory
  2. Factory Method
  3. Builder
  4. Prototype
Question 5 Multiple Choice (Single Answer)

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.

  1. Chain of responsibility
  2. Template method
  3. Interpreter
  4. Mediator
Question 6 Multiple Choice (Single Answer)

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?

  1. Observer
  2. Mediator
  3. Adapter
  4. Bridge
  5. Visitor
Question 7 Multiple Choice (Single Answer)

centralizes control, retrieval, and invocation of view and command processing

  1. Front Controller
  2. Application Controller
  3. Context Object
  4. Business Delegate
Question 8 Multiple Choice (Single Answer)

reduces coupling between remote tiers and provides an entry point for accessing remote services in the business tier

  1. Application Controller
  2. Front Controller
  3. Business Delegate
  4. Dispatcher View
Question 9 Multiple Choice (Single Answer)

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

  1. Service Activator
  2. Data Access Object
  3. Domain Store
  4. Business Object
Question 10 Multiple Choice (Single Answer)

enables asynchronous processing in your enterprise applications using JMS

  1. Service Activator
  2. Data Access Object
  3. Domain Store
  4. Business Object
Question 11 Multiple Choice (Single Answer)

Simpliflies the client access to the business tier components and eliminates client's direct dependency on multiple business objects

  1. Service Locator
  2. Session Façade
  3. Application Service
  4. Business Delegate
Question 12 Multiple Choice (Single Answer)

provides a powerful mechanism to implement transparent persistence for your object model

  1. Web Service Broker
  2. Domain Store
  3. Data Access Object
  4. Service Activator
Question 13 Multiple Choice (Single Answer)

uses the GoF iterator pattern to provide query execution and processing services

  1. Value List Handler
  2. T O Assembler
  3. Transfer Object
  4. Composite Entity
Question 14 Multiple Choice (Single Answer)

In which of the following condintions, Web Service Broker pattern is applicable

  1. do not want to use entity beans
  2. bridge the gap between business requirements and existing service capabilities
  3. application might be running in a web container
  4. conceptual model with sophisticated business logic, validation and business rules
Question 15 Multiple Choice (Single Answer)

which of the following is not a benefit of the business delegate pattern

  1. reduction of coupling between presentation tier and business tier
  2. reduction of an additional layer to manage
  3. adding a simple uniform interface for the clients to access Business components
  4. performace improvements by caching