JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

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

MCA | V | V | R13 | August - 2017

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

Note: 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. Each question carries 8 marks.

PART - A

120 marks
a

What is meant by a design pattern? Discuss the significance.

4 marks

Answer

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

The significance of design patterns lies in their ability to provide a common vocabulary for developers, speed up the development process by leveraging proven solutions, and improve code maintainability and scalability by promoting best practices such as loose coupling and high cohesion.

b

Write brief notes on abstract factory pattern.

4 marks

Answer

The Abstract Factory Pattern provides an interface for creating families of related or dependent objects without specifying their concrete classes. It is a creational pattern that ensures the client code remains decoupled from the specific implementations of the objects it uses.

Key components include the Abstract Factory (declares creation methods), Concrete Factories (implement creation methods for specific families), Abstract Products (define interfaces for product types), and Concrete Products (implement the product interfaces). This pattern is particularly useful when a system must be independent of how its products are created, composed, and represented.

c

Discuss about implementation of composite pattern.

4 marks

Answer

Sign in to view the complete answer paper.

d

Discuss the usage of chain of responsibility pattern.

4 marks

Answer

Sign in to view the complete answer paper.

e

Explain the uses of visitor pattern.

4 marks

Answer

Sign in to view the complete answer paper.

PART - B

2

Describe how the design patterns solve design problems.

8 marks

Answer

Sign in to view the complete answer paper.

OR
3

Discuss about design patterns in small talk MVC.

8 marks

Answer

Sign in to view the complete answer paper.

4

Compare the factory method and prototype design patterns.

8 marks

Answer

Sign in to view the complete answer paper.

OR
5

Explain the structure, implementation and source code for the singleton patterns.

8 marks

Answer

Sign in to view the complete answer paper.

6

Explain the usage of façade pattern with a suitable example.

8 marks

Answer

Sign in to view the complete answer paper.

OR
7

Explain the structure and implementation of decorator and proxy patterns.

8 marks

Answer

Sign in to view the complete answer paper.

8

Compare the usage of Interpreter and Iterator patterns.

8 marks

Answer

Sign in to view the complete answer paper.

OR
9

Write the source code for mediator pattern. And explain its usage with a suitable example.

8 marks

Answer

Sign in to view the complete answer paper.

10

Write the implementation and source code for state and strategy patterns.

8 marks

Answer

Sign in to view the complete answer paper.

OR
11

What we can expect from design patterns? Discuss about the history of design patterns.

8 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, August - 2017, 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...