Jawaharlal Nehru Technological University Hyderabad

Jawaharlal Nehru Technological University Hyderabad B.Tech III DESIGN PATTERNS Previous Question Paper (July - 2023 - R16)

B.Tech | III | II | R16 | July - 2023

Answer PaperPaper Code: 136BCMaximum Marks: 75Time: 3 Hours

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

1a

Explain how to select a design pattern.

2 marks

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.

1b

Write a brief note on the catalog of design patterns.

3 marks

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.

1c

What is Formatting?

2 marks

Answer

Sign in to view the complete answer paper.

1d

Write a short note on Document Structure.

3 marks

Answer

Sign in to view the complete answer paper.

1e

Write a short note on Abstract Factory.

2 marks

Answer

Sign in to view the complete answer paper.

1f

Write a brief note on Singleton.

3 marks

Answer

Sign in to view the complete answer paper.

1g

Write a short note on Façade.

2 marks

Answer

Sign in to view the complete answer paper.

1h

Briefly explain about Bridge.

3 marks

Answer

Sign in to view the complete answer paper.

1i

Discuss briefly about State.

2 marks

Answer

Sign in to view the complete answer paper.

1j

Write a short note on Chain of Responsibility.

3 marks

Answer

Sign in to view the complete answer paper.

Part B

2

What is a Design Pattern? What are elements of design pattern? Explain in detail about design patterns in Smalltalk MVC.

10 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

Discuss about describing Design Patterns.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a brief note on how to use a design pattern.

5 marks

Answer

Sign in to view the complete answer paper.

4

Write a detailed note on supporting Multiple Look-and-Feel standards.

10 marks

Answer

Sign in to view the complete answer paper.

OR
5

Discuss in detail about Supporting Multiple Window Systems.

10 marks

Answer

Sign in to view the complete answer paper.

6

Write a detailed note on Factory Method.

10 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

Write a short note on Prototype.

5 marks

Answer

Sign in to view the complete answer paper.

b

Elaborate discussion of Creational Patterns.

5 marks

Answer

Sign in to view the complete answer paper.

810 marks
a

Discuss in detail about Decorator.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a short note on Adapter.

5 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

Explain in detail about Proxy.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain briefly about Composite.

5 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a

Discuss in detail about Mediator.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a detailed note on Visitor.

5 marks

Answer

Sign in to view the complete answer paper.

OR
11

Explain in detail about the following Behavioral Patterns:

10 marks
a

Iterator

5 marks

Answer

Sign in to view the complete answer paper.

b

Strategy.

5 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the question paper of DESIGN PATTERNS from Jawaharlal Nehru Technological University Hyderabad for B.Tech CSE III II, July - 2023, R16.

For the solved question paper with answers, switch to the Answer Paper tab.

Other papers in DESIGN PATTERNS

Loading Question Papers

Fetching data from database...