JNTU
JNTU B.Tech IV DESIGN PATTERNS Previous Question Paper (December - 2019 - R15)
Note: This question paper contains two parts A and B. Part A is compulsory which carries 25 marks. Answer all questions in Part A. Part B consists of 5 Units. Answer any one full question from each unit. Each question carries 10 marks and may have a, b, c as sub questions.
Part A
Write brief notes on usage of design patterns.
Answer
Design patterns are used to solve recurring software design problems by providing proven, reusable solutions. They improve communication among developers by establishing a common vocabulary, enhance code maintainability, and facilitate the creation of flexible, scalable architectures.
Discuss how to select a suitable design pattern.
Answer
Selecting a pattern involves: 1) Analyzing the specific design problem and its constraints. 2) Reviewing the Intent section of candidate patterns to see if they address the problem. 3) Evaluating the Consequences and trade-offs of each pattern regarding flexibility, complexity, and performance to ensure it aligns with system requirements.
What is the applicability of builder patterns?
Answer
Sign in to view the complete answer paper.
Discuss the structure of singleton pattern.
Answer
Sign in to view the complete answer paper.
Write the structure of adapter pattern.
Answer
Sign in to view the complete answer paper.
Write the sample code for bridge pattern.
Answer
Sign in to view the complete answer paper.
Discuss the consequences of observer pattern.
Answer
Sign in to view the complete answer paper.
Write implementation of Iterator pattern.
Answer
Sign in to view the complete answer paper.
Write sample code for template method pattern.
Answer
Sign in to view the complete answer paper.
Discuss the structure of visitor pattern.
Answer
Sign in to view the complete answer paper.
Part B
Discuss about design patterns in Smalltalk MVC.
Answer
Sign in to view the complete answer paper.
What is a design pattern? Discuss how design patterns solve design problems.
Answer
Sign in to view the complete answer paper.
What are the seven problems in Lexi’s user interface design? Explain them clearly.
Answer
Sign in to view the complete answer paper.
Describe the intent, motivation, structure and applicability of abstract factory pattern.
Answer
Sign in to view the complete answer paper.
Explain the Intent, participants, consequences and implementation of decorator pattern.
Answer
Sign in to view the complete answer paper.
Discuss about structure, implementation sample code and known user of flyweight pattern.
Answer
Sign in to view the complete answer paper.
Write the sample code; known user and related patterns for the claim of responsibility and mediator patterns.
Answer
Sign in to view the complete answer paper.
Discuss in detail about command pattern.
Answer
Sign in to view the complete answer paper.
Write about the sample code for interpreter pattern.
Answer
Sign in to view the complete answer paper.
Compare state and strategy patterns and implement strategy pattern.
Answer
Sign in to view the complete answer paper.
Explain the history of design patterns.
Answer
Sign in to view the complete answer paper.
What to expert from design patterns?
Answer
Sign in to view the complete answer paper.