JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech IV DESIGN PATTERNS Previous Question Paper (May/June - 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
What is a Design Pattern? Explain.
Answer
A design pattern is a reusable solution to a commonly occurring problem in software design within a given context. It describes a proven approach to structuring classes and objects to solve a specific design challenge, serving as a template rather than a finished piece of code.
What are the three categories of design patterns?
Answer
The three categories of design patterns are:
- Creational Patterns: Deal with object creation mechanisms, trying to create objects in a manner suitable to the situation.
- Structural Patterns: Deal with object composition, creating relationships between classes or objects to form larger structures.
- Behavioral Patterns: Deal with communication between objects, defining how objects interact and distribute responsibilities.
List out some problems associated in designing a document editor.
Answer
Sign in to view the complete answer paper.
What is the benefit of Factory pattern?
Answer
Sign in to view the complete answer paper.
What is the intent of the Adapter pattern?
Answer
Sign in to view the complete answer paper.
Explain what is Composite pattern?
Answer
Sign in to view the complete answer paper.
What are the consequences of mediator pattern?
Answer
Sign in to view the complete answer paper.
What is the intent of the Observer pattern?
Answer
Sign in to view the complete answer paper.
Write the purpose of behavioral patterns.
Answer
Sign in to view the complete answer paper.
What are the five errors in using design patterns?
Answer
Sign in to view the complete answer paper.
PART B
What are three reasons for studying design patterns?
Answer
Sign in to view the complete answer paper.
What is the relationship between "consequence" and "forces" in a pattern?
Answer
Sign in to view the complete answer paper.
What are the key elements in the description of a design pattern?
Answer
Sign in to view the complete answer paper.
Explain how design patterns solve design problems.
Answer
Sign in to view the complete answer paper.
Write about the functionality of operations that are accessed indirectly through user operations.
Answer
Sign in to view the complete answer paper.
What are the implementation issues that are to be considered for builder pattern?
Answer
Sign in to view the complete answer paper.
What are the benefits of Singleton pattern? Discuss the implementation issues of singleton pattern in detail.
Answer
Sign in to view the complete answer paper.
What is the basic problem being solved by the Bridge pattern? Explain.
Answer
Sign in to view the complete answer paper.
The Façade pattern and the Adapter pattern may seem similar. What is the essential difference between the two? Explain.
Answer
Sign in to view the complete answer paper.
What are two classic examples of decorators? How does the Decorator pattern help to decompose the problem?
Answer
Sign in to view the complete answer paper.
Why are the Bridge and Decorator patterns more correctly classified as structural rather than behavioral patterns?
Answer
Sign in to view the complete answer paper.
Discuss about the structure and participants of Interpreter pattern.
Answer
Sign in to view the complete answer paper.
What are the implementation issues to be considered in Chain of Responsibility pattern? Explain.
Answer
Sign in to view the complete answer paper.
Explain in detail about the applicability and structure of Command pattern.
Answer
Sign in to view the complete answer paper.
Describe the implementation issues of Memento pattern.
Answer
Sign in to view the complete answer paper.
Write about the benefits and liabilities of the Visitor pattern.
Answer
Sign in to view the complete answer paper.
What are the difference between the Strategy pattern and the Template Method pattern?
Answer
Sign in to view the complete answer paper.
Describe in detail about the structure and participants of Strategy design pattern.
Answer
Sign in to view the complete answer paper.
Write about the implementation issues of State Behavioral pattern.
Answer
Sign in to view the complete answer paper.