architecture Online Quiz - 13

architecture Online Quiz - 13

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which of the following are types of Creational Patterns?

  1. Adapter, Bridge and Decorator.
  2. Singleton, Builder and Factory Method.
  3. Facade, Flyweight and Proxy.
  4. Iterator, Observer and Template.
Question 2 Multiple Choice (Single Answer)

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.

  1. Decorator Pattern.
  2. Façade Pattern.
  3. Proxy Pattern.
  4. Adapter Pattern.
Question 3 Multiple Choice (Single Answer)

Example of Decorator pattern in Java API?

  1. java.util.List
  2. java.lang.String
  3. java.io.BufferedInputStream.
  4. None of the above.
Question 4 Multiple Choice (Single Answer)

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

  1. Strategy Pattern.
  2. Template Pattern.
  3. Observer Pattern.
  4. None of the above.
Question 5 Multiple Choice (Single Answer)

The Java API uses this pattern in the event model of its AWT/Swing Classes

  1. Strategy Pattern.
  2. Template Pattern.
  3. Observer pattern.
  4. None of the above.
Question 6 Multiple Choice (Single Answer)

Which pattern prescribes recursive composition for complex objects?

  1. Composite Pattern
  2. Strategy Pattern
  3. Observer Pattern
  4. Factory Pattern
Question 7 Multiple Choice (Single Answer)

Which pattern is used to allow different implementations of an algorithm or operation to be selected dynamically at runtime?

  1. Façade Pattern.
  2. Adapter Pattern
  3. Strategy Pattern.
  4. Factory pattern.
Question 8 Multiple Choice (Single Answer)

Which Pattern is used when it must be decided at run time which one of the several compatible classes is to be instantiated?[

  1. Singleton Pattern
  2. Façade Pattern.
  3. Factory Pattern.
  4. Adapter Pattern.
Question 9 Multiple Choice (Single Answer)

What Modifier needs to be added in order to make the below function as Singleton Class? ----------- -------- Connection getConnection() throws Exception{ return new Connection(); }

  1. private, final.
  2. protected, static
  3. public, static
  4. public, final.
Question 10 Multiple Choice (Single Answer)

Suppose I have to code a program to draw 1000 circles with 6 different colors – Which Structural Pattern approach would help?

  1. Façade.
  2. FlyWeight.
  3. Decorator.
  4. Adpater
Question 11 Multiple Choice (Single Answer)

Which Behavioral Pattern would help in parsing and translate a Specific Expression?

  1. Command
  2. Interpreter
  3. Observer
  4. Iterator.
Question 12 Multiple Choice (Single Answer)

Which Behavioral Pattern move through a list of collection or aggregated objects without knowing its internal representations?

  1. Command
  2. Interpreter
  3. Mediator.
  4. Iterator.
Question 13 Multiple Choice (Single Answer)

If I need to access Multiple Data Sources like Legacy Systems, B2B, LDAP – Which of the below J2EE Pattern would suit?

  1. Data Access Object.
  2. MVC
  3. Business Delegate
  4. Service Locator.
Question 14 Multiple Choice (Single Answer)

What is the name of the design pattern in which the data, the data presentation and the data controls are defined separately?

  1. Model-View-Controller.
  2. Publish-Subscribe.
  3. Observer-Observable.
  4. Reader-Writer.
Question 15 Multiple Choice (Single Answer)

This Layer manages reading, writing, updating and deleting stored data?

  1. Value Objects Layer.
  2. Presentation Layer.
  3. Data access object layer.
  4. Deployment Layer.
Question 16 Multiple Choice (Single Answer)

I want to build a presentation layer in J2EE. Which option mentioned below would suit me?

  1. Web Services
  2. Struts
  3. JDBC
  4. EJB
Question 17 Multiple Choice (Single Answer)

-------------- is a BRMS that enables both business users and developers to manage the rules that drive their business.

  1. Hibernate
  2. Spring Framework
  3. ILOG Jrules.
  4. Savvion.
Question 18 Multiple Choice (Single Answer)

Business users work with ------------- to write and maintain business rules, both during application development and after the application is deployed to production

  1. RuleDocs.
  2. Rule Team Server.
  3. Rule Execution Server.
  4. Rule Studio.
Question 19 Multiple Choice (Single Answer)

Name the modules needed for development of Business Rule Applications?

  1. Architect, Developer and Business Analyst.
  2. Rule Studio, Rule Engine and Decision Validation Services.
  3. Design, Orchestrate and Author.
  4. None of the above.
Question 20 Multiple Choice (Single Answer)

Name the Role responsible for the development, testing, debugging and deployment of Business Rule Applications

  1. Architect.
  2. Developer.
  3. Business Analyst.
  4. None of the above.