JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD MCA V DESIGN PATTERNS Previous Question Paper (January - 2018 - R13)

MCA | V | V | R13 | January - 2018

Answer PaperPaper Code: 815BFMaximum Marks: 60Time: 3 Hours

This question paper contains two parts A and B. Part A is compulsory which carries 20 marks. Answer all questions in Part A. Part B consists of 5 Units. Answer any one full question from each unit.

Part A

Answer all questions. Each question carries 4 marks.

1a

The Gang of Four suggests a few strategies for creating good object-oriented designs. What are they?

4 marks

Answer

The Gang of Four (GoF) proposes two fundamental principles for creating robust object-oriented designs that prioritize flexibility and maintainability:

  1. Program to an interface, not an implementation: This strategy encourages decoupling clients from specific classes by relying on abstract interfaces or base classes. By interacting with objects through their interfaces, the system remains independent of the concrete classes that implement them, allowing for easier substitution and extension.
  2. Favor object composition over class inheritance: This principle suggests building complex functionality by assembling objects (composition) rather than extending existing classes (inheritance). Composition provides greater runtime flexibility, as the behavior of an object can be changed dynamically by replacing its components, whereas inheritance creates rigid, compile-time relationships that are harder to modify.
1b

What is the intent of Abstract Factory pattern? Explain.

4 marks

Answer

The Abstract Factory pattern provides an interface for creating families of related or dependent objects without specifying their concrete classes. Its primary intent is to ensure that a system remains independent of how its products are created, composed, and represented.

Key aspects of the pattern include:

  • Encapsulation of Creation: It isolates the concrete classes used by the client, as the client interacts only with the abstract interfaces of the products.
  • Consistency: It ensures that a client uses objects from only one family at a time by grouping related products together within a single factory implementation.
  • Interchangeability: Because the client code relies on abstract interfaces, concrete factory implementations can be swapped easily, allowing the entire family of products to be changed without modifying the client logic.
1c

What is Composite pattern? Give an example.

4 marks

Answer

Sign in to view the complete answer paper.

1d

Under what conditions should an Observer pattern not be used? Explain.

4 marks

Answer

Sign in to view the complete answer paper.

1e

Explain the brief history of Design patterns.

4 marks

Answer

Sign in to view the complete answer paper.

Part B

Answer any one full question from each unit. Each question carries 8 marks.

2

What is Design pattern? Explain the step by step approach to apply a design pattern proficiently? Also write the structure of the design pattern template.

8 marks

Answer

Sign in to view the complete answer paper.

OR
3

List out different design patterns that are commonly used. Write the catalog of design patterns and its organization. What are the criteria used to select them? Explain.

8 marks

Answer

Sign in to view the complete answer paper.

4

What is creational pattern? Discuss about Singleton and Prototype patterns in detail.

8 marks

Answer

Sign in to view the complete answer paper.

OR
58 marks
a

Explain the functionality of operations that are accessed indirectly through user operations.

4 marks

Answer

Sign in to view the complete answer paper.

b

Discuss about the implementation issues of Builder pattern.

4 marks

Answer

Sign in to view the complete answer paper.

68 marks
a

Differentiate between adapter and bridge design pattern.

4 marks

Answer

Sign in to view the complete answer paper.

b

What are the known uses of adapter structural pattern? Explain.

4 marks

Answer

Sign in to view the complete answer paper.

OR
78 marks
a

Write about the language features that are exploited by Proxy pattern.

4 marks

Answer

Sign in to view the complete answer paper.

b

What are participants of flyweight pattern? Discuss about the consequences of flyweight pattern.

4 marks

Answer

Sign in to view the complete answer paper.

8

List out various behavioral patterns. Explain in detail about Chain of Responsibility and command behavioral patterns.

8 marks

Answer

Sign in to view the complete answer paper.

OR
98 marks
a

What are the consequences of Mediator pattern? Explain.

4 marks

Answer

Sign in to view the complete answer paper.

b

What are the issues to be considered while applying Memento pattern?

4 marks

Answer

Sign in to view the complete answer paper.

10

Write in detail about Strategy and Visitor behavioral Patterns.

8 marks

Answer

Sign in to view the complete answer paper.

OR
118 marks
a

Explain the consequences of Template Method patterns.

4 marks

Answer

Sign in to view the complete answer paper.

b

Write the implementation issues of State behavioral pattern.

4 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 MCA V V, January - 2018, R13.

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...