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 → Waterfall Model 4

The ___________ is used to translate the interface of one class into another interface.
functionality
click to copy
Which design pattern you would you use to limit the class instantiation to one object?
bloated
click to copy
Which Design Pattern should you use when more than one object may handle a request, and the handler isn't known a priori. The handler should be ascertained automatically.
visitor pattern
click to copy
Which of the following describes the Facade pattern correctly?
form
click to copy

Software Engineering → Spiral Model 4

________________ makes a clear-cut between abstraction and implementation.
persistent data
click to copy
Which of the following patterns allows multiple objects an opportunity to process a request without guaranteeing that any of them must process it?
polymorphism
click to copy
Which GRASP pattern helps to find out answer for “Who should be responsible for creating a new instance of some class?"
encompasses a collection of patterns
click to copy
The use of design patterns for the development of object-oriented software has important implications for ____________
solution
click to copy

Software Engineering → Agile Model 4

The _____________ helps you to create tree structures of objects.
transient data
click to copy
Which of the following is an object pattern that encapsulates interchangeable algorithms in objects so the algorithm can vary independently of the classes that use it?
all of above
click to copy
___________ is a measure of how strongly one element is connected to, has knowledge of, or relies on other elements.
10
click to copy
In which of the following pattern a class represents functionality of another class?
strategy
click to copy

Software Engineering → Requirement Engineering 4

Use ___________ when you need to define a family of algorithms, encapsulate each one, and make them interchangeable.
graph
click to copy
A pattern that is intended to provide a means to define a family of algorithms and encapsulate each one as an object for interchangeable use
pure fabrication
click to copy
A _____________ system is one in which each of its components has little or no knowledge of the definitions of other separate components.
builder pattern
click to copy
The client software uses the ___________ which provides an interface for creating families related or dependent objects.
command
click to copy

Software Engineering → Software Design 4

The __________ allows an object to alter its behavior when its internal state changes.
ddl
click to copy
Which GRASP pattern is suitbale to handle alternatives based on type?
behavioral
click to copy
In Low coupling two elements are coupled, if ______________________.
adapter pattern
click to copy
Which pattern is used when configuring an application with classes dynamically.
factory method design pattern
click to copy

Software Engineering → Coding Standards 4

In which of the following pattern, a null object replaces check of NULL object instance?
deployment diagrams
click to copy
A concrete class must have ...........
facade pattern
click to copy
We can make an object as Controller, if ___________________
bridge pattern
click to copy
___________ pattern ensure a class only has one instance and provide a global point of access to it.
singleton design pattern
click to copy

Software Engineering → Software Testing 4

Which of the following represents The (static) structure and (dynamic) behavior of the pattern?
use case diagram
click to copy
It is also known as Wrapper, it is used when subclassing is not possible or practical to add functionality and it is used to add functionality at runtime. This pattern is
singleton pattern
click to copy
A good software will have _____________.
composite pattern
click to copy
The ____________ is often employed when there is a need to use different sets of objects and where the objects could be added or changed some time during the lifetime of an application.
chain of responsibility
click to copy

Software Engineering → Debugging 3

Which of the following is not one of the elements of a design pattern?
use case diagram
click to copy
The main advantage of design patterns:
state pattern
click to copy
The indirection pattern supports _____________
strategy pattern
click to copy

Software Engineering → Software Maintenance 3

Define a family of algorithms, encapsulate each one, and make them interchangeable. It lets the algorithm vary independently from clients that use it.
general responsibility assignment software patterns
click to copy
Which Design Pattern should you use when you want to parameterize objects by an action to perform.
command pattern
click to copy
Which design pattern defines one-to-many dependency among objects?
state pattern
click to copy

Software Engineering → Introduction to Software Engineering 3

Encapsulate a request as an object, there by letting you parametrize clients with different requests, queue or log requests, and support undoable operation.
9
click to copy
Which Design Pattern should you use whenyou want to represent part-whole hierarchies of objects.
both a &c
click to copy
Which of the following is correct about Factory design pattern.
null object pattern
click to copy

Software Engineering → Software Development Models 3

Which design pattern is used in the Java Database connectivity JDBC(TM)?
controller
click to copy
Which Design Pattern should you use when an application uses a large number of objects and the storage costs are high because of the sheer quantity of objects.
prototype pattern
click to copy
Attach additional responsibilities to an object dynamically.It provides a flexible alternative to subclassing for extending functionality.
visitor pattern
click to copy