Unit Wise Questions Unit-1 Concepts Q1. What is UML? Ans. Unified Modelling Language. It is a Industry standard graphical language for modelling and hence visualizing a blue print of all the aspects of the system, before implementing the system. It is an easy way to specify, visuallize, document and understand the structure and behaviour of the system. Q2.Goals/Benifits of UML? Ans. few Goals and Benifits of UML are: 1. Being independent of any particular programming language and development process its easy to understand. 2. To provide best engineering practices for large and complex system. 3. Encourage the growth of Object Oriented tools. 4. Provides a good way to gather requirements. 5. Improve software quality and decreases time and cost of the software. Q3. Name different UML diagrams available? Ans. Types of UML Diagrams with Static view are: - Class Diagrams. - Object Diagrams. - Component & Deployment Diagrams - Use Case Diagrams. - Package Diagrams (not official uml diagram). Types of UML Diagrams with Dynamics view are: - Collaboration Diagrams. - Sequence Diagrams. - State chart Diagrams. - Activity Diagrams.
Q4. Explain core elements of UML diagrams? Ans. Core elements of Use Case UML diagrams are given below in table: Elements Name Use Case. Description Describes one of the Action of the system. Element Image Actor Association. System Boundary. An Actor is the one who uses the System. Note: It may not always be a human being but can be another system Links an Actor to the Use Case. Represents the boundary between an Actor (External entity) and the System. Extend Links an Actor to the Use Case. Generalization. Basically describes "Inheritance" Object orientation terms. The arrow points to the base / parent class. Dependency. Class. Explains dependency relation between two components. Arrow points to the component it depends on. Class - the building blocks of Object Oriented language. A Rectangle divided into 3 parts horizontally, top gives the class name, middle to give the properties (main variables), the bottom to give the method names
Object. Lifeline. Object is basically ONE instance of a class. Objects are displayed as a rectangle divided in two horizontal parts, with "instance name : class name: on top and properies "Name = Value" in bottom part. Represents the life time of an object. Activation. Represents when the object is performing some action. Message. Links the two objects and Describes the communication taking place between them. 1. How can I recognize components of a system? 2. How can I recognize interfaces of a component? 3. How can I know whether I should use Ports or not? 4. What is inheritance? While developing a system we analyze the system in terms of UML diagrams how should we proceed to explain these and draw them accurately. 5. Difference between Composition and Aggregation. 6. Difference: Sequence Diagrams, Collaboration Diagrams. 7. Difference: 'uses', 'extends', 'includes' 8. What shall I go for Package Diagram? 9. What is Polymorphism? 10. Is class an Object? Is object a class? 11. Comment: C++ "includes" behavior and java "imports" 12. What do you mean by "Realization"? 13. What is a Presistent, Transient Object? 14. What is the use of Operator Overloading? 15. Does UML guarantee project success? 16. Difference: Activity Diagram and Sequence Diagram. 17. What is association?
18. How to resolve many to many relationships? 19. How do you represent static members and abstract classes in Class Diagram? 20. Can we use UML for user interface (UI) design? 21. Every object has : state, behavior and identity - explain 22. How to reverse engineer C++ code in UML? 23. What are the tools you used for OOAD? 24. Difference: Object Oriented Analysis (OOA) and Object Oriented Design (OOD)? 25. What are the four phases of the Unified Process? 26. How do you convert uses cases into test cases? 27. Explain Class Diagram in Detail. 28. What are the Design Patterns you know. 29. When do you prefer to use composition than aggregation? 30. UML: IS it a process, method or notation? 31. Does a concept HAVE to become a class in Design? 32. What are the good practices to use while designing for reuse? 33. Can you think of some nice examples where *multiple* actors are associated with a use case? 34. How to use CRC Cards for Class Design? 35. What is the difference between static and dynamic Classificaition.Give some examples. 36. Explian following terms: Constraint Rules, Design by contract. 37. What is Object Constraint Language (OCL)? 38. Difference Between Attribute and Association. 39. What are associative classes? 40. By using Use Case Driven Object Modeling with UML. 41. What is the role designing in any system or project implementation? Explain model based software design and development? 42. What is software design? What is the major classification of software design based on abstract level? 43. Explain the fundamental design concept applied in modern software design/ 44. Explain few software design methods and notations? 45. What are the structured and Procedural design method? 46. Explain Use of Actor? Who are the Primary and Secondary actors? Explain with example. 47. Explain the different degree of multiplicity of Association between classes with suitable example.
1. One-to-One Association 2. One-to-Many Association 3. Many-to-Many Association. 48. Explain the Concept of aggregation and composition of class hierarchies using suitable example and class diagram. 49. Explain concept of association between classes? 50. Explain the Concept of Extension point in use cases? Unit-2 Architectural Design 1. write short notes on analyzing and evaluating software architecture? 5 Marks 2. Comment on statement that every computing system with software has a 5 Marks Software architecture. 3. Define and explain with examples the term software architecture? 5 Marks 4. Draw a neat diagram to illustrate the influence stakeholder have over 8 Marks Architecture. Briefly comment on what your diagram communicates. 5. Explain what you understand by MODULE based software architecture 5 Marks Structures? 6. Explain how an Architect (Civil) makes an impact for building houses in terms of quality of houses/ buildings built. 5 Marks 7. Why is software architecture important? Elaborate on how software architecture 5 Marks Inhibits or enables systems quality attributes, help build systems using large, externally developed elements. 8. Architecture documentation also involves use of Deployment diagrams to show 5 Marks some architecture decisions especially related to performance, fault tolerance, explain with simple examples. 9. Explain 7 part document structure? 5 Marks 10. Explain how to document module, components and connector and allocation views? 8 Marks 11. When and why software Architecture will choose following technology 6 Marks Choices for any system, justify with examples. I) java ii) Visual Basic
12. Draw diagrams for 4+1 View Architecture. Give a definition for software 6 Marks Architecture and explain the definition. 13. what do you understand by following concepts. 6 Marks i) Connectors and components. ii) Architectural structure modules: (decompose, classes) 14. What is a deployment diagram. What kind of architectural decisions/ scenarios does a deployment diagram depict? Show the following two tier web application scenario using a deployment diagram. Scenario: Browser based client using HTTP to access static web pages. 6Marks 15. Write short notes on architecture stakeholders. 6Marks 16. Consider Civil Engineering/ Architects profession of designing and constructing residential/ office buildings. What is the difference between the role of architect and civil engineer. Similarly a software architect also helps build software with quality like security, performance etc. what is the difference between roles played by programmer and an architect. Explain with examples how software architect and architecture contributes to any software System s quality. 6Marks 17. a) Explain the concept of Robust Software Architecture? Specify software architecture requirements. 8 Marks b) Discuss the Architectural structure and views? What makes a good architecture? 8 Marks 18. Explain with suitable example: 8 Marks i) Architecture is high level design. ii) Architecture is the overall structure of the system. iii) Behavior of each software element is a part of architecture. iv) Architecture has Components and Connectors. 19. Explain various documentations you require to do performance analysis of Software Architecture. 20. Explain various stakeholders for software architecture. 4Marks 21. Explain the real time software architecture. 22. Write the important characteristics of software architecture. 23. What is service oriented architecture. 24. Explain the broker patterns for design of service oriented architecture? 25. Explain the location transparency and platform transparency in service oriented architecture. 26. Explain the multiple client multiple service architectural pattern with suitable example. 27. Describe the static structural view with the class diagram?
Unit-3 Design pattern 1. We want to work with employee data(name, salary and skill set) stored in one of 5 Marks The possible ways: linked list of employee structures, or in array of employee structures. Show a class structure(diagram) for Iterator pattern adapted for above example. 2. Draw a sequence diagram to explain working of an observer pattern. 5 Marks 3. Write short note on PROXY patterns. 5 Marks 4. What is design pattern and how is it documented, give examples. 5 Marks 5. What is design pattern factory method and how does it appear in COM/ DCOM 5 Marks 6. Consider an application where there is an excel sheet to hold exam results i.e. 5 Marks Student wise marks. We would like to draw a Bar chart showing comparison of individual Students as well as PIE chart to show comparison between total passed, failed and FIRST class students. i) What is an observer pattern ii) Show how observer pattern can be applied in above scenario(no code required)? 7. Which design pattern will you choose to Convert the interface of a class into another 5 Marks Interface clients expect. Why. 8. What are design patterns, why do we need them give an example design pattern? 5 Marks 9. Write short notes on design patterns(any Three) 12 Marks 1) Factory Pattern 2) Adaptor Pattern 3) Builder Pattern 4) Proxy Pattern 10. Give sample implementation of singleton pattern in C++ or JAVA 8 Marks 11. What is proxy pattern? What is remote proxy pattern? Show how remote proxy helps in marshaling/ unmarshaling. Draw a class/ sequence diagram to show how remote proxy patterns works. 8Marks 12. What are design patterns? Discuss intent and application of chain of responsibility, command, Mediator patterns. 8Marks 13. IN CONTEXT OF OBSERVOR PATTERN answer the following. 16Marks a) How does action listener (event listener) in java work. b) What is publish subscribe? c) What roles of subject and observer? d) Give a non-software example of observer pattern.
14. Give intent, application, advantage of following patterns: 10Marks i) Factory Pattern ii) Event Listener iii) Adaptor Pattern 15. Define design patterns, discuss the characteristics of design pattern. 8Marks 16. What are design patterns? How they are documented using a template? Explain the way they are documented with examples to illustrate from ITERRATOR pattern. 10Marks 17. Explain when proxy pattern will be applied. Give the solution of proxy pattern using UML diagrams. 18. Explain the behavioral pattern in short. 19. Explain the intent, motivation, structure, implementation and consequences of iterate pattern. 20. Explain the iterate pattern with suitable example and class diagram. 21. Explain the intent, motivation, structure, implementation and consequences of observer pattern. 22. Draw the structure of observer pattern with suitable class diagram including subject and observer. 23. Explain the intent, motivation, structure, implementation and consequences proxy pattern? 24. Explain the intent, motivation, structure, implementation and consequences singleton pattern. 25. Explain the intent, motivation, structure, implementation and consequences factory pattern. 26. Explain the intent, motivation, structure, implementation and consequences creational pattern. 27. What are the major element of documenting and describing the design pattern. 28. Explain the essential element of design pattern 29. What are the major classification pattern? 30. What are design pattern and why they are the important in modern software development?