SNS College of Technology: Object Oriented System Design
SNS College of Technology: Object Oriented System Design
SNS College of Technology: Object Oriented System Design
2 Marks Question and Answer Subject Code & Name: OBJECT ORIENTED SYSTEM DESIGN Prepared by: T.Yaswini Jothi, Lecturer/CSE , B.Vinodhini, Lecturer/CSE UNIT I 1. Write about the traditional development methodologies? Most traditional development methodologies are either algorithm centric or data centric. a. Algorithm-centric methodology You think of an algorithm that can accomplish the task, and then build data structures for that algorithm to use. b. Data- centric methodology You think how to structure the data, and then build the algorithm around that structure. 2. Define objects. Object is a real- world entity, identifiably separate from its surroundings, has a well defined set of attributes and a well-defined set of procedures or methods. Properties (or attributes) describe the state (data) of an object. Methods (procedures) define its behavior. Object means a combination of data and logic that represents some real-world entity. (E.g.) Car is an object Color, manufacturer, cost, owner etc are attributes. Drive it, lock it, tow it, carry passengers in it are all methods. 3.Define Object Oriented Analysis? Object Oriented Analysis (OOA) is a method of analysis that examines requirements from the perspective of the classes and objects found in the vocabulary of the problem domain.
SNSCT Department of Compute Science and Engineering Page 1
Page 2
Page 3
Page 5
30.Write the four quality measures for software development? Correspondence, correctness, verification, and validation. 31.What is cardinality? Cardinality specifies how many instances of one class may relate to a single instance of an associated class. 32. What is a formal class or abstract class? Formal or abstract classes have no instances but define the common behaviors that can be inherited by more specific classes. 33. What is a meta-class? A meta-class is a class about a class. They are normally used to provide instance variables and operations. 34. Define Encapsulation? Encapsulation is the process of compartmentalizing the elements of an abstraction that constitute its structure and behavior. 35. What is the need of an Object diagram? An object diagram is used to show the existence of objects and their relationships in the logical design of a system. 36. What is state of an object? The state of an object encompasses all of the properties of the object plus the current values of each of these properties. 37. Write some applications of object model? They include Air traffic control, Animation, Avionics, Database, Robotics etc. 38. Define Concurrency. Concurrency is the property that distinguishes an active object from one that is not active. 39. Name the three general approaches for classification?
SNSCT Department of Compute Science and Engineering Page 7
POSSIBLE BIG QUESTIONS 1. Explain Object Oriented Systems Development Methodology. Why there is a need for an Object Orientation? 2. Compare Structured Approach and Object Oriented Approach with an application. 3. Explain about Class Hierarchy and Polymorphism with detailed examples. 4. Explain the stages involved in the Object Oriented Systems Development Life Cycle. 5. Define an object. Explain: A) How objects are grouped into classes? B) Object State and Properties C) Object Behavior and Methods D) Object Respond to Messages. 6. Explain about basic class modeling.
Page 8
UNIT II 1. Write about the four phases in OMT? OMT consists of four phases. They are Analysis-The results are objects and dynamic & functional models. System design-The results are a structure of the basic architecture of the system along with high-level strategy decisions. Object Design-Produces a design document, consisting of detailed objects static, dynamic and functional models Implementation-This activity produces reusable, extendible, robust code. 2. What do you mean by object diagram? The object model of OMT is represented graphically with an object diagram. The object diagram contains classes interconnected by association lines. Each class represents a set of individual objects. The association lines establish relationships among the classes. Each association line represents a set of links from the objects o f one class to the objects of another class 3. What are the primary symbols used in Data Flow Diagrams? Data flow diagrams use four primary symbols: The process is any function being performed.(verify password in the ATM) The data flow shows the direction of data element movement.(PIN code) The data store is a location where data are stored.(Account in ATM) An external entity is a source or destination of a data element .(the ATM card reader)
Page 9
Page 11
13. Define pattern mining. Give the steps involved in capturing pattern.
Page 12
Page 13
Page 15
23. What is a qualifier? Give one example. A qualifier is an association attribute. The qualifier rectangle is part of the association path, not part of the class.
24.What is a method? A method is the implementation of an operation for a class. 25. What is a use case? Use cases are scenarios for understanding system requirements. A use case is an interaction between users and a system. 26. Name the three types of relationships in a use case diagram. Communication, Uses, extends. 27. Write the two types of Implementation diagram? Component diagram, deployment diagram. 28. What is an activity? An activity is a set of operations that is executing during the entire period an object is in a state. 29. Write the guidelines for preparing the Documentation. Common cover, 80-20 rule, Familiar vocabulary, make the document as short as possible, organize the document. 30. Name the types of relationships among the objects. Association, super-sub structure, aggregation.
SNSCT Department of Compute Science and Engineering Page 16
POSSIBLE BIG QUESTIONS 1. Explain about the UML class diagrams in detail with suitable examples. 2. Explain about the UML state modeling in detail with suitable examples. 3. Explain about the UML interaction modeling in detail. 4. What is a Use-case? What are the techniques available in it? 5. Explain about Super-sub class relationships and A-part-of relationships in detail with suitable examples.
UNIT III
Page 17
9.What are the three steps in CRC process? The classes, responsibilities and collaborators process consists of three steps: Identify classes responsibilities (and identify classes). Assign responsibilities. Identify collaborators.
Page 19
Identify collaboration
Assign responsibility
10. How would you identify attributes? Attributes usually correspond to nouns followed by preposition phrases. Attributes also may correspond to adjectives or adverbs. Keep the class simple; state only enough attributes to define the object state. Attributes are less likely to be fully described in the problem statement. Omit derived attributes. They should be expressed as a method. Do not carry excess identification. 11.How would you identify methods? The sequence diagrams assist us in defining services that the objects must services are implemented as the methods for your objects. provide. These
In a sequence diagram the events that occur between objects are drawn between the vertical object lines. An event is considered to be an action that transmits information; therefore these actions are the operations that the objects must perform. Methods also can be derived from the scenario testing. 12. Write the syntax for presenting the attribute that was suggested by UML. visibility name : type_expression = initial _value Where visibility is one of the following + public visibility # protected visibility - private visibility type_expression - type of an attribute
SNSCT Department of Compute Science and Engineering Page 20
Page 21
POSSIBLE BIG QUESTIONS 1. Explain about system conception. 2. Explain about domain analysis.
Page 22