Questions
Which of the following are types of Creational Patterns?
- Adapter, Bridge and Decorator.
- Singleton, Builder and Factory Method.
- Facade, Flyweight and Proxy.
- Iterator, Observer and Template.
A ------------- is a direct stand-in for another class and it typically has the same interface as that class because it implements a common interface or an abstract class.
- Decorator Pattern.
- Façade Pattern.
- Proxy Pattern.
- Adapter Pattern.
Example of Decorator pattern in Java API?
- java.util.List
- java.lang.String
- java.io.BufferedInputStream.
- None of the above.
The -------------- Method pattern should be used to implement the invariant parts of an algorithm once and leaves it up to subclasses to implement the behavior that can vary
- Strategy Pattern.
- Template Pattern.
- Observer Pattern.
- None of the above.
The Java API uses this pattern in the event model of its AWT/Swing Classes
- Strategy Pattern.
- Template Pattern.
- Observer pattern.
- None of the above.
Which pattern prescribes recursive composition for complex objects?
- Composite Pattern
- Strategy Pattern
- Observer Pattern
- Factory Pattern
Which pattern is used to allow different implementations of an algorithm or operation to be selected dynamically at runtime?
- Façade Pattern.
- Adapter Pattern
- Strategy Pattern.
- Factory pattern.
Which Pattern is used when it must be decided at run time which one of the several compatible classes is to be instantiated?[
- Singleton Pattern
- Façade Pattern.
- Factory Pattern.
- Adapter Pattern.
What Modifier needs to be added in order to make the below function as Singleton Class? ----------- -------- Connection getConnection() throws Exception{ return new Connection(); }
- private, final.
- protected, static
- public, static
- public, final.
Suppose I have to code a program to draw 1000 circles with 6 different colors – Which Structural Pattern approach would help?
- Façade.
- FlyWeight.
- Decorator.
- Adpater
Which Behavioral Pattern would help in parsing and translate a Specific Expression?
- Command
- Interpreter
- Observer
- Iterator.
Which Behavioral Pattern move through a list of collection or aggregated objects without knowing its internal representations?
- Command
- Interpreter
- Mediator.
- Iterator.
If I need to access Multiple Data Sources like Legacy Systems, B2B, LDAP – Which of the below J2EE Pattern would suit?
- Data Access Object.
- MVC
- Business Delegate
- Service Locator.
What is the name of the design pattern in which the data, the data presentation and the data controls are defined separately?
- Model-View-Controller.
- Publish-Subscribe.
- Observer-Observable.
- Reader-Writer.
This Layer manages reading, writing, updating and deleting stored data?
- Value Objects Layer.
- Presentation Layer.
- Data access object layer.
- Deployment Layer.
I want to build a presentation layer in J2EE. Which option mentioned below would suit me?
- Web Services
- Struts
- JDBC
- EJB
-------------- is a BRMS that enables both business users and developers to manage the rules that drive their business.
- Hibernate
- Spring Framework
- ILOG Jrules.
- Savvion.
Business users work with ------------- to write and maintain business rules, both during application development and after the application is deployed to production
- RuleDocs.
- Rule Team Server.
- Rule Execution Server.
- Rule Studio.
Name the modules needed for development of Business Rule Applications?
- Architect, Developer and Business Analyst.
- Rule Studio, Rule Engine and Decision Validation Services.
- Design, Orchestrate and Author.
- None of the above.
Name the Role responsible for the development, testing, debugging and deployment of Business Rule Applications
- Architect.
- Developer.
- Business Analyst.
- None of the above.