Tag: architecture

Questions Related to architecture

How many targets can we create in the build.xml?

  1. 1

  2. 10

  3. 5

  4. Any number of targets


Correct Option: D

we can re-name the build.xml ?

  1. True

  2. False


Correct Option: A

Root tag in Ant script?

  1. Project

  2. Root

  3. Directory

  4. folder


Correct Option: A

which tag used to display messages in the ant console ?

  1. print

  2. out

  3. write

  4. echo


Correct Option: D
  1. depends

  2. include

  3. pre-target

  4. none of the above


Correct Option: A
  1. decouple an abstraction from its implementation so that the two can vary independently

  2. One class takes in another class, both of which extend the same abstract class, and adds functionality.

  3. Assembles group of objects with same signature

  4. One class controls the creation of and access to objects in another class.


Correct Option: B
  1. The reusable and variable parts of a class are broken into two classes to save resources

  2. One class controls the creation of and access to objects in another class.

  3. One class takes in another class, both of which extend the same abstract class, and adds functionality.

  4. One class has a method that performs a complex process calling several other classes.


Correct Option: D
  1. Adapter, Bridge and Decorator.

  2. Singleton, Builder and Factory Method.

  3. Facade, Flyweight and Proxy.

  4. Iterator, Observer and Template.


Correct Option: B

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.


Correct Option: C