Jawaharlal Nehru Technological University Hyderabad
Jawaharlal Nehru Technological University Hyderabad B.Tech III DESIGN PATTERNS Previous Question Paper (July - 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
Explain how to select a design pattern.
Answer
To select a design pattern, first identify the specific design problem or recurring challenge in the system architecture. Review the Intent section of candidate patterns to see if they address the identified problem, and compare the Consequences, trade-offs, and design constraints of each pattern to ensure it aligns with the system requirements. Finally, consider the Applicability and Related Patterns sections to determine if the pattern is suitable for the current context and how it might integrate with existing design structures.
Write a brief note on the catalog of design patterns.
Answer
A catalog of design patterns is a structured collection of proven solutions to recurring problems in software design. It serves as a standardized vocabulary for developers to communicate complex architectural decisions efficiently. The most influential catalog, introduced by the Gang of Four (GoF), categorizes 23 patterns into three primary groups based on their purpose:
- Creational Patterns: Deal with object creation mechanisms, aiming to create objects in a manner suitable to the situation (e.g., Singleton, Factory Method).
- Structural Patterns: Focus on object composition, defining how classes and objects are combined to form larger structures (e.g., Adapter, Composite).
- Behavioral Patterns: Concerned with algorithms and the assignment of responsibilities between objects, focusing on communication patterns (e.g., Observer, Strategy).
Each entry in a catalog typically includes the pattern's name, the problem it solves, the context in which it applies, the solution structure, and the consequences of its implementation.
What is Formatting?
Answer
Sign in to view the complete answer paper.
Write a short note on Document Structure.
Answer
Sign in to view the complete answer paper.
Write a short note on Abstract Factory.
Answer
Sign in to view the complete answer paper.
Write a brief note on Singleton.
Answer
Sign in to view the complete answer paper.
Write a short note on Façade.
Answer
Sign in to view the complete answer paper.
Briefly explain about Bridge.
Answer
Sign in to view the complete answer paper.
Discuss briefly about State.
Answer
Sign in to view the complete answer paper.
Write a short note on Chain of Responsibility.
Answer
Sign in to view the complete answer paper.
Part B
What is a Design Pattern? What are elements of design pattern? Explain in detail about design patterns in Smalltalk MVC.
Answer
Sign in to view the complete answer paper.
Discuss about describing Design Patterns.
Answer
Sign in to view the complete answer paper.
Write a brief note on how to use a design pattern.
Answer
Sign in to view the complete answer paper.
Write a detailed note on supporting Multiple Look-and-Feel standards.
Answer
Sign in to view the complete answer paper.
Discuss in detail about Supporting Multiple Window Systems.
Answer
Sign in to view the complete answer paper.
Write a detailed note on Factory Method.
Answer
Sign in to view the complete answer paper.
Write a short note on Prototype.
Answer
Sign in to view the complete answer paper.
Elaborate discussion of Creational Patterns.
Answer
Sign in to view the complete answer paper.
Discuss in detail about Decorator.
Answer
Sign in to view the complete answer paper.
Write a short note on Adapter.
Answer
Sign in to view the complete answer paper.
Explain in detail about Proxy.
Answer
Sign in to view the complete answer paper.
Explain briefly about Composite.
Answer
Sign in to view the complete answer paper.
Discuss in detail about Mediator.
Answer
Sign in to view the complete answer paper.
Write a detailed note on Visitor.
Answer
Sign in to view the complete answer paper.
Explain in detail about the following Behavioral Patterns:
Iterator
Answer
Sign in to view the complete answer paper.
Strategy.
Answer
Sign in to view the complete answer paper.