JNTU

JNTU MCA 2018 DESIGN PATTERNS Previous Question Paper (June/July - 2018 - R13)

MCA | 2018 | V | R13 | June/July - 2018

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.

Part A

Answer all questions. Each question carries 4 marks.

1a

Discuss the significance of the design patterns.

4 marks

Answer

Design patterns are significant because they provide proven, reusable solutions to recurring problems in software architecture. Their primary importance lies in the following areas:

  • Standardized Vocabulary: They establish a common terminology for developers, facilitating clearer communication and reducing ambiguity during the design and development phases.
  • Proven Solutions: By capturing the experience of expert designers, patterns offer well-tested approaches that prevent common pitfalls and ensure robust, maintainable code structures.
  • Improved Maintainability: Patterns promote loose coupling and high cohesion, which makes systems easier to modify, extend, and refactor without introducing unintended side effects.
  • Accelerated Development: By providing ready-made design templates, they allow developers to focus on the specific business logic of an application rather than reinventing fundamental architectural mechanisms.
1b

Explain about the features and usage of builder pattern.

4 marks

Answer

The Builder Pattern is a creational design pattern used to construct complex objects step-by-step. It separates the construction of a complex object from its representation, allowing the same construction process to create different representations.

Key features include:

  • Encapsulation: It encapsulates the construction logic of a complex object, keeping the client code clean and focused on the final product.
  • Step-by-step construction: It provides a fluent interface to configure the object incrementally, which is particularly useful when an object has many optional parameters.
  • Immutability: It is often used to create immutable objects, as the object is only fully instantiated once the build process is complete.

Usage scenarios include:

  • When an object requires a complex initialization process involving multiple steps or conditional logic.
  • When a class has a large number of constructor parameters, avoiding the 'telescoping constructor' anti-pattern where many constructors are defined to handle different combinations of arguments.
  • When the creation process must allow different representations of the constructed object, such as building different types of documents (e.g., PDF or HTML) using the same builder interface.
1c

Write brief notes on proxy pattern.

4 marks

Answer

Sign in to view the complete answer paper.

1d

Compare Interator and Interpreter patterns.

4 marks

Answer

Sign in to view the complete answer paper.

1e

Write brief notes on strategy pattern.

4 marks

Answer

Sign in to view the complete answer paper.

Part B

2

How to use a design pattern? Explain with a suitable example.

8 marks

Answer

Sign in to view the complete answer paper.

OR
3

Explain the catalog of design patterns.

8 marks

Answer

Sign in to view the complete answer paper.

4

Discuss how design patterns can be used for designing a document editor.

8 marks

Answer

Sign in to view the complete answer paper.

OR
5

Explain about abstract factory and factory method patterns.

8 marks

Answer

Sign in to view the complete answer paper.

6

Write the source code, implementation and uses of decorator pattern with a suitable example.

8 marks

Answer

Sign in to view the complete answer paper.

OR
7

Explain the usage of adapter and bridge patterns with a suitable example.

8 marks

Answer

Sign in to view the complete answer paper.

8

Discuss the implementation of chain of responsibility pattern and explain its usage with suitable example.

8 marks

Answer

Sign in to view the complete answer paper.

OR
9

Discuss in detail about mediator and memento patterns.

8 marks

Answer

Sign in to view the complete answer paper.

10

What are the considerations and expectations from design patterns? Discuss about visitor pattern.

8 marks

Answer

Sign in to view the complete answer paper.

OR
11

Discuss about pattern community. Explain about template method pattern.

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 JNTU for MCA 2018 V, June/July - 2018, 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...