INSTITUTE OF AERONAUTICAL ENGINEERING

Similar documents
UNIT I Introduction to Design Patterns

UNIT I Introduction to Design Patterns

design patterns FOR B.tech (jntu - hyderabad & kakinada) (IV/I - CSE AND IV/II - IT) CONTENTS 1.1 INTRODUCTION TO DESIGN PATTERNS TTERNS... TTERN?...

SDC Design patterns GoF

Design Patterns. An introduction

Produced by. Design Patterns. MSc in Communications Software. Eamonn de Leastar

SYLLABUS CHAPTER - 1 [SOFTWARE REUSE SUCCESS FACTORS] Reuse Driven Software Engineering is a Business

R07. IV B.Tech. II Semester Supplementary Examinations, July, 2011

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

Ingegneria del Software Corso di Laurea in Informatica per il Management. Design Patterns part 1

Design Patterns. Manuel Mastrofini. Systems Engineering and Web Services. University of Rome Tor Vergata June 2011

INSTITUTE OF AERONAUTICAL ENGINEERING

Trusted Components. Reuse, Contracts and Patterns. Prof. Dr. Bertrand Meyer Dr. Karine Arnout

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

Design Pattern What is a Design Pattern? Design Pattern Elements. Almas Ansari Page 1

Keywords: Abstract Factory, Singleton, Factory Method, Prototype, Builder, Composite, Flyweight, Decorator.

Design Pattern and Software Architecture: IV. Design Pattern

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

EPL 603 TOPICS IN SOFTWARE ENGINEERING. Lab 6: Design Patterns

INSTITUTE OF AERONAUTICAL ENGINEERING (AUTONOMOUS)

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

LECTURE NOTES ON DESIGN PATTERNS MCA III YEAR, V SEMESTER (JNTUA-R09)

Design Pattern. CMPSC 487 Lecture 10 Topics: Design Patterns: Elements of Reusable Object-Oriented Software (Gamma, et al.)

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

Object-Oriented Oriented Programming

Design Patterns. Observations. Electrical Engineering Patterns. Mechanical Engineering Patterns

Software Design Patterns. Background 1. Background 2. Jonathan I. Maletic, Ph.D.

Design Patterns. Gunnar Gotshalks A4-1

Design Patterns. Hausi A. Müller University of Victoria. Software Architecture Course Spring 2000

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

Design Patterns: Structural and Behavioural

Idioms and Design Patterns. Martin Skogevall IDE, Mälardalen University

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

INSTITUTE OF AERONAUTICAL ENGINEERING

Introduction to Software Engineering: Object Design I Reuse & Patterns

DESIGN PATTERN - INTERVIEW QUESTIONS

CS/CE 2336 Computer Science II

A Reconnaissance on Design Patterns

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

Modellistica Medica. Maria Grazia Pia, INFN Genova. Scuola di Specializzazione in Fisica Sanitaria Genova Anno Accademico

Design Patterns. Dr. Rania Khairy. Software Engineering and Development Tool

Lectures 24 and 25 Introduction to Architectural Styles and Design Patterns

Software Design COSC 4353/6353 D R. R A J S I N G H

Ingegneria del Software Corso di Laurea in Informatica per il Management. Design Patterns part 1

Using Design Patterns in Java Application Development

The Strategy Pattern Design Principle: Design Principle: Design Principle:

SWEN425 DESIGN PATTERNS

Tuesday, October 4. Announcements

Design Patterns. CSE870: Advanced Software Engineering (Design Patterns): Cheng

Design Patterns! Acknowledgements!

Socket attaches to a Ratchet. 2) Bridge Decouple an abstraction from its implementation so that the two can vary independently.

UNIT-I. Introduction, Architectural Styles, Shared Information Systems

Produced by. Design Patterns. MSc in Communications Software. Eamonn de Leastar

Design Patterns. SE3A04 Tutorial. Jason Jaskolka

St. MARTIN S ENGINEERING COLLEGE Dhulapally,Secunderabad DEPARTMENT OF INFORMATION TECHNOLOGY Academic year

OODP Session 4. Web Page: Visiting Hours: Tuesday 17:00 to 19:00

CSE870: Advanced Software Engineering (Cheng) 1

CSCI 253. Overview. The Elements of a Design Pattern. George Blankenship 1. Object Oriented Design: Iterator Pattern George Blankenship

Topics. Software Process. Agile. Requirements. Basic Design. Modular Design. Design Patterns. Testing. Quality. Refactoring.

Overview CS Kinds of Patterns. Design Pattern. Factory Pattern Rationale. Kinds of Factory Patterns

Department of Information Technology

Modellistica Medica. Maria Grazia Pia, INFN Genova. Scuola di Specializzazione in Fisica Sanitaria Genova Anno Accademico

TUTORIAL QUESTION BANK

Composite Pattern. IV.4 Structural Pattern

The GoF Design Patterns Reference

Design Patterns. Comp2110 Software Design. Department of Computer Science Australian National University. Second Semester

Information systems modelling UML and service description languages

CSCD01 Engineering Large Software Systems. Design Patterns. Joe Bettridge. Winter With thanks to Anya Tafliovich

Design Patterns Reid Holmes

C++ for System Developers with Design Pattern

Overview of Patterns: Introduction

Lecture 4: Observer Pattern, Event Library and Componentization

Slide 1. Design Patterns. Prof. Mirco Tribastone, Ph.D

Object Oriented Methods with UML. Introduction to Design Patterns- Lecture 8

DESIGN PATTERNS SURESH BABU M ASST PROFESSOR VJIT

MLR INSTITUTE OF TECHNOLOGY DUNDIGAL , HYDERABAD QUESTION BANK

INSTITUTE OF AERONAUTICAL ENGINEERING Autonomous Dundigal, Hyderabad

An Introduction to Patterns

Pro Objective-C Design Patterns for ios

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

ST.MARTIN'S ENGINEERING COLLEGE Dhulapally,Secunderabad-014

Creational Design Patterns

CSCI Object Oriented Design: Frameworks and Design Patterns George Blankenship. Frameworks and Design George Blankenship 1

Introduction and History

COSC 3351 Software Design. Design Patterns Structural Patterns (I)

Lecture 20: Design Patterns II

Object-oriented Software Design Patterns

A few important patterns and their connections

Plan. A few important patterns and their connections. Singleton. Singleton: class diagram. Singleton Factory method Facade

Design Patterns. GoF design patterns catalog

Object Oriented Paradigm

MVC. Model-View-Controller. Design Patterns. Certain programs reuse the same basic structure or set of ideas

UP Requirements. Software Design - Dr Eitan Hadar (c) Activities of greater emphasis in this book. UP Workflows. Business Modeling.

TDDB84: Lecture 6. Adapter, Bridge, Observer, Chain of Responsibility, Memento, Command. fredag 4 oktober 13

COSC 3351 Software Design. Design Patterns Behavioral Patterns (I)

CS251 Software Engineering Lectures 18: Intro to DP

GoF Design Pattern Categories

Development and Implementation of Workshop Management System Application to Explore Combing Multiple Design Patterns

Chapter 8, Design Patterns Visitor

Transcription:

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad -500 0 COMPUTER SCIENCE AND ENGINEERING TUTORIAL QUESTION BANK Course Name : DESIGN PATTERNS Course Code : A7050 Class : IV B. Tech I Semester Branch : Computer Science and Engineering Year : 016 017 Course Faculty : Mr. P Krishna Kishore, Assistant Professor, CSE Ms. Y Harika Devi, Assistant Professor, CSE Ms. A Soujanya, Assistant Professor, CSE OBJECTIVES To meet the challenge of ensuring excellence in engineering education, the issue of quality needs to be addressed, debated and taken forward in a systematic manner. Accreditation is the principal means of quality assurance in higher education. The major emphasis of accreditation process is to measure the outcomes of the program that is being accredited. In line with this, Faculty of Institute of Aeronautical Engineering, Hyderabad has taken a lead in incorporating philosophy of outcome based education in the process of problem solving and career development. So, all students of the institute should understand the depth and approach of course to be taught through this question bank, which will enhance learner s learning process. S No Question Blooms Course UNIT I INTRODUCTION:WHAT IS A DESIGN PATTERN 1. Define design pattern.. List the four elements of design patterns. 1. Distinguish a class and an object. Analyze 1. Give an example for class structure. 5. Sketch MVC architecture. 6. State the meaning of a solution. 1 7. Write the different sections of design patterns. Apply 6 8. Give the meaning of Intent. 9. List the four essential elements of design pattern 10. Define catalog of design patterns 11. Define the two categories on which design pattern depends 1. Explain how design patterns solve design problems 1 P a g e

1. Differentiate Inheritance and composite Analyze 1. Explain how to select a design pattern 15. List out the patterns used in design patterns 1 List the advantages of design patterns. Write short notes on use of design patterns. Discuss the MVC architecture in small talk. Explain how to describe design patterns. 1 List the different sections of design patterns. Explain about 1 them. 5 Name the patterns along with their intents that are included in Apply the catalog of design patterns. 6 State and explain the classification of design patterns. knowledge 7 List the various ways of organizing the design patterns. 8 Compare inheritance verses parameterized types. Evaluate 9 Explain the Design patterns relationships 10 Compare run-time and compile-time structure Analyze 11 List the common causes for redesigning of design patterns 1 Explain the Frameworks in detail 1 Write about the role of Toolkit in designing pattern 1 Explain how Delegation is used in design pattern 15 Explain the Catalogs of design patterns 1. A reputed software company is developing CAD software. It is required that the software should read licenses details, number of simultaneous users, permitted features etc., from a configuration file with a specific syntax. Design the software with suitable design pattern and explain with a class diagram. Briefly discuss the consequences and implementation issues.. Discuss the following aspects of behavioral patterns briefly: (i) Should communication be encapsulated or distributed. (ii) Decoupling senders and receivers.. Write about (i) documentation and learning aid. (ii) Alexander s Apply pattern languages.. Write the code for connecting two objects by applying suitable design pattern. 5. Explain about which optimization technique is used to hide the data from client. 6. Distinguish between inheritance and composition Analyze 7. What is the use of object diagram in modeling? Explain. 8. Explain the step - by - step approach for selecting the design pattern. 9. Explain the compile time structure of a object oriented program 10. List and explain the reusable object oriented design aspects of a pattern. UNIT II A CASE STUDY: DESIGNING A DOCUMENT EDITOR P a g e

1. Give the meaning of WYSIWYG.. Define Lexi.. Define an abstract class.. Write the meaning of a document. Apply 6 5. Differentiate compositor and composition. Analyze 6. Define formatting. 7. Define an Iterator class. 8. Define creational patterns. 9. List five types of creational patterns. 10. Define abstract factory design pattern. 1 11. Define builder pattern. 1 1. Give example of class diagram. 1. Define structure and applicability of abstract factory method. 1. Define the User operations 15. Define Prototype design pattern 1. Explain the process of recursive composition in building a document.. Explain in detail about the Glyph abstract class.. Discuss the goals and constraints in choosing an internal representation for a document.. Explain partial Glyph class hierarchy with a neat diagram. 5. Explain composition and compositor class relationship with a neat diagram. 6. Define formatting. How can the textual analysis problem of document editor be solved using design patterns? 7. Discuss the two embellishments that can be added to Lexi s user interface. Signify the role of decorator pattern in embellishment. 8. Explain about abstracting object creation in detail. 9. Memorize the useful techniques for implementing the abstract Evaluate factory pattern. 10. Give the sample code for abstract factory design pattern. 11. Explain the implementation of abstract factory. 1. Discuss about structure, applicability, participants of abstract factory method. 1. Discuss the implementation issues of builder design pattern. 1. Explain the structure of builder design pattern with class diagram and describe the collaboration with a sequence diagram. 15. Describe in detail about how Multiple Window Systems is supported 1. Explain how design patterns can solve the design problems of a document editor.. Discuss in detail about the representation of a document P a g e

structure. What is the importance of creational patterns in design of particular pattern?. Draw and explain the structure of abstract factory and also explain the various participants involved in it. 5. Explain the role of formatting in creation of a document editor 6. What are the liabilities and techniques for implementing the 5 abstract factory pattern? Explain them. 7. Draw and explain the interaction diagram that illustrates the cooperation between a builder and director. 8. What are the different criteria that select the right pattern for a given problem? 9. What is the relationship between different participants present in 5 prototype pattern? 10. Explain the importance of Look-and-Feel standards in design of a document UNIT III STRUCTURAL PATTERN 1. Define structural patterns.. List different types of structural patterns.. Discuss the role of participants.. Define bridge pattern. 5. Define Intent and Consequences of bridge pattern. 6. Define composite design pattern. 7. Sketch the structure of composite pattern. 8. Define decorator pattern. 9. List the use of decorator pattern. 10. Sketch the structure of decorator pattern. 1 11. List the benefits of decorator pattern. 1. Define Façade pattern. 1. Sketch the structure of Façade pattern. 1 1. Define composite pattern 15. Define Proxy pattern 1. Describe the intent, motivation and applications of composite knowledge 1 patterns.. Discuss the importance of implementation in composite 5 structural pattern.. Give the intent, applicability and structure of composite design 1 pattern and explain it.. Explain the structure of composite pattern with a class diagram. 5. Describe the consequences of composite design pattern. knowledge 6. Explain composite pattern with an example from drawing editor. 7. Explain the structure of decorator pattern with suitable P a g e

example. 8. Explain the motivation for decorator method with relevant patterns. 9. Explain the structure of decorator design pattern with a class diagram. 10. Explain the structure of façade design pattern with class diagram and consequences. 11. Explain the consequences of flyweight method with its structure. 1. Explain structure of flyweight pattern with suitable example. 1. Explain the structure of decorator design pattern with a class diagram. 1. Explain the structure of Proxy design pattern with a class diagram. 15. Explain the structure of Adapter design pattern with class diagram and consequences. 1. Explain the significance of proxy patterns with a suitable example.. Explain the applicability and collaborations of a adapter pattern. Explain how to decouple the abstraction from its implementation.. Write and explain the consequences, applicability and implementation issues of a flyweight patterns. 5. Explain the role of creational patterns in design of the patterns 6. Distinguish between abstract class and concrete class Analyze 7. Explain the role of interaction diagrams in design patterns. 8. What are the different issues to be considered while applying the decorator pattern? 9. What relation exists between the different participants involved in composite pattern? Explain it in detail. 10. Draw and explain the multiple inheritance interface that illustrates relation between different participants in the adapter pattern. UNIT IV BEHAVIORAL PATTERNS 1. Define behavioral pattern.. Define behavioral class pattern.. Define behavioral object pattern.. Define command pattern. 5. Sketch sequence diagram for any example pattern. 6. Sketch the structure of server in election commission. 7. Define interpreter pattern. 8. Write the intentions of mediator pattern. Apply 6 5 P a g e

9. Define mediator pattern. 10. Sketch the structure of mediator pattern. 1 11. Write about Chain of Responsibility 1. Define Memento pattern 1. Define Observer pattern 1. Define Iterator pattern 15. Sketch the structure and applicability of Observer pattern 1. Explain the uses of command design pattern and its structure with class diagram. Also explain the implementation issues.. Explain the implementation and consequences of command pattern.. Explain the implementation issues of command pattern with sample code.. Explain the collaborations and consequences of command method. 5. Explain the interpreter design pattern and discuss the consequences and implementation issues. 6. Discuss the implementation issues of Iterator. 7. Explain the structure of mediator design pattern with a class diagram and discuss the collaboration with a sequence diagram. 8. Discuss about intent, motivation, structure, applicability and consequences of a mediator behavioral pattern. 9. Explain the participants, collaborations, implementation and sample code of the mediator pattern. 10. Explain the known uses of memento method. 11. Explain the uses of Chain of Responsibility design pattern and its structure with class diagram. Also explain the implementation issues. 1. Explain the Observer design pattern and discuss the consequences and implementation issues. 1. Discuss the consequences and implementation issues of memento design pattern. 1. Explain the uses of Iterator design pattern and its structure with class diagram 15. Explain the known uses of Observer method 1. List and explain the various constructors and functions present in iterator and list-iterator. What are the issues to be considered when designing the chain of responsibility pattern?. List and explain the variants and alternatives of iterator pattern.. What is the motivation for mediator pattern? Explain 5. What is an iterator? Explain the various operations that an 6 P a g e

iterator supports. Explain them in detail. 6. List and explain the variants and alternatives of iterator pattern. 7. Give brief description about the command history. 8. List and explain the various participants involved in design of the interpreter 9. Explain Double Dispatch and Single Dispatch for behavioral design pattern 10. What are the two models used in behavioral pattern? UNIT V BEHAVIORAL PATTERNS-II 1. Write the intent of memento pattern. Apply. Sketch the structure of memento pattern.. Define the phrase objects for states.. Define state pattern. 5. Sketch the structure of state pattern. 6. List the situations where state pattern can be used. 7. Define table driven approach. 8. Write the sample code for Strategy pattern 6 9. Write about the collaborations of Visitor pattern 5 10. Explain about the consequences of Template pattern 11. Write about the Pattern community 1. Explain about the patterns in software 5 1. Write about the lifecycle of Object Oriented Software 1. Explain how objects are used as arguments 15. Define double-dispatch and single-dispatch 1. Explain the implementation issues of Strategy design pattern.. Explain the implementation issues of observer design pattern.. Explain how design patterns affect the way object-oriented software is designed.. Discuss the several ways the design pattern affect the way object-oriented software is designed. 5. Discuss design patterns as a supplement to the existing methods. 6. Discuss the history of design patterns. 7. Differentiate Alexander s patterns and Design patterns. Analyze 8. Write about the two ways of grouping the patterns according to Apply Christopher Alexander. 5 9. Compare and contrast between Abstract Class vs Concrete Analyze Class 5 10. Discuss about Alexander s pattern languages 11. Discuss a briefly history of design patterns 1. Discuss the consequences and implementation issues of Visitor design pattern. 7 P a g e

1. Discuss about intent, motivation, structure, applicability and consequences of a Template Method behavioral pattern. 1. Explain the State design pattern and discuss the consequences and implementation issues. 15. Write the sample code for Template method and Visitor patterns 5 1. Discuss with suitable scenarios, how state, strategy and visitor patterns can solve design problems.. What to except from design pattern 5. Explain the importance of object diagram in modeling, With the help of a suitable example. What is a template? In which way a design pattern will be described. Explain in detail 5. Explain the common causes for redesign a design pattern 6. Explain the role of behavioral patterns in design of the patterns. 7. What is the key idea of state pattern? Explain it in detail. 8. Explain Documentation, Learning Aid and An Adjunct to existing systems in detail. 9. Should Communication encapsulated or distributed Explain. 10. Explain Decoupling senders and receivers. Prepared by: Mr. P Krishna Kishore, Assistant Professor, CSE Ms. Y Harika Devi, Assistant Professor, CSE Ms. A Soujanya, Assistant Professor, CSE HOD, COMPUTER SCIENCE AND ENGINEERING 8 P a g e