15
VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur 603 203 DEPARTMENT OF INFORMATION TECHNOLOGY QUESTION BANK V SEMESTER CS6502-Object Oriented Analysis and Design Regulation 2013 Academic Year 2017-2018 (Odd Semester) Prepared by Ms.R.Lakshmi, Assistant Professor (Sr.G)/IT Mr.E.Prabhakarraj, Assistant Professor (O.G)/IT

VALLIAMMAI ENGINEERING COLLEGE Semester/CS6502-Object Oriented...... Design and explain the activity diagram for an ... the activity diagram for the following scenario,Booking a ticket

Embed Size (px)

Citation preview

Page 1: VALLIAMMAI ENGINEERING COLLEGE Semester/CS6502-Object Oriented...... Design and explain the activity diagram for an ... the activity diagram for the following scenario,Booking a ticket

VALLIAMMAI ENGINEERING COLLEGE

SRM Nagar, Kattankulathur – 603 203

DEPARTMENT OF INFORMATION TECHNOLOGY

QUESTION BANK

V SEMESTER

CS6502-Object Oriented Analysis and Design

Regulation – 2013

Academic Year 2017-2018 (Odd Semester)

Prepared by

Ms.R.Lakshmi, Assistant Professor (Sr.G)/IT

Mr.E.Prabhakarraj, Assistant Professor (O.G)/IT

Page 2: VALLIAMMAI ENGINEERING COLLEGE Semester/CS6502-Object Oriented...... Design and explain the activity diagram for an ... the activity diagram for the following scenario,Booking a ticket

VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur – 603 203.

DEPARTMENT OF INFORMATION TECHNOLOGY

QUESTION BANK SUBJECT : CS6502-Object Oriented Analysis & Design

SEM / YEAR: V Sem/ III Year

UNIT I UML DIAGRAMS

Introduction to OOAD – Unified Process - UML diagrams – Use Case – Class Diagrams–

Interaction Diagrams – State Diagrams – Activity Diagrams – Package, component and

Deployment Diagrams

PART-A

Q.No. Question Level Competence

1 What is Object Oriented analysis & Design? BTL1 Remembering

2 List the 4 phases in UP. BTL1 Remembering

3 Compose your views on Inception step. BTL6 Creating

4 Define UML.What are the primary goals in the design

of UML?

BTL1 Remembering

5 Illustrate the 3 ways and perspective to apply UML. BTL1 Remembering

6 Define UseCase. BTL4 Analysing

7 Point out the relationship used in Usecase. BTL3 Applying

8 Examine the steps for finding UseCase. BTL3 Applying

9 Classify the 3 kinds of actors. BTL4 Analysing

Page 3: VALLIAMMAI ENGINEERING COLLEGE Semester/CS6502-Object Oriented...... Design and explain the activity diagram for an ... the activity diagram for the following scenario,Booking a ticket

10 What tests can help find useful UseCase? BTL1 Remembering

11 Conclude on the need for modeling.

BTL5 Evaluating

12 Define Design Class diagram. BTL1 Remembering

13 Differentiate between method and message in object. BTL2 Understanding

14 Formulate the purpose of Interaction Diagram.

BTL6 Creating

15 Analyze the need of State Diagram. BTL4 Analysing

16 Compare and Contrast state independent and state

dependent object.

BTL2 Understanding

17 Interpret the meaning of event, state and Transition. BTL2 Understanding

18 Give the use of Package Diagram. BTL2 Understanding

19 Compare and Contrast Component and Deployment

diagram.

BTL5 Evaluating

20 Illustrate the means of representing a node in a

Deployment Diagram.

BTL3 Applying

PART-B

Q.No. Question Level Competence

1 Discuss about UML.(13) BTL2 Understanding

2

Briefly explain about the different phases of Unified Process

with a neat diagram.(13)

BTL4 Analysing

3 Explain with an example, how UseCase Modeling is used to

describe the functional requirements. Identify the actors,

scenario and UseCase for the example.(13)

BTL4 Analysing

4

(i)Describe the basic activities in OOA and explain how Use

Case Modeling is useful in analysis. (8)

(ii)Explain about NextGen POS system. (5)

BTL1

BTL4

Remembering,

Analysing

5 Write a problem statement for Library Management System.

Design the UML Use Case diagram, Activity diagram ,Class

diagram, Sequence diagram, State chart diagram,

BTL6 Creating

Page 4: VALLIAMMAI ENGINEERING COLLEGE Semester/CS6502-Object Oriented...... Design and explain the activity diagram for an ... the activity diagram for the following scenario,Booking a ticket

Package diagram, Component and Deployment diagram.(13)

6

List the various UML diagram and explain about the UML

diagrams in detail with neat diagrams.(13)

BTL1 Remembering

7 Describe the UML notation for Class diagram with an

example. Explain the concept of link, association and

inheritance.(13)

BTL1 Remembering

8 Summarize with an example,how Interaction Diagram are

used to model the dynamic aspects of a system.(13)

BTL2 Understanding

9 Illustrate about UML state machine diagram and

Modeling.(13)

BTL3 Applying

10

Consider the Hospital Management System application with

the following requirement

(i)System should handle the in- patient and out-patient

information through receptionist.

(ii)Doctors are allowed to view the patient history and give

their prescription.

(iii)There should be a Information system to provide the

required information

Give the state chart,Component and Deployment

diagram.(5+4+4)

BTL2 Understanding

11

(i)What is UML activity diagram?Using an example point

out the features of basic UML activity diagram notation.(8)

(ii) What are the constructs (notations) used in an activity

diagram? (5)

BTL4

BTL1

Analysing

Remembering,

12

For an ATM system ,every user has to be validated with a

PIN number to make a transaction. A customer is allowed 3

times to validate card giving the correct PIN number.Show

the Use Case representation for the same and summarize

the "Validate User" Use Case using sequence

diagram.Asses and represent the activity diagram for the

same.(5+5+3)

BTL5 Evaluating

13 Describe UML Package diagram with example.(13) BTL1 Remembering

14 Illustrate about UML Deployment and Component diagram

with an example.(13)

BTL3 Applying

PART-C

Q.No. Question Level Competence

1 Apply and explain interactive modeling for payroll

system in UML.(15)

BTL5 Evaluating

Page 5: VALLIAMMAI ENGINEERING COLLEGE Semester/CS6502-Object Oriented...... Design and explain the activity diagram for an ... the activity diagram for the following scenario,Booking a ticket

2

(i)Design and explain the activity diagram for an Online

Purchase System. (8)

(ii)What is the Unified processes?Is the UP iterative and

incremental .Explain.(7)

BTL6

BTL5

Creating

Evaluating

3 Explain about Use Case Model for a case study of your

choice.(15)

BTL5 Evaluating

4 (i) Represent the activity diagram for the following

scenario,Booking a ticket on Indian railways e-ticket

system (IRCTC). (8)

(ii)Design the use case diagram for the following

specification:

A coffee Vending machine dispenses coffee to customers

.Customers orders coffee by selecting a recipe from a set

of recipe.Customer pay for the coffee using coin.Change is

given back.The 'Service staff ' loads ingredients (coffee

powder,milk,sugar,water,chocolate)into the coffee

machine.The service staff can also add a recipe by

indicating the name of the coffee,the units of coffee

powdermilk,sugar,water,and chocolate to be added as well

as the cost of the coffee. (7)

BTL6 Creating

UNIT II DESIGN PATTERNS

GRASP: Designing objects with responsibilities – Creator – Information expert – Low

Coupling – High Cohesion – Controller - Design Patterns – creational - factory method -

structural – Bridge – Adapter - behavioral – Strategy – observer

PART-A

Q.No. Question Level Competence

1 What is GRASP? BTL1 Remembering

2 Define responsibility. What are the various types of

responsibilities?

BTL1 Remembering

3 Define pattern & modular design. BTL1 Remembering

4 When to use pattern? BTL1 Remembering

5 When a pattern is said to be a good pattern? BTL1 Remembering

6 Define creator. BTL1 Remembering

Page 6: VALLIAMMAI ENGINEERING COLLEGE Semester/CS6502-Object Oriented...... Design and explain the activity diagram for an ... the activity diagram for the following scenario,Booking a ticket

7 Interpret the need of Information Expert. BTL2 Understanding

8 Differentiate coupling and cohesion. BTL2 Understanding

9 Express the benefits of low coupling. BTL2 Understanding

10 Analyze the meaning of coupling. BTL4 Analysing

11 “A system must be loosely coupled and highly

cohesive”-Justify.

BTL5 Evaluating

12 Compose your views on High Cohesion. BTL6 Creating

13 Examine the benefits of controller. BTL3 Applying

14 Give a note on bloated controller. BTL2 Understanding

15 Conclude on the usage of Design pattern and also

define it.

BTL5 Evaluating

16 Analyze the situation to use Factory method pattern. BTL4 Analysing

17 Demonstrate when to use the adapter pattern. BTL3 Applying

18 Illustrate the benefits of bridge pattern. BTL3 Applying

19 Generalize your view on Publish-Subscribe interaction. BTL6 Creating

20 Point out the benefits of strategy pattern. BTL4 Analysing

PART-B

Q.No. Question Level Competence

1 Explain GRASP:Designing objects with

responsibilities.(13)

BTL4 Analysing

2 What is GRASP? Describe the design patterns and

principles used in it.(13)

BTL1 Remembering

3 Examine the following GRASP patterns:

Creator,Information Expert, Low coupling, High

cohesion,Controller.

(2+2+3+3+3)

BTL1 Remembering

4 Explain about Creator and information Expert with

example.(13)

BTL4 Analysing

Page 7: VALLIAMMAI ENGINEERING COLLEGE Semester/CS6502-Object Oriented...... Design and explain the activity diagram for an ... the activity diagram for the following scenario,Booking a ticket

5

(i)Compare cohesion and coupling with suitable

example. (8)

(ii)Summarize and state the role and patterns while

developing system design. (5)

BTL5 Evaluating

6 Generalize your idea on Controller pattern with

example and also write short note on bloated

controller.(13)

BTL6 Creating

7 Discuss about Low Coupling and High Cohesion with

example.(13)

BTL2 Understanding

8 Give an account on Factory method.(13) BTL2 Understanding

9

(i)Differentiate Adapter and Bridge pattern .(8)

(ii)Analyze how will you design the behavioral

pattern.(5)

BTL4 Analysing

10 Describe about Observer pattern.(13) BTL2 Understanding

11 Describe about Strategy pattern.(13) BTL1 Remembering

12 Examine in detail about Behavioral pattern.(13) BTL1 Remembering

13 Demonstrate in detail about the various categories of

Design pattern.(13)

BTL3 Applying

14 Illustrate your views about Structural patterns.(13) BTL3 Applying

PART-C

Q.No. Question Level Competence

1 Explain the design principles in object modelling.Explain

in detail the GRASP methods for designing objects with

examples.(15)

BTL5 Evaluating

2

Apply and analyse GRASP Pattern for the Monopoly

game and discuss about the problem and solution for it.

(15)

BTL4 Analysing

3 Explain in detail about the Factory Pattern and mention

the limitations and applications of Factory Pattern.(15)

BTL5 Evaluating

4 Summarize the Observer pattern for a problem of your

choice and discuss about the solution with neat

diagram.(15)

BTL5 Evaluating

Page 8: VALLIAMMAI ENGINEERING COLLEGE Semester/CS6502-Object Oriented...... Design and explain the activity diagram for an ... the activity diagram for the following scenario,Booking a ticket

UNIT III CASE STUDY

Case study – the Next Gen POS system, Inception -Use case Modeling - Relating Use

cases – include, extend and generalization - Elaboration - Domain Models - Finding

conceptual classes and description classes – Associations – Attributes – Domain model

refinement – Finding conceptual class Hierarchies - Aggregation and Composition

PART-A

Q.No. Question Level Competence

1 What is a POS system? List the components of POS

system.

BTL1 Remembering

2 What is the purpose of extends and include relationship

in use case diagram?

BTL1 Remembering

3 List the 3 common Use case format. BTL1 Remembering

4 Distinguish abstract use case and concrete Use Case. BTL4 Analysing

5 Express the meaning of Elaboration. BTL2 Understanding

6 Point Out the tasks performed in Elaboration. BTL4 Analysing

7 Define Domain Model. BTL1 Remembering

8 Demonstrate how to create a Domain model. BTL3 Applying

9 Express why we call a domain model a “Visual

Dictionary".

BTL2 Understanding

10 Define Conceptual class. BTL1 Remembering

11 Rank the 3 strategies to find conceptual class. BTL5 Evaluating

12 Illustrate the usage of Description class. BTL3 Applying

13 Generalize the purpose of association relationship. BTL6 Creating

14 Show with an example how to name an association in

UML with its guidelines.

BTL3 Applying

15 When to define new data type classes? BTL1 Remembering

16 Interpret the meaning of Generalization. BTL2 Understanding

17 Give the relationship of a conceptual super class to a

sub class.

BTL2 Understanding

Page 9: VALLIAMMAI ENGINEERING COLLEGE Semester/CS6502-Object Oriented...... Design and explain the activity diagram for an ... the activity diagram for the following scenario,Booking a ticket

18 Formulate the guideline to partition a class into

subclass.

BTL6 Creating

19 Compare qualified association and reflexive

association.

BTL5 Evaluating

20 Differentiate aggregation and composition. BTL4 Analysing

PART-B

Q.No. Question Level Competence

1 What is a POS system? Briefly explain about Inception

Phase.(13)

BTL4 Analysing

2 Prepare a suitable example showing the various

relationship used in Use Case and also give a short note

on each relationship.(13)

BTL6 Creating

3 Summarize the Elaboration phase.Discuss the difference

between elaboration and inception with example.(13)

BTL2 Understanding

4

(i)Describe the strategies used to identify the conceptual

classes.(10)

(ii)Mention the steps to create a domain model used for

representing the conceptual classes.(3)

BTL2 Understanding

5

(i)Illustrate the concepts of Domain model with

example.(8)

(ii)Show when to model with Description classes with

example.(5)

BTL3 Applying

6

(i)Summarize the steps and explain how to find Use

cases with an example.(8)

(ii)Rank the 3 kinds of actors and explain the 3 common

Use Case formats.(5)

BTL5 Evaluating

7 Describe briefly about association and formulate the

guidelines to be followed with UML with suitable

example.(13)

BTL1 Remembering

8 Discuss about attributes with example.(13) BTL2 Understanding

9 Explain in detail about domain Model refinement.(13) BTL4 Analysing

10 Analyze the guidelines to define a conceptual subclass

and conceptual super class with suitable example.(13)

BTL4 Analysing

11 What are the guidelines used to partition the classes in

the domain model to be organized into packages?

Explain with suitable examples.(13)

BTL1 Remembering

12 (i)Examine the various sections in the Use Case template

with example.(10)

(ii)List the guidelines to be followed when writing Use

Case.(3)

BTL1 Remembering

13 Describe briefly about association classes and

association role.(13)

BTL1 Remembering

Page 10: VALLIAMMAI ENGINEERING COLLEGE Semester/CS6502-Object Oriented...... Design and explain the activity diagram for an ... the activity diagram for the following scenario,Booking a ticket

14

(i)Illustrate about aggregation and composition with

example.(10)

(ii)Mention the guidelines to be followed.(3)

BTL3 Applying

PART-C

Q.No. Question Level Competence

1 Generalize the purpose of Use Case model? Identify the

actors, scenarios and use cases for a Library Management

system.(15)

BTL6 Creating

2

Briefly explain about relating Use Cases and apply the

relation ship to the NextGen POS system.(15)

BTL5 Evaluating

3 Construct design for Library Information System which

comprises the following notations and explain them.

(i)Aggregation (ii) Composition (iii)Asssociations.

(5+5+5)

BTL6 Creating

4 Apply the concept of Conceptual class Hierarchies and

Association class to NextGen POS system and explain

them with suitable diagrams.(15)

BTL5 Evaluating

UNIT IV APPLYING DESIGN PATTERNS

System sequence diagrams - Relationship between sequence diagrams and use cases Logical architecture and UML package diagram – Logical architecture refinement - UML class diagrams - UML interaction diagrams - Applying GoF design patterns

PART-A

Q.No. Question Level Competence

1 Express the use of Sequence Diagram. BTL2 Understanding

2 Distinguish sequence diagram and collaboration

diagram.

BTL2 Understanding

3 Demonstrate what do you mean by sequence number in

UML? Where and for what it is used?

BTL3 Applying

4 What is meant by System Behavior?How to name

System events and Operations.

BTL1 Remembering

5 Define Package. Draw UML notation for Package. BTL1 Remembering

Page 11: VALLIAMMAI ENGINEERING COLLEGE Semester/CS6502-Object Oriented...... Design and explain the activity diagram for an ... the activity diagram for the following scenario,Booking a ticket

6 Analyze the use of UML Package Diagram BTL4 Analysing

7 Define Logical architecture & layers. BTL1 Remembering

8 Formulate the guideline to be followed when designing

with layers.

BTL6 Creating

9 Define System Events and the System Boundary. BTL1 Remembering

10 Differentiate strict layered and relaxed layered

architecture.

BTL2 Understanding

11 Summarize the Model View separation principle. BTL5 Evaluating

12 List the relationships used in class diagram. BTL1 Remembering

13 Name the layers in the 3 tier architecture. BTL1 Remembering

14 Show the relationship between Interaction and Class

diagram with example.

BTL3 Applying

15 Express the meaning of Facade. BTL2 Understanding

16 Differentiate Class diagram and Interaction diagram. BTL4 Analysing

17 Illustrate the term Classifier. BTL3 Applying

18 Create SSD for Borrow book scenario. BTL6 Creating

19 Summarize the benefits of using layers. BTL5 Evaluating

20 Compare and Contrast asynchronous and synchronous

message.

BTL4 Analysing

PART-B

Q.No. Question Level Competence

1 What are System Sequence Diagram? Illustrate the

relationship between sequence diagram and Use Case

with example.(13)

BTL3 Applying

2 Describe briefly about the logical architecture and UML

package diagram.(13)

BTL1 Remembering

3 What is Model View separation principle? Examine the

motivation for Model View separation.(13)

BTL1 Remembering

4 What are the benefits of using layers? Provide the

relationship between Domain layer and Domain

model.(13)

BTL1 Remembering

5 Briefly discuss about the various collaborations with the

layers.(13)

BTL2 Understanding

Page 12: VALLIAMMAI ENGINEERING COLLEGE Semester/CS6502-Object Oriented...... Design and explain the activity diagram for an ... the activity diagram for the following scenario,Booking a ticket

6

(i)Give short notes on inter layer and inter package

coupling.(7)

(ii)Discuss on the classic 3 tier architecture.(6)

BTL2 Understanding

7

Draw a neat sketch of the logical layered architecture of

NextGen application and explain the components in

detail .(13)

BTL4 Analysing

8 Discuss on

(i)Active Class (4)

(ii)User Defined compartments(3)

(iii)Singleton class(3)

(iv)Interfaces(3)

BTL2 Understanding

9 .Examine with an example about Interaction diagram.(13) BTL3 Applying

10 Compare sequence diagram and communication diagram

with suitable example. (13)

BTL5 Evaluating

11 Briefly explain about UML sequence diagram notations

with example.(13)

BTL4 Analysing

12 What is design pattern? Describe the GOF design

patterns.(13)

BTL1 Remembering

13 Generalize your views and write notes on adapter,

singleton, factory and observer patterns.(13)

BTL6 Creating

14

With an example explain notations used in sequence

diagram for the following:

(i)Object destruction (2) (ii)Frames (2)

(iii)Conditional message(3) (iv)Mutually exclusive

conditional message(3)(v)Iterations over a collection (3).

BTL4 Analysing

PART-C

Q.No. Question Level Competence

1 (i)Discuss and explain the connection between

SSD,System Operations and Layers with suitable

example.(8)

(ii)Explain How to add new SSDs and contracts to design

diagrams.(7)

BTL5 Evaluating

2

Describe UML notation for Class diagram with an

example.Explain the concept of link,association and

inheritence.(15)

BTL5 Evaluating

3 Explain about Interaction diagram notation for Inventory

Management System.(15)

BTL5 Evaluating

Page 13: VALLIAMMAI ENGINEERING COLLEGE Semester/CS6502-Object Oriented...... Design and explain the activity diagram for an ... the activity diagram for the following scenario,Booking a ticket

4 Design the UML Class,Sequence and Interaction diagram

for Librart Management system.(15)

BTL6 Creating

UNIT V CODING AND TESTING

Mapping design to code – Testing: Issues in OO Testing – Class Testing – OO Integration

Testing –GUI Testing – OO System Testing

PART-A

Q.No. Question Level Competence

1 What are the steps for mapping design to code.? BTL1 Remembering

2 What is TDD? BTL1 Remembering

3 Give the advantages of test driven development. BTL2 Understanding

4 Define refactoring & Regression Testing. BTL1 Remembering

5 List the activities and goals of refactoring. BTL1 Remembering

6 Summarize the issues in OO testing. BTL2 Understanding

7 Summarize class testing. BTL5 Evaluating

8 Conclude on the need of Integration testing. BTL5 Evaluating

9 Generalize the need of GUI testing. BTL6 Creating

10 Analyze the need for OO system testing. BTL4 Analysing

11 Differentiate OO integration testing and OO system

testing.

BTL2 Understanding

12 Point out the meaning of unit. BTL4 Analysing

13 List the 2 levels of Integration testing.

BTL1 Remembering

14 Examine on static view, compile time view and

execution time view on classes.

BTL3 Applying

15 Illustrate about Unit testing. BTL3 Applying

Page 14: VALLIAMMAI ENGINEERING COLLEGE Semester/CS6502-Object Oriented...... Design and explain the activity diagram for an ... the activity diagram for the following scenario,Booking a ticket

16 Point out the use of atomic system function (ASF). BTL4 Analysing

17 Interpret the use of method/message path (MM-path).

BTL2 Understanding

18 Design the 4 controls commonly used in GUI design. BTL6 Creating

19 List the 3 types of system function. BTL1 Remembering

20 Point out the 4 levels with coverage metrics for GUI

application.

BTL3 Applying

PART-B

Q.No. Question Level Competence

1 Explain in detail the design artifacts to implement code

in an object oriented language.(13)

BTL4 Analysing

2 Elucidate the operation of Mapping Design to

Code.(13)

BTL1 Remembering

3 Discuss in detail about the different types of testing in

OOAD.(13)

BTL2 Understanding

4 Discuss briefly about the issues in OO testing.(13) BTL2 Understanding

5 What is OO testing? Examine in detail about the

concepts of OO testing in OOAD.(13)

BTL1 Remembering

6 Briefly summarize about class testing.(13) BTL5 Evaluating

7 Illustrate about OO Integration testing with

example.(13)

BTL3 Applying

8 Demonstrate the need for GUI testing.(13) BTL3 Applying

9 Describe about OO system testing.(13) BTL1 Remembering

10 Explain in detail about OO integration testing and OO

system testing.(13)

BTL4 Analysing

11 Differentiate GUI testing and class testing.(13) BTL4 Analysing

12 Examine the framework for OO data flow integration

testing.(13)

BTL1 Remembering

13 Discuss on

(i) Methods as units (7)

(ii)Classes as units (6)

BTL2 Understanding

Page 15: VALLIAMMAI ENGINEERING COLLEGE Semester/CS6502-Object Oriented...... Design and explain the activity diagram for an ... the activity diagram for the following scenario,Booking a ticket

14 Use currency converter application as example and

generalize the steps in OO system testing.(13)

BTL6 Creating

PART-C

Q.No. Question Level Competence

1 Explain about the implementation model (Mapping

design to code) and give the NextGen POS program

solution.(15)

BTL5 Evaluating

2

Explain about Class Testing for OO Calendar

example.(15)

BTL5 Evaluating

3 Compare and contrast OO integration testing and OO

system testing with suitable example.(15)

BTL5 Evaluating

4 Analyse and discuss about GUI Testing for Currency

Conversion Program.(15)

BTL4 Analysing