当前位置:文档之家› 《系统分析与设计方法》期末考试题-B卷-答案

《系统分析与设计方法》期末考试题-B卷-答案

北京邮电大学2006——2007学年第2学期《系统分析与设计方法》期末考试试题(B)答案答题卡:1—30题一.单重选择题:(45分)本大题共有30小题,每小题1.5分,总分45分。

每个小题的答案中只有一个是最合适的, 请你把所选择的答案在答题卡上标记出(A, B, C, D, 或E), 其余的回答方式无效.UML Modeling T ool1. Which one of the following is NOT a view in Rational Rose?ponent viewB.Deployment viewe case viewD.Logic viewE.Static view2. Which one of the following UML diagrams is critical in Rational Rose forward-engineering inorder to create skeletal code?A.Class diagrame case diagramC.Sequence diagramD.Collaboration diagramE.State diagramUML diagrams in UML 1.xClass Diagram3. Which one of the following statements about Class Diagram Modeling doing for a class is FALSE?A.It helps to collect attributes in associationB.It helps to collect attributes and methods in heritance relationshipC.It helps to collect signature in method in dependency relationshipD.It helps to collect attributes and methods in dependency relationshipE.It helps to collect attributes in aggregation relationshipObject Diagram4. Which one of the following statements about difference between Class Diagram and Object Diagram is FALSE?A.Object Diagrams are about instant and instanceB.Object Diagrams are only used when Class Diagrams are not good enoughC.Class Diagrams are commonly usedD.Object Diagrams are used to replace the Class DiagramsE. A Object Diagram is a scenario of a Class DiagramState Diagram5. Which one of the following statements about using State Diagram is FALSE?A. A State Diagram is used for modeling all the states in a single objectB.When a class is critical and complexC.State Diagrams should be included in any UML modelsD.State Diagrams can be used in game development when a single object is critical and complex, we callthis a state-driven development methodE.State Diagrams are used by object modelersUse Case Diagram6. Which one of the following statements about Use Case Diagram is FALSE?A.It is used for system functional requirements modelingB.It is a description of a system’s behavior from a user’s standpointC.For syste m developers, the use case is a valuable tool: It’s a tried-and-true technique for gatheringsystem requiremen ts from a user’s point of viewD.Obtaining information from the user’s point of view is important if the goal is to build a system thatreal people can useE.It is commonly used for business process modeling7. Which one of the following statements about using <<include>> and <<extend>> in the UML use case analysis is FALSE?A.It is to improve reusability, and to avoid reinventing the wheelB.it is one kind of Keywords and Stereotypes application in UMLC.it can be used to avoid duplication in system developmentD.it is not included in the UML 2.0 specificationE.it is one of the best “divide and conquer” technique s used in system analysis and design8. Use Case Driven Method is NOT used in which one of the following?A.GUI designB.Deployment processC.During the system design process-- use case diagram drives the sequence diagram or collaborationdiagramD.Writing test scriptE.Coding and debuggingActivity diagram9. Which one of the following statements about using Activity Diagrams is FALSE?A.It is realization of a use case, as you know use case diagram is commonly too rough for programme rto do software implementationB.It is used when it is hard to model a use case by using sequence diagramC.It is much like the flowcharts of old. It shows steps (called, appropriately enough, activities) as wellas decision points and branchesD.It's not useful for showing what happens in an operation or method of a classE.The great strength of Activity Diagrams lies in the fact that they support and encourage parallelbehavior. This makes them a great tool for workflow and process modeling10. Which one of the following statements about Activity Diagram or Swimlane is FALSE?A. One of the handier aspects of the activity diagram is its ability to expand and show who has the responsibility for each activity in a processB.The activity diagram adds the dimension of visualizing roles. To do that, you separate the diagram intoparallel segments called swimlanesC.Each Swimlane shows the name of a role at the top and presents the activities of each role. Transitionscan take place from one swimlane to anotherD.Swimlane is useful in all occasionE.Traditionally Activity Diagrams were usually used to describe the dynamics of what went on/withinmethods. In that context they were more like traditional data flow diagramsInteraction Diagrams--Sequence Diagram & Communication Diagram11. Which one of the following statements about using Interaction Diagrams in the UML use case analysis is FALSE?A. It is realization of a use case, as use case is too rough for programmer to do software implementationB. It can be used to depict that in order to achieve a use case, how objects communicate through passing messagesC. Sequence Diagram shows the time-based dynamics of the interaction between the objectsD. It can be used in domain modelingE. It shows how the elements of a system work together to accomplish the system's objectives -- usecase, or system requirement12. Which one of the following is TRUE of trying to fill methods of the classes of WaterPipe according to the following Sequence Diagram?A. sendWater() stopFlow()B. sendWater() StopFlow() storeWater()C. sendWater() stopFlow() sendWater()D. stopFlow() sendWater() timeSoak()E.sendWater()storeWater()Component Diagram13. Which one of the following statements about using Component Diagram is FALSE?A.It is a modular part of a systemB.It's the software implementation of one or more class es, it resides in a computerC.It's not in the mind of an analystD.It is about software architectureE.It could be packaged together with use case diagram or activity diagramDeployment Diagram14. Which one of the following statements about Deployment Diagram is FALSE?A.It shows the physical architecture of a computer-based systemB.It is mostly used by software engineerC.It can depict the computers, show their connections with one another, and show the software that sitson each machineD.In the Deployment Diagram, each computer is represented as a cube, with interconnections betweencomputers drawn as lines connecting the cubesE.It is used mostly by field engineer or system engineerKeywords and Stereotypes15. Which one of the following statements about using Keywords and Stereotypes is FALSE?A. A Stereotype is an existing UML element with the addition of a Keyword in guillemetsB.It enables you to create new UML elements by basing them on existing elementsC.It's sort of like buying a suit off the rack and having it a ltered to fit your particular measurements (asopposed to creating one out of a bolt of cloth). Think of a Stereotype as just this kind of alterationD. The Keyword indicates that the element is used in a somewhat different way than originally intended, so we can create I nterface using the class’s iconE. Without Keyword and Stereotypes, there will not be tons of different icons in UML, and also its extendibility isn’t endangeredUML Diagrams added in UML 2.0Composite Structure Diagram16. Which one of the following statements about using Composite Structure Diagram is FALSE?A.When you're modeling a class, you might find it useful to show something about the class's internalstructureB.This often happens if the class consists of component classesC.Y ou put each component class inside the whole. This conveys the idea that you're looking inside theclass into its structureD.It should be used in any UML modelE.It is useful for dissecting a classInteraction Overview Diagram17. Which one of the following statements about Interaction Overview Diagram is FALSE?A.Consider once again the activity diagram, this shows you a series of steps, that is, "activities."Suppose each of those activities involves a sequence of messages among objects. If you replaced some of the activities with sequence diagrams or communication diagrams (or a combination of the two), you'd have UML 2.0's new Interaction Overview DiagramB.It is from UML 2.0 specificationC.One way to create Interaction Overview Diagram is to create activity diagrams first, and then replacedeach activity with sequence diagrams or communication diagramD.One way to create Interaction Overview Diagram is to create sequence diagram first, and thenreplaced some parts of the sequence diagram with activityE.It should be used in domain modelingThe Package Diagram18. Which one of the following statements about Package Diagram is FALSE?A.It is to put elements that go together inside one of these tabbed folder icons. For example, if a numberof classes or components constitute a particular subsystem, they would go into a packageB.It can be used to organize related classes, use cases and so onC.It is used to organize different subsystemD.It is used to organize related classes and use cases together in the same packageE.It can be used to organize related componentsOverview19. Which one of the following statements about UML is FALSE?A.After the advent of the UML, system development was often a hit-or-miss proposition.B.The UML is a visual modeling language that can be shared among different stakeholders in software ordevelopment. The stakeholders could be: business analyst, designer, and developers or programmers C.After the advent of the UML, a common language is shared among different roles in the softwaredevelopmentD.It is same like the blueprints for building a houseE.All of the above B, C, and D are true20. Which one of the following statements about using so many diagrams in UML modeling is FALSE?A. A big project needs the contribution, and collaboration of different stakeholders or roles. Typically, asystem has a number of different stakeholders—people who have interests in different aspects of the systemB.The users and business analysts are more interested in business use case diagrams or use case diagramsC.The designers are more interested in use case diagrams and sequence diagrams or communicationdiagrams; and the programmers are more interested in class diagrams and sequence diagrams which are more implementation relatedD.The UML diagrams make it impossible to examine a system from a number of viewpointsE.Conscientious system design involves all the possible viewpoints, and each UML diagram gives you away of incorporating a particular view. The objective is to communicate clearly with every type of stakeholder.21. Which one of the following statements about choosing UML diagrams in the design process is FALSE?A.Not all the diagrams must appear in every UML model. Most UML models, in fact, contain a subset ofthe diagrams listed by UML 2.0B.All of the diagrams included in UML 2.0 must show up in the design processC.Only those UML diagrams which best model the design process of the system are chosenD.During the design process, usually the use case driven method is usede case diagrams is commonly used for system functional requirement modelingFitting the UML into a Development Process22. Which one of the following is FALSE about GRAPPLE?A.This isn't a methodology written in stone. Instead, it's a set of adaptable, flexible ideas. Think of it as asimplified skeleton of a development processB.GRA PPLE can work in a variety of organizations (but maybe not all). It leaves room for a creativeproject manager to add his or her own ideas about what will work in a particular organization and to subtract the built-in steps that won'tC.It begins with a conceptual understanding of the domain, moves to high-level functionality, drills downinto use cases, refines models, and designs, develops, and deploys the systemD.Y ou'll also notice that more actions were in the Development segment than in the Analysis and DesignsegmentsE.The idea is to spend as much time as you can in up-front analysis and design so that coding proceedssmoothlyCase studiesDiscovering Business Processes23. Which one of the following is FALSE about Discovering Business Processes?A. If you sense part of the process becoming complicated and convoluted, consider setting off the complication as a separate business process. It will be easier to model, and the resulting model will be clearer than if you try to lump e verything together into one processB. Swimlane might be helpful in this actionC. We should put everything together into one process --- to model every detail in just one activity diagramD. Swimlane is chosen only if we like to emphasize which role take care of which responsibilityE. This should be happening during a JAD sessionPerforming a Domain Analysis24. Which one of the following is FALSE about Performing Domain Analysis and to create Model/Domain Dictionary?A.It is to achieve an understanding of the domain. That means you have to know the specific processesyou're trying to enhance and the nature of the world those processes operate in. In our scenario,uncovering the business processes has jump-started the development team's knowledgeB.It is to create the domain library, and to explore the domain knowledgeC.This is to create a glossary of all the terminology in the model. It will help to maintain consistencyand avoid ambiguityD. If you have definitions about the terminologies everyone agrees on, or if you are at least aware of the potential for confusion, you'll avoid a lot of problems down the roadE. Not all the above A, C, and D are true25. Which one of the following is NOT a step included in the Domain Analysis?A. Analyzing the interviewB.Developing the initial class diagram, Grouping the ClassesC.Creating and labeling associations between classes, Finding multiplicitiesD.Deriving composites/AggregateE.Not all of the above A, B, and C are includedGathering System Requirements26. Which one of the following is FALSE about the System Requirements Gathering?A. The result is a package diagram in which each package represents a major piece of functionality. Usecases inside a package elaborate on the functionalityB. The objective of this meeting for requirement collection is to produce a package diagram that showsall the major pieces of functionality for the system.C. Each package will represent one piece and will contain use cases that detail what the functionalitypiece is all aboutD. System Requirements Collection can start with collection of the actors of the system, and thencollection of use cases for each actorE. Not all of the above B, C and D are trueDeveloping the Use Cases27. Which one of the following is FALSE about the use case analysis?A. A use case analysis involves specifying a description of the use case, deriving the preconditions andpostconditions, and specifying the stepsB.One important aspect of the use case analysis is that the components of the system begin to emergeC.One important aspect of the use case analysis is that you begin to reveal the components of the systemD.The use cases from the package diagram in "Gathering System Requirements," give a good picture ofwhat the system will have to do. The team will have to analyze and understand each one. They've moved gradually from understanding the domain to understanding the system. The use cases have provided the bridgeE.Not all of the above A, C and D are trueGetting into Interactions28. Which one of the following is FALSE about modeling the interactions for the use cases?A.It is a refinement or implementation of the use caseB.After the use case analysi s, a development team turns its attention to the system components the usecases suggest. What are they? How do they interact?C.The results of this analysis should make it easy for programmers to code the system objects and theways those objects communicate with one anotherD.After you model interaction among components, the system is much closer to becoming a rea lityE.As you model the interactions, you may find that it's not appropriate to modify the use cases at thebase of these interactionsDesigning Look, Feel, and Deployment—GUIs, Deployment29. Which one of the following is FALSE about GUIs design?e cases describe system usage. Therefore, the user interface has to serve as a means ofimplementing the use casesB.Graphical user interfaces (GUIs) are not directly traceable to use casese cases drive the design of the user interface. The system has to enable the user to complete everyuse case, and the user interface is the gateway into the use casesD.Ultimately, the GUI will have to connect the to the backend code to make the system functioningE.Graphical user interfaces (GUIs)are ultimately traceable to use cases30. Which one of the following is FALSE about Deployment?A. The system architecture is use case driven because system usage ultimatelydetermines the physical nature and layout of the systemB.Deployment is ultimately traceable to use casesC.Deployment is the job of system engineerD.Deployment is the job of field engineerE.Deployment is the job of d esigner二.分析与建模(共两小题,每题15分,总分30分)1. To give the corresponding UML diagrams according to the brief introduction of the game of Submarine.A. System Use case diagramsB.Activity diagram, use swimlane if necessaryC.Sequence diagram of major use case/use case scenarioD.Class diagramGame introduction:This game is a simulation of the submarine’s attacking warship. The battle ground of the game is in the ocean. There are warships and submarines in the background. The submarines which are moving in left and right direction can launch torpedoes to attack the warship. The player can use the “Left key” and “Right Key” to control the warship’s left and right direction move s in order to escape the torpedoes.NOTE: We assume the following classes already existed: Submarine, Warship, Torpedo, BattleGroundCanvas.答案:A.System Use case diagrams(3分)Just one use case: ControlWarshipLeftAndRightActor is the playerB.Activity diagram, use swimlane if necessary(4分)the player move the Warship in horizontal direction→if Warship hit a Torpedo→game is over→else game continue(looping)C.Sequence diagram of major use case/use case scenario(4分)Actor player →Send Msg of Move() to the WarshipWarship→Send Msg of CompareLocation() to Torpedo to see if they meetSubmarine →Send Msg of fire() to TorpedoThere might be a timer update the all the components on the BattleGroundCanvasD.Class diagram(4分)Among the classes of Submarine, Warship, Torpedo, and BattleGroundCanvas,BattleGroundCanvas associates with (is composed of) Submarine, Warship, and Torpedo.Submarine associates with Torpedo.2. To give the corresponding UML diagrams according to the brief introduction about the game of SuperMarioA. System use case diagramsB.General activity diagram, use the swimlane if necessaryC.Sequence diagram of major use case/use case scenarioD.Class diagramGame introduction:●user can use the “Up key” to control Mario’s vertical-up direction jump●user can use the “Left key” and “Right Key” to control Mario’s left and right direction move●user can use the “Up key” and “Ctrl Key” to control Mario’s jump to the up-level ladder●The straight-up jumping Mario hit the ladder and knocks the Tortoise down and make it sleeping ●If a Mario who is moving in left and right direction hit a sleeping Tortoise, it will kill the Tortoise ●If a Mario hit a moving Tortoise, it will get killedNOTE: We assume that following classes existed: Mario, Tortoise, RenderingCanvas, and Ladder.答案:A.System Use case diagrams(3分)use cases:ControlMario LeftAndRightControlMarioJumpActor is the playerB.Activity diagram, use swimlane if necessary(4分)Use case Control MarioLeftAndRight:the player move the Mario in horizontal direction→if Mario hit a moving Tortoise→game is over→else if Mario hit a sleeping Tortoise game, theTortoise is killedUse case Control MarioJump:the player can make the Mario jump→ if it hit the up level Ladder and a Tortoise is sitting up→Tortoise is changing from the moving state to the sleepingstate→else if it hit the up level Ladder and no Tortoise is sitting up→nothing is going to happen(loop)the player can make the Mario jump to a up level LadderThe Activity diagram should be modeling the business process of each use case.C.Sequence diagram of major use case/use case scenario(4分)Use case Control MarioLeftAndRight:Actor player →Send Msg of Move() to the MarioMario→Send Msg of CompareLocation() to all the Tortoises to see if Mario and the Tortoises meetUse case Control MarioJump:Actor player →Send Msg of jump() to the MarioMario →Send Msg of checkIfTortoiseOnLadder() to LadderLadder→ Send Msg of sleep()to TortoisesThere might be a timer update the all the components on the RenderingCanvasD.Class diagram(4分)Among the classes of Mario, Tortoise, RenderingCanvas, and Ladder,RenderingCanvas associates with Mario, Tortoise, and Ladder.三.问答题(25分)Tell something about what you have learnt from this System Analysis and Design course.答案:Use case driven development method●System requirements→sub systems with package diagram enclosing use cases→usecased developments→Use cases→sequence diagram/collaboration diagram (15分) ●Use case drive the UI developments (5分)●Use case drive the system development (5分)。

相关主题