JNTU

JNTU B.Tech III DESIGN PATTERNS Previous Question Paper (February - 2023 - R16)

B.Tech | III | III-II | R16 | February - 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

What do you mean by design Pattern?

2 marks

Answer

A design pattern is a reusable, generalized solution to a commonly occurring problem within a given context in software design. It is not a finished piece of code that can be transformed directly into an application, but rather a template or description for how to solve a problem that can be used in many different situations.

1b

Write about framework.

3 marks

Answer

A framework is a reusable set of libraries or a semi-complete software architecture that provides a foundation for developing applications. Unlike a library, which is a collection of helper functions called by the user's code, a framework follows the Inversion of Control (IoC) principle, where the framework calls the user's code.

Key characteristics include:

  • Inversion of Control: The framework defines the program's flow and calls specific hooks or callbacks provided by the developer.
  • Extensibility: Developers can extend the framework by plugging in their own code to implement application-specific logic.
  • Non-modifiable code: The framework's internal structure is typically fixed and meant to be used as-is, promoting standardized development practices across projects.
1c

What is Decorator pattern?

2 marks

Answer

Sign in to view the complete answer paper.

1d

With suitable example, explain about compositor and composition.

3 marks

Answer

Sign in to view the complete answer paper.

1e

Draw the structure of Prototype pattern.

2 marks

Answer

Sign in to view the complete answer paper.

1f

What are benefits of Singleton pattern?

3 marks

Answer

Sign in to view the complete answer paper.

1g

What are related patterns of Façade pattern?

2 marks

Answer

Sign in to view the complete answer paper.

1h

List the consequences of Composite pattern.

3 marks

Answer

Sign in to view the complete answer paper.

1i

Write the intent of Observer pattern.

2 marks

Answer

Sign in to view the complete answer paper.

1j

Describe motivation of Strategy pattern.

3 marks

Answer

Sign in to view the complete answer paper.

Part B

210 marks
a

What are some common causes of redesign? Explain briefly.

5 marks

Answer

Sign in to view the complete answer paper.

b

How to use a design pattern? Discuss in brief.

5 marks

Answer

Sign in to view the complete answer paper.

OR
3

Discuss about design patterns in Smalltalk MVC in detail.

10 marks

Answer

Sign in to view the complete answer paper.

4

Explain in detail about supporting multiple window systems problem in Lexi’s design.

10 marks

Answer

Sign in to view the complete answer paper.

OR
5

Describe user operations problem in Lexi’s design.

10 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

Write and explain the sample code of Prototype pattern.

5 marks

Answer

Sign in to view the complete answer paper.

b

Describe motivation, applicability and structure of Builder pattern.

5 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

Discuss about implementation issues of Abstract Factory pattern.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain sample code and known issues of Factory Method pattern.

5 marks

Answer

Sign in to view the complete answer paper.

810 marks
a

Describe implementation issues of Composite pattern.

5 marks

Answer

Sign in to view the complete answer paper.

b

Discuss about the implementation of Proxy pattern.

5 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

Explain about the motivation and applicability of Flyweight pattern.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write about the sample code of Decorator pattern.

5 marks

Answer

Sign in to view the complete answer paper.

10

Explain the following:

10 marks
a

Sample code of Iterator

5 marks

Answer

Sign in to view the complete answer paper.

b

Template method pattern.

5 marks

Answer

Sign in to view the complete answer paper.

OR
11

Write about:

10 marks
a

Implementation of Chain of Responsibility pattern

5 marks

Answer

Sign in to view the complete answer paper.

b

Sample code of State pattern.

5 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 CSE III III-II, February - 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...