Quick Revision

GK One-Line Question & Answer

15541+ short questions with short answers, covering every category and sub-category on the site — no long articles to scroll through. Good for a fast recap before an exam, or a few minutes of daily practice.

Software Engineering → Debugging 4

Which pattern is used When an object wants to publish information and many objects will need to receive that information.
strategy
click to copy
What would lead you to apply the builder design pattern?
loosely coupled
click to copy
Classes that contain strongly related functionalities are described as having ____________.
abstract factory
click to copy
What is a software architectural pattern?
factory method
click to copy

Software Engineering → Software Maintenance 4

A ___________ is an object that stores a snapshot of the internal state of another object.
strategy pattern
click to copy
To implement the Singleton design pattern specify all the needed steps ............
both a&b
click to copy
You want to minimize development cost by reusing methods? Which design pattern would you choose?
prototype pattern
click to copy
 Which of the following term is best defined by the statement:”The client sends structured query language (SQL) requests to the server which are transmitted as messages across the net”?
factory method
click to copy

Software Engineering → Introduction to Software Engineering 4

Which of the following describes the Command pattern correctly?
polymorphism
click to copy
Which design pattern you would you use to control the creation of an object based on a established interface, while allowing the concrete implementation to determine the subclass to construct.
both a&b
click to copy
Which of the following describes the Builder pattern correctly?
singleton pattern
click to copy
What is a deployment view of a software architecture?
apply the singleton pattern to class a
click to copy

Software Engineering → Software Development Models 4

Which design pattern provides a single class which provides simplified methods required by client and delagates call to those methods?
program code for all of its methods
click to copy
The factory method design pattern is also known as:
both a&b
click to copy
Which of the following describes the MVC pattern correctly?
abstract factory
click to copy
In a client-server model where ‘n clients’ are sending request or receiving data from ‘m servers’. There are ‘x intermediate servers’ present which re-route the request (coming from Clients) to appropriate server based on the type of request. The intermediate server also returns the response to the client user-interface. What is the role of the intermediate server here?
prototype design pattern
click to copy

Software Engineering → Waterfall Model 4

Which of the following Chooses and standardizes patterns for a problem domain promotes software reuse and, hence, quality and productivity?
decorator
click to copy
Which of the following are participants in the GOF builder design pattern?
both a&b
click to copy
Which of the following is correct about Structural design patterns.
observer pattern
click to copy
Which of the following pattern is the basis of interaction management in many web-based systems?
builder design pattern
click to copy

Software Engineering → Spiral Model 4

Which design pattern suggest multiple classes through which request is passed and multiple but only relevant classes carry out operations on the request?
all of above
click to copy
Which design pattern is used in the Java InputStream and OutputStream hierarchies?
observer pattern
click to copy
Which of the following describes the Filter pattern correctly?
memento
click to copy
What is a database wrapper class?
all of above
click to copy

Software Engineering → Agile Model 4

Which pattern is most appropriate when a decision must be made at the time a class is instantiated?
composite
click to copy
What object should have the responsibility, when you do not want to violate High Cohesion and Low Coupling, or other goals, but solutions offered by Expert are not appropriate?
all of the above
click to copy
Which of the following describes the Flyweight pattern correctly?
in this pattern a request is wrapped under an object as command and passed to invoker object.
click to copy
What is an object broker?
factory method design pattern
click to copy

Software Engineering → Requirement Engineering 3

It is also known as Virtual Constructor and it is used to define an interface for creating an object but letting the subclass decide which class to instantiate, this pattern is :
composite
click to copy
In the Publish-Subscribe messaging model, the subscribers register themselves in a topic and are notified when new messages arrive to the topic. Which pattern does most describe this model?
decorator
click to copy
Which of the following describes the Behavioral pattern correctly?
facade pattern
click to copy

Software Engineering → Software Design 3

You want all the clients using class A to use the same instance of class A, what should you do to achieve this goal?
chain of responsibility
click to copy
When would you use the GOF Decorator design pattern?
this pattern hides the complexities of the system and provides an interface to the client using which the client can access the system
click to copy
Given the following scenario: You want to create families of related objects, to be used interchangeably to configure you application. What is most appropriate GoF pattern to use?
supporting software reuse
click to copy

Software Engineering → Coding Standards 3

Which design pattern you would you use to have a prototypical instance determine the concrete class of object being created?
creator
click to copy
When would you use the GOF Composite design pattern?
all of the above
click to copy
What are the consequences of applying the GOF Singleton pattern?
chain of responsibility pattern
click to copy

Software Engineering → Software Testing 3

Which design pattern you would you use to decouple the creation procedure of a complex object from it's concrete instance to be able to apply that procedure on variety of implementations.
coupling
click to copy
What are the advantages of Factory objects?
proxy pattern
click to copy
What are the consequences of applying the abstract factory patter?
navigation patterns
click to copy