JNTU

JNTU B.Tech III DESIGN PATTERNS Previous Question Paper (February/March - 2022 - R16)

B.Tech | III | II | R16 | February/March - 2022

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

Answer any five questions. All questions carry equal marks.

Main

115 marks
a

What are some common causes of the redesign? Explain.

5 marks

Answer

Redesign is often necessary when software requirements evolve or initial designs prove inflexible. Common causes include:

  • Tight coupling: Dependencies between classes make it difficult to modify one part of the system without affecting others.
  • Lack of abstraction: Failing to anticipate future changes leads to code that is hard to extend or reuse.
  • Hard-coded dependencies: Directly instantiating objects prevents the use of different implementations or configurations.
  • Inability to subclass: Designing classes that are not intended to be extended limits the system's adaptability.
  • Platform or environment changes: Shifts in hardware, operating systems, or external libraries may require significant structural adjustments.
b

How to use a design pattern? Explain in detail.

5 marks

Answer

To effectively use a design pattern, follow these systematic steps:

  1. Identify the problem: Analyze the current design constraints, such as inflexibility, tight coupling, or redundant code, to determine if a pattern is applicable.
  2. Study the pattern: Understand the intent, structure, participants, and consequences of the pattern to ensure it addresses the specific problem.
  3. Examine the consequences: Evaluate the trade-offs, such as increased complexity or performance overhead, to ensure the pattern is the right fit.
  4. Adapt the design: Modify the existing code structure to incorporate the pattern's participants (classes and interfaces) while maintaining the original functionality.
  5. Implement and Refine: Write the code, ensuring that the pattern's collaborations are correctly realized, and refactor as necessary to improve clarity and maintainability.
c

Draw a diagram to describe design pattern relationships.

5 marks

Answer

Sign in to view the complete answer paper.

215 marks
a

Explain in detail about “supporting multiple window systems”.

8 marks

Answer

Sign in to view the complete answer paper.

b

Explain the Spelling Checking and Hyphenation design problem in detail.

7 marks

Answer

Sign in to view the complete answer paper.

315 marks
a

Explain in detail about bridge design pattern.

7 marks

Answer

Sign in to view the complete answer paper.

b

What are the consequences of the Builder pattern? Explain Builder pattern implementation.

8 marks

Answer

Sign in to view the complete answer paper.

415 marks
a

Write about motivation and consequences of Façade pattern.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write sample code of Composite pattern.

5 marks

Answer

Sign in to view the complete answer paper.

c

Discuss the participants of the Adapter pattern and explain the functions of each.

5 marks

Answer

Sign in to view the complete answer paper.

515 marks
a

Describe in detail about Iterator Pattern.

8 marks

Answer

Sign in to view the complete answer paper.

b

Discuss the structure and participants of the state design pattern.

7 marks

Answer

Sign in to view the complete answer paper.

615 marks
a

Write about the implementation issues of the memento pattern.

7 marks

Answer

Sign in to view the complete answer paper.

b

What is Command Pattern? Describe in detail about structure, participants and collaborations of the Command pattern.

8 marks

Answer

Sign in to view the complete answer paper.

715 marks
a

Discuss how to make the user interface more attractive in document editors.

8 marks

Answer

Sign in to view the complete answer paper.

b

Write about the intent, motivation, structure, and applicability of the Visitor pattern.

7 marks

Answer

Sign in to view the complete answer paper.

815 marks
a

Discuss in detail about proxy design pattern.

7 marks

Answer

Sign in to view the complete answer paper.

b

Explain the motivation of the Mediator pattern.

8 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the question paper of DESIGN PATTERNS from JNTU for B.Tech IT III II, February/March - 2022, 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...