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 general, reusable solution to a commonly occurring problem within a given context in software design. It is not a finished piece of code but a template or description of how to solve a problem that can be used in many different situations.
Write about framework.
Answer
A framework is a set of predefined classes and interfaces that can be reused to build applications. Unlike a design pattern, which is a conceptual template, a framework is a concrete implementation that provides a skeleton for an application, dictating the overall structure and flow of control while allowing developers to plug in their own custom code.
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.