Tag: architecture

Questions Related to architecture

  1. java.util.List

  2. java.lang.String

  3. java.io.BufferedInputStream.

  4. None of the above.


Correct Option: C
  1. Strategy Pattern.

  2. Template Pattern.

  3. Observer pattern.

  4. None of the above.


Correct Option: C
  1. Composite Pattern

  2. Strategy Pattern

  3. Observer Pattern

  4. Factory Pattern


Correct Option: A

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.


Correct Option: C

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


Correct Option: B

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

  1. Command

  2. Interpreter

  3. Observer

  4. Iterator.


Correct Option: B