Tag: architecture

Questions Related to architecture

  1. It helps achieve proper fucntionality if the tasks are ordered

  2. it is mandatory that the sequence added to a transaction must be the best execution sequence possible

  3. The number of tasks to be executed affects the overall performance of a transaction

  4. None of the above


Correct Option: A
  1. Modifying a persistent object results in the instance update of the database

  2. Only one persistent object can refer to an instance of a class at any given time

  3. The transactional state of an object decides the response to an operation

  4. None of the above


Correct Option: C
  1. The model, view and the controller objects are independent of each other and can be easily used to integrate a new client's business logic

  2. The new client can be coded into the controller as additional business logic for the enterprise data

  3. The MVC pattern makes provisions for any new client at the time of development of the enterprise solution

  4. The MVC Pattern provides for many models to be used by one controller, thus making it easy to incorporate a new client


Correct Option: A
  1. Separation makes more space available for application and interface objects

  2. Separation ensures independence of business logic

  3. Separation is used for repeated testing of the code

  4. Separation makes it easier for the model and the view to define roles in times of performance


Correct Option: B
  1. The MVC pattern introduces extra classes due to the separation of the model,view and the controller components

  2. The view component accesses the enterprise data through the model component

  3. The model-view separation principle states that the application logic should not be put in the UI object method

  4. The Model-View separation principle helps minimize the impact of requirement change in the interface on the controller layer


Correct Option: D
  1. Provides a uniform interface to the subsystem

  2. Defines a table for each persistent object class

  3. Assigns an object identifier for each record

  4. Makes a class resonsible for materialization


Correct Option: B
  1. Provides a uniform interface to the subsystem

  2. Assigns the responsibility for creating new class instance or object

  3. Makes a class responsible for materialization

  4. Makes the database mappers responsible for maintaining cache


Correct Option: A
  1. Is a behavioral pattern that defines how a single class can be notified of a change

  2. Consider the objects displaying the data and the objects containing the data as a single entity.

  3. Is also known as the publish-subscribe model where an object can publish an event that has no subscribers

  4. None of the above


Correct Option: C
  1. Creates an abstract coupling between the subject and the observer

  2. Allows the subject and observer to belong to different layers of abstraction

  3. Supports notifications in the form of broadcasts

  4. All of the above


Correct Option: D
  1. At any given time only one algorithm is instantiated and active

  2. The Strategy pattern encapsulates related classes that have different functionalities

  3. The name of the message to the strategy object and the context object must be the same

  4. None of the above


Correct Option: A