Tag: programming languages

Questions Related to programming languages

  1. SOAP

  2. International standards

  3. XML

  4. UML


Correct Option: A,B,C
  1. The Adapter pattern implements an interface known to its clients and provides an instance of a class not known to its clients.

  2. The Bridge pattern implements an interface known to its clients and provides an instance of a class not known to its clients.

  3. The Adapter pattern creates a separation between abstractions and classes that implement those abstractions.

  4. The Bridge pattern creates a separation between abstractions and classes that implement those abstractions.


Correct Option: A,D

As part of your new application you need to create a custom class loader so that you can implement with custom security. So you need to create objects without knowing the class of the objects or how to create them. What pattern should you use for this?

  1. Abstract factory

  2. Builder

  3. Prototype

  4. Singleton


Correct Option: C

You are a Computer Science lecturer at a top University. You are giving a presentation of a new piece of software you have written. Basically you have written the next generation spell checker, the reason yours is so good is that it can learn the common typing mistakes of an individual user. You have already sold licenses to many major software vendors and plan to retire in the Sun. However before you go they all require slight changes in the logic to suit their individual needs. What design pattern will help you slightly change the logic in a class to be used in many applications?

  1. Strategy

  2. Adapter

  3. Template Method

  4. Interpreter


Correct Option: C
  1. You need two unconnected objects to be able to send messages to each other.

  2. You need two connected objects to be able to send messages to each other.

  3. You need to create a new operation on an object and you will change the classes of elements on which it operates.

  4. You need to create a new operation on an object without changing the classes of elements on which it operates.


Correct Option: D