《面向对象分析与设计》试卷OOA&OODFinalExamStudentNo._________________Name________________Score____________1.SingleChoice&ShortAnswer(eachchoiceworths2points,eachblankworths1points,25pointstotal)1)AUMLcompositionis(D)A.aprocessforinstantiatingUMLmodelsB.theinterrelationamongcomponentsandpackagesC.aspecificdependencyamongobjectsD.anaggregationwithadditionalsemantics2)WhichofthefollowingarenottheExtensionMechanismsofUML?(C)A.TaggedValueB.ConstraintC.ConcurrentD.Stereotype3)ConstraintscanberepresentedinUMLby:(A)A.[textstring]B.{textstring}C.notesD.constraint4)UMLinterfacesareusedto:(D)A.defineanAPIforallclasses.B.programinJava,butnotinC++orSmalltalk.C.defineexecutablelogictoreuseacrossclasses.D.specifyrequiredservicesfortypesofobjects.5)WhichofthefollowingareNOTTRUEaboutthestrengthsandweaknessesofactivitydiagrams?(A)A.Activitydiagramsaregoodatenumeratingobjectcollaborationstoaccomplishatask.B.Activitydiagramsaregoodatexploringtheinteractionsrelatedtooneormoreusecases.C.Itisdifficulttodiscernexactlyhowtomaptheactivitydiagramactionstoobjectmodelspecifics.D.Sinceactivitydiagramsallowparallelbehaviormodeling,theyaregoodforworkflowmodeling.6)Whatistrueaboutmessagesinscenarios?(B)A.Theoperationofthecallingobject.B.Theoperationofthecalledobject.C.Itissentbytheactortothesystem.D.Itissentbythesystemtotheactor.7)dynamicmodeldescribethesystemchangewithtime.includes:____状态图_____,活动图__________and____________交互图_.8)WhatarethefourviewinRoseModel?_____logical_________,_____usecase____________,_____component_________and______deployment__________.9)WhichtwoUMLdiagramscanrepresentconcurrentprocessing?_______activity_______and________sequence________.10)TheUMLarchitectureisafour-layermetamodelingarchitecture.Thisarchitectureisaproveninfrastructurefordefiningtheprecisesemanticsrequiredbycomplexmodels,Whichinclude_____application___________,_______business__________,________middleware________and_______systemsoftware__________.2.ExplainthefollowingConceptsandGiveanExample.(eachquestionworths3points.15pointstotal)1)CollaborationDiagrams主要描述参与交互的对象结构间相关的信息的图。a)Generalization一个用例可以可以被派生为一个或多个子用例2)TransitionAtransitionisarelationshipbetweentwostatesindicatingthatanobjectinthefirststatewillperformcertainactionsandenterthesecondstatewhenaspecifiedeventoccursandspecifiedconditionsaresatisfied.3)Stereotype构造型可以定义自定义类型,扩展UML的词汇4)Encapsulation对外公开接口,但是隐藏对象属性和实现细节。3.Drawclassdiagramforthefollowingscenario.Besuretoincludemultiplicitiesontheendsoftheconnectors.(10points)PetStoreThefollowingscenarioisforapetstore.Eachpetstorehasupto20furry(毛皮的)friendsand10birds.Eachpethasavaccination(疫苗)history.Furryfriendsareeitherdogsorcats.Eachfurryfriendhasamicrochip(微型芯片)implantforidentification.Eachmicrochiphasauniqueidnumber.4.Pointoutthewrongplaceinthefollowingdiagram.(10points)ClassDiagram:分析类/分析类图5.OOModeling(40Pointstotal)Considerthefollowingproblem:基于WEB的网上购物系统越来越受到人们的关注,例如小型电子商务订单处理系统,使得客户可以给购物推车添加项目,查看购物推车,查看具体项目,购买商品,删除购物车中的项目,浏览商品,提供反馈单;库房经理可以进行盘点,返回库房项目,提供订单;采购经理可以增加销售的新项目,删除销售项目,购买库存。Question:对该“订单处理系统”进行面向对象分析并运用UML建模设计出Use-Casediagram。