JNTU
JNTU B.Tech III DESIGN PATTERNS Previous Question Paper (February - 2023 - R16)
Note: i) Question paper consists of Part A, Part B. ii) Part A is compulsory, which carries 25 marks. In Part A, Answer all questions. iii) In Part B, Answer any one question from each unit. Each question carries 10 marks and may have a, b as sub questions.
Part A
What do you mean by design Pattern?
Answer
A design pattern is a reusable, generalized solution to a commonly occurring problem within a given context in software design. It is not a finished piece of code that can be transformed directly into an application, but rather a template or description for how to solve a problem that can be used in many different situations.
Write about framework.
Answer
A framework is a reusable set of libraries or a semi-complete software architecture that provides a foundation for developing applications. Unlike a library, which is a collection of helper functions called by the user's code, a framework follows the Inversion of Control (IoC) principle, where the framework calls the user's code.
Key characteristics include:
- Inversion of Control: The framework defines the program's flow and calls specific hooks or callbacks provided by the developer.
- Extensibility: Developers can extend the framework by plugging in their own code to implement application-specific logic.
- Non-modifiable code: The framework's internal structure is typically fixed and meant to be used as-is, promoting standardized development practices across projects.
What is Decorator pattern?
Answer
Sign in to view the complete answer paper.
With suitable example, explain about compositor and composition.
Answer
Sign in to view the complete answer paper.
Draw the structure of Prototype pattern.
Answer
Sign in to view the complete answer paper.
What are benefits of Singleton pattern?
Answer
Sign in to view the complete answer paper.
What are related patterns of Façade pattern?
Answer
Sign in to view the complete answer paper.
List the consequences of Composite pattern.
Answer
Sign in to view the complete answer paper.
Write the intent of Observer pattern.
Answer
Sign in to view the complete answer paper.
Describe motivation of Strategy pattern.
Answer
Sign in to view the complete answer paper.
Part B
What are some common causes of redesign? Explain briefly.
Answer
Sign in to view the complete answer paper.
How to use a design pattern? Discuss in brief.
Answer
Sign in to view the complete answer paper.
Discuss about design patterns in Smalltalk MVC in detail.
Answer
Sign in to view the complete answer paper.
Explain in detail about supporting multiple window systems problem in Lexi’s design.
Answer
Sign in to view the complete answer paper.
Describe user operations problem in Lexi’s design.
Answer
Sign in to view the complete answer paper.
Write and explain the sample code of Prototype pattern.
Answer
Sign in to view the complete answer paper.
Describe motivation, applicability and structure of Builder pattern.
Answer
Sign in to view the complete answer paper.
Discuss about implementation issues of Abstract Factory pattern.
Answer
Sign in to view the complete answer paper.
Explain sample code and known issues of Factory Method pattern.
Answer
Sign in to view the complete answer paper.
Describe implementation issues of Composite pattern.
Answer
Sign in to view the complete answer paper.
Discuss about the implementation of Proxy pattern.
Answer
Sign in to view the complete answer paper.
Explain about the motivation and applicability of Flyweight pattern.
Answer
Sign in to view the complete answer paper.
Write about the sample code of Decorator pattern.
Answer
Sign in to view the complete answer paper.
Explain the following:
Sample code of Iterator
Answer
Sign in to view the complete answer paper.
Template method pattern.
Answer
Sign in to view the complete answer paper.
Write about:
Implementation of Chain of Responsibility pattern
Answer
Sign in to view the complete answer paper.
Sample code of State pattern.
Answer
Sign in to view the complete answer paper.