1 / 58

O bject O riented A nalysis & D esign Session 6 - Mock exam

O bject O riented A nalysis & D esign Session 6 - Mock exam. Your host: Richard Walker. Objectives. IBM 833 Objectives. UML & the Modeling Process (20 %) The Unified Modeling Language Process and Visual Modeling Analysis & Design Key Concepts. Concepts of Object Orientation (40 %)

lazaro
Download Presentation

O bject O riented A nalysis & D esign Session 6 - Mock exam

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Object Oriented Analysis & DesignSession 6 - Mock exam Your host: Richard Walker

  2. Objectives IBM 833 Objectives UML & the Modeling Process (20%) • The Unified Modeling Language • Process and Visual Modeling • Analysis & Design Key Concepts Concepts of Object Orientation (40%) • Relationships • Class • Polymorphism • Interface (Provided & Required) • Structured Classes & Ports Architectural Analysis (20%) • Key Concepts • Define high-level organization of the model • Identify analysis mechanisms • Identify key abstractions • Create use-case realizations Use Case Analysis (20%) • Supplement the Use-Case Description • For each Use-Case Realization • Find Classes from Use-Case Behavior • Distribute Use-Case Behavior to Classes • For each resulting analysis class • Describe Responsibilities • Describe Attributes and Associations • Qualify Analysis Mechanisms • Unify Analysis Classes ALTRAN CIS Belgium – OOAD Training

  3. Timing • 50 questions • 75 minutes • 1'30 per question • Timing Are you ready? Ivar Jacobson

  4. Q01 1. Which statement is true? • The UML is a development process for software intensive systems. • The UML is a process-dependent language used for visualizing software artifacts. • The UML is a modeling language for software blueprints. • The UML is a visual programming language.  ALTRAN CIS Belgium – OOAD Training

  5. Q02 2. In which three ways does a structured class differ from a traditional class? (Choose three.) • It clearly defines the class boundary via an encapsulation shell. • It brings public interfaces into the class via ports. • It shows the role that the class plays. • It defines messages between itself and other classes.    ALTRAN CIS Belgium – OOAD Training

  6. Q03 3. Which is a characteristic of a structured class? • must have one interface for each role it plays • can play only one role, no matter how many objects transact with it • can play multiple roles that vary on the objects that interact with it • is limited to one role, but can have multiple interfaces  ALTRAN CIS Belgium – OOAD Training

  7. Q04 4. Which statement is true about an iterative development process? • Testing and integration take place in every iteration. • An iteration focuses on partial completion of selected use-case realizations. • It encourages user feedback in later iterations. • It is based on functional decomposition of a system.  ALTRAN CIS Belgium – OOAD Training

  8. Q05 5. Which two statements are true about interfaces? (Choose two.) • The interface should have a clear purpose. • A single interface should include as many possible methods, if not all methods, that may be shared by objects that implement the interface. • An interface should be used to restrict which methods are exposed to a client. • Classes may have multiple interfaces depending on the purpose of each interface it implements.   ALTRAN CIS Belgium – OOAD Training

  9. Q06 6. What is the focus of analysis? • translating functional requirements into code • translating requirements into a system design • translating real-world concepts into solution-oriented objects • translating functional requirements into software concepts  ALTRAN CIS Belgium – OOAD Training

  10. Q07 7. Why is encapsulation important? (Choose two.) • It describes the relationship between two subclasses. • It places operations and attributes in the same object. • It allows other objects to change private operations and attributes of an object. • It prevents other objects from directly changing the attributes of an object.   ALTRAN CIS Belgium – OOAD Training

  11. Q08 8. What are analysis classes? • early conjectures on the composition of the system that usually change over time, rarely surviving intact into Implementation • incomplete classes that require a programmer to formalize operation signatures and attribute types before they can be implemented • the classes inside a systems Business Object or Domain Model, in UML form • a prototype of a systems user interface, developed during the Analysis Phase, which allows users to define the systems look and feel  ALTRAN CIS Belgium – OOAD Training

  12. Q09 9. An architect looks at two classes. The first class has the following operations: getName(),getSize(),getTotal(), and findAverage(). The second class has the following operations: getName(),getSize(), findAverage(), findMinimum(), and findMaximum().The two classes share the same superclass.Which operations are most likely contained in the superclass? • getName(), getSize(), and findAverage() • findMaximum(), findMinimum(), getSize(), and getTotal() • getName(), findAverage(), and findMaximum() • getName(), getSize(), getTotal(), and findAverage()  ALTRAN CIS Belgium – OOAD Training

  13. Q10 10. An architect is responsible for creating an Analysis Model for a system. Which area of focus is essential for the creation of this model? • hardware on which the system will be deployed • behavior of the objects that comprise the system • evolution of analysis classes into design classes • performance requirements of the system  ALTRAN CIS Belgium – OOAD Training

  14. Q11 11. What does a required interface do? • exposes services to anonymous requestors • uses the services that a classifier requires to request from anonymous providers • declares the services that a classifier offers to provide anonymous requestors • exposes methods that the requestor must use  ALTRAN CIS Belgium – OOAD Training

  15. Q12 12. In a sequence diagram, each interaction on the diagram maps to _____. • a choice point on a state diagram • the transition on a state diagram • a state on the diagram • the initial state  ALTRAN CIS Belgium – OOAD Training

  16. Q13 13. Which two questions does the use of multiplicity on relationships allow you to answer? (Choose two.) • Is the relationship mandatory or optional? • How many links can an object of one type maintain with objects of another type? • Is an object of a given type permitted to interact with objects of another type? • Is the relationship between objects permanent or temporary?   ALTRAN CIS Belgium – OOAD Training

  17. Q14 14. What are two important considerations when diagramming state? (Choose two.) • Any time a message is received; there may be a change of state. • Any time a message is received; there must be a change of state. • Whenever there is a change of state, there is a transition. • Changing state may not change transition.   ALTRAN CIS Belgium – OOAD Training

  18. Q15 15. Which statement is true about circular dependencies? • They do not matter. • They are prohibited. • They must be avoided. • When there are more than two packages, they are irrelevant.  ALTRAN CIS Belgium – OOAD Training

  19. Q16 16. What is the purpose of Architectural Analysis? • to detail the design of the system • to review the architecture of the system • to define a candidate architecture for the system • to define the layers of the architecture  ALTRAN CIS Belgium – OOAD Training

  20. Q17 17. When the interfaces between two classes have been defined from a sequence diagram, the ports are defined by the _____. • interfaces • operations the class performs • users of the system • attributes passed in the sequence diagram  ALTRAN CIS Belgium – OOAD Training

  21. Q18 18. Which statement is true about attributes? • They cannot change once the object is instantiated. • They change value from object to object of the same class. • They can only be primitives. • They are required for every class.  ALTRAN CIS Belgium – OOAD Training

  22. Q19 19. What are the three purposes of Analysis and Design? (Choose three.) • to provide an organizational context for the system • to transform the requirements into a design of the to-be system • to evolve a robust architecture for the system • to scope the system to be built and describe what it must do • to adapt the design to match the implementation environment    ALTRAN CIS Belgium – OOAD Training

  23. Q20 20. Objects that are polymorphic _____. • must have the same attributes • share all the same operations, and the operations perform the same • can only be implemented through interfaces • may have the same operation names but the operations perform differently  ALTRAN CIS Belgium – OOAD Training

  24. Q21 21. Which is a best practice for nesting structured classes? • should limit the nesting of structured classes to two levels per diagram • should display all substructured classes of a structured class in a single to show the depth of interactions • should be limited to one level of depth, thereby allowing the user to navigate from diagram to diagram to show the next level • should be determined by the architect during the design phase  ALTRAN CIS Belgium – OOAD Training

  25. Q22 22. During Architectural Analysis, a Software Architect wants to reduce the complexity of the system at work and improve its consistency. What should the Software Architect define to accomplish this? • coding rules • use-case realizations • analysis mechanisms • design mechanisms  ALTRAN CIS Belgium – OOAD Training

  26. Q23 23. Which two characteristics do all objects have? (Choose two.) • primitives • state and behavior • interfaces • a unique identity   ALTRAN CIS Belgium – OOAD Training

  27. Q24 24. Analysis classes evolve into _____. (Choose two.) • design classes • subsystems • use-case realizations • design packages • architecture   ALTRAN CIS Belgium – OOAD Training

  28. Q25 25. What happens when a superclass is changed? • All subclasses inherit the change. • The operations of the subclass must be changed. • Additional operations in the subclass that are not associated with the superclass must change. • Only the operations of the superclass are inherited.  ALTRAN CIS Belgium – OOAD Training

  29. Q26 26. Which two statements are true about use-case realization? (Choose two.) • It lists the different steps performed by a use-case. • It provides traceability from Analysis and Design back to requirements. • It is created by the System Analyst. • It describes the use-case in terms of collaborating objects.   ALTRAN CIS Belgium – OOAD Training

  30. Q27 27. Which state does NOT contain another state? • Top State • Composite State • Simple State • Bottom State  ALTRAN CIS Belgium – OOAD Training

  31. Q28 28. Which statement is true about grouping elements into a package? • Elements in a package should share a logical, common grouping. • Packages should contain a small number of elements to avoid confusion. • Packages should only be used on large projects requiring a large number of elements. • Packages should not contain other packages.  ALTRAN CIS Belgium – OOAD Training

  32. Q29 29. What are three architectural mechanism categories? (Choose three.) • analysis mechanisms • requirement mechanisms • implementation mechanisms • design mechanisms    ALTRAN CIS Belgium – OOAD Training

  33. Q30 30. In a sequence diagram, what can be defined by the interactions between participants in the interactions? • only services provided by an interface • only services required by an interface • both provided and required services for interfaces • the name of the interface  ALTRAN CIS Belgium – OOAD Training

  34. Q31 31. Which view focuses on the physical realization of the system? • Logical View • Implementation View • Process View • Use-Case View  ALTRAN CIS Belgium – OOAD Training

  35. Q32 32. Which statement is true about an active object? • It is an independent object that can communicate with other active objects asynchronously. • It does not contain state. • It is dependent on the overall system execution. • It is unstructured to allow the class to be manipulated easily.  ALTRAN CIS Belgium – OOAD Training

  36. Q33 33. During Use Case Analysis, what is generally allocated to control classes? • behavior specific to a use-case or part of a very important flow of events • behavior that involves the data encapsulated within the abstraction • behavior that involves communication with an actor • behavior specific to business rule enforcement or workflow  ALTRAN CIS Belgium – OOAD Training

  37. Q34 34. What are three sources for Key Abstractions identification? (Choose three.) • domain knowledge • requirements • design classes • glossary    ALTRAN CIS Belgium – OOAD Training

  38. Q35 35. What is a named object in UML? • Matt:Employee • :Employee • Matt::Employee • ::employee  ALTRAN CIS Belgium – OOAD Training

  39. Q36 36. During Use Case Analysis, an attribute should be used instead of a class when the information _____. • is accessed by operations that only get, set, or perform simple transformations • is related to entities in the Business or Domain Model • needs to be hidden from other parts of the Analysis Model and not shared • is referred to and used multiple times throughout the use-case realization  ALTRAN CIS Belgium – OOAD Training

  40. Q37 37. Which view is NOT part of the RUP 4+1 View Model? • Logical View • Distribution View • Use-Case View • Process View  ALTRAN CIS Belgium – OOAD Training

  41. Q38 38. What are two functions of visual modeling? (Choose two.) • produces a single model that represents all views of the system • improves communication and comprehension among team members • documents important design decisions in the code • documents system behavior and structure before coding the system   ALTRAN CIS Belgium – OOAD Training

  42. Q39 39. During Use Case Analysis, why are analysis mechanisms used? • to reduce complexity and improve consistency by providing a shorthand representation for complex behavior • to simplify the task of creating use-case realizations by providing convenient shorthand for repetitive tasks • to gather common tasks into one place, in order to more easily assign them to developers for implementation • to verify that designers have performed the analysis task correctly, according to the architects recommendations  ALTRAN CIS Belgium – OOAD Training

  43. Q40 40. Which statement is true about patterns? • Patterns only exist at the Design level. • Patterns provide a common solution to a common problem. • Patterns only exist at the Architectural level. • Patterns are only used during the Elaboration Phase.  ALTRAN CIS Belgium – OOAD Training

  44. Q41 41. During Use Case Analysis, why is it sometimes necessary to supplement the use-case description? • The description of each use-case is not always sufficient for finding analysis classes and their objects. • The flow of events in the use-case is sometimes too complex to be implemented. • Designers need to know which use-case flows are being developed in the current iteration. • The architect may need to adjust incorrect requirements before giving them to the designers.  ALTRAN CIS Belgium – OOAD Training

  45. Q42 42. In Use Case Analysis, what is the purpose of the Unify Analysis Classes step? • to ensure that each analysis class represents a single well-defined concept, with no overlapping responsibilities • to gather the analysis classes from each use-case realization and bring them into the Design Model • to make sure the responsibilities of each class are consistent and that the class has a well defined single purpose • to create initial class families by using inheritance to group related classes into tree structures  ALTRAN CIS Belgium – OOAD Training

  46. Q43 43. Which three processes are best suited for UML? (Choose three.) • use-case driven • waterfall development-based • iterative and incremental • architecture-centric • requirements-centric    ALTRAN CIS Belgium – OOAD Training

  47. Q44 44. Architectural layers are commonly modeled in UML using a _____. • package stereotyped <<Layer>> • subsystem stereotyped <<Layer>> • composite class stereotyped <<Layer>> • class diagram entitled Layer  ALTRAN CIS Belgium – OOAD Training

  48. Q45 45. In a state diagram, a state has two transitions. One of the transitions is an internal transition and the other is an external transition. Which one(s) can trigger an exit action? • the internal transition only • the external transition only • neither the internal nor the external transition • both the internal and external transitions  ALTRAN CIS Belgium – OOAD Training

  49. Q46 46. Which two statements are true about use-case driven processes? (Choose two.) • Use-cases are concise, simple, and able to be understood by a wide range of stakeholders. • Use-cases help synchronize the content of different models. • Use-cases are a complete list of functional requirements. • Use-cases specify how the system behavior is to be implemented.   ALTRAN CIS Belgium – OOAD Training

  50. Q47 47. Which is the primary function of entity classes? • store and manage information in the system • act as a surrogate or proxy for the actors in a system • wrap data access calls to a systems relational database • marshal information between the tiers in a system  ALTRAN CIS Belgium – OOAD Training

More Related