JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD MCA 2019 DESIGN PATTERNS Previous Question Paper (April/May - 2019 - R13)

MCA | 2019 | V | R13 | April/May - 2019

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 and may have a, b, c as sub questions.

PART - A

Answer all questions. 5 x 4 Marks = 20

120 marks
a

How to select a design pattern? Explain.

4 marks

Answer

Selecting a design pattern involves matching the specific design problem to the intent of the pattern. First, scan the Intent sections of patterns to identify candidates that address the problem. Compare the Applicability sections to see if the constraints and consequences align with the current requirements. Evaluate the Trade-offs and Consequences to ensure the pattern's impact on system flexibility, performance, and complexity is acceptable for the specific context.

b

What are design problems in Lexi’s design? Explain.

4 marks

Answer

Lexi, a document editor, faced several design challenges: 1) Document Structure, requiring a recursive composition to represent complex nested elements; 2) Formatting, which needed to be independent of the physical document structure; 3) Embellishing the User Interface, such as adding borders or scrollbars without modifying core classes; 4) Supporting Multiple Look-and-Feel Standards, requiring abstraction of UI widgets; and 5) Multiple Window Systems, necessitating a portable windowing interface.

c

What are known uses of Proxy and Decorator?

4 marks

Answer

Sign in to view the complete answer paper.

d

Describe implementation of Cursor.

4 marks

Answer

Sign in to view the complete answer paper.

e

Write brief discussion on behavioral patterns.

4 marks

Answer

Sign in to view the complete answer paper.

PART - B

5 x 8 Marks = 40

28 marks
a

Explain the following phrases: i) Programming to an interface not an implementation ii) Favor object composition over class inheritance.

4 marks

Answer

Sign in to view the complete answer paper.

b

How design patterns solve design problems?

4 marks

Answer

Sign in to view the complete answer paper.

OR
38 marks
a

Explain the catalog of design patterns.

4 marks

Answer

Sign in to view the complete answer paper.

b

Discuss about design patterns in Smalltalk MVC with example.

4 marks

Answer

Sign in to view the complete answer paper.

48 marks
a

Describe structures of Builder and Prototype.

4 marks

Answer

Sign in to view the complete answer paper.

b

Discuss about user operations in Lexi’s design.

4 marks

Answer

Sign in to view the complete answer paper.

OR
58 marks
a

Explain motivations of Abstract Factory and Factory Method.

4 marks

Answer

Sign in to view the complete answer paper.

b

Discuss about supporting multiple window systems.

4 marks

Answer

Sign in to view the complete answer paper.

68 marks
a

Describe motivations of Proxy and Decorator.

4 marks

Answer

Sign in to view the complete answer paper.

b

Write and explain the sample code of Flyweight.

4 marks

Answer

Sign in to view the complete answer paper.

OR
78 marks
a

What are advantages of Bridge pattern? Explain about its implementation.

4 marks

Answer

Sign in to view the complete answer paper.

b

Briefly explain about Facade pattern.

4 marks

Answer

Sign in to view the complete answer paper.

88 marks
a

Discuss about implementation of Iterator.

4 marks

Answer

Sign in to view the complete answer paper.

b

Explain in detail about Command pattern.

4 marks

Answer

Sign in to view the complete answer paper.

OR
98 marks
a

Describe structures of Memento and Mediator.

4 marks

Answer

Sign in to view the complete answer paper.

b

Write and explain about sample code of Interpreter.

4 marks

Answer

Sign in to view the complete answer paper.

108 marks
a

Explain about motivation and implementation of Strategy.

4 marks

Answer

Sign in to view the complete answer paper.

b

Discuss in detail about Template Method.

4 marks

Answer

Sign in to view the complete answer paper.

OR
11

Write history of design patterns. What to expect from design patterns? Explain.

8 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the solved question paper with answers of DESIGN PATTERNS from JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD for MCA 2019 V, April/May - 2019, R13.

For the question paper without answers, switch to the Question Paper tab.

Other papers in DESIGN PATTERNS

Loading Question Papers

Fetching data from database...