《软件需求分析设计与建模》A彩印.docx
《《软件需求分析设计与建模》A彩印.docx》由会员分享,可在线阅读,更多相关《《软件需求分析设计与建模》A彩印.docx(12页珍藏版)》请在冰点文库上搜索。
《软件需求分析设计与建模》A彩印
诚信应考,考试作弊将带来严重后果!
华南理工大学期末考试
《软件需求分析、设计与建模》试卷A
注意事项:
1.考前请将密封线内各项信息填写清楚;
2.所有答案请直接答于答题纸上;
3.考试形式:
闭卷;
4.本试卷共四大题,满分100分,考试时间120分钟。
题号
一
二
三
四
五
总分
得分
评卷人
一、单项选择题(本大题共15题,每题2分,共30分)
注:
所有的选项中,只有一个答案最符合题目要求,多选、错选均不得分,请将所选的答案依照题号对应填入下表。
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
1.WhichkindofdiagraminUMLcanbeappliedtodescribeexternalsystemeventsthatarerecognizedandhandledbysystemoperatorsinthecontextofausecase?
A.StatechartDiagram.
B.ActivityDiagram.
C.SequenceDiagram.
D.CollaborationDiagram.
2.Whydowemodel?
A.Helpstovisualizeasystem.
B. Givesusatemplateforconstructingasystem.
C.Documentsourdecisions.
D.Alloftheabove.
(Helpsustovisualizeasystemaswewantittobe.
Permitsustospecifythestructureorbehaviorofasystem.
Givesusatemplatethatguidesusinconstructingasystem.
Documentsthedecisionswehavemade.)
3.Whatphrasebestrepresentsacompositionrelationship?
A.Isapartof.B.Isakindof.
C.Isanonlypartof.D.Isaninheritanceof.
4.Whichofthefollowingisgoodpracticetousewhiledesigningforreuse?
A.Defineapersistenceframeworkthatprovidesservicesforpersistingobjects.
B.Usedesignpatterns,whereincompletesolutionsarealreadydefined.
C.Usecontrollerobjectstocontroltheflowofprocessesinthesystem.
D.Assignresponsibilitiestoclassessuchthatcouplingbetweenthemremainshigh.
E.AandB.
F.A,BandC.
G.A,B,CandD.
5.WhichofthefollowingstatementisNotTRUE?
A.Asubsystemisapackagethathasseparatespecificationandrealizationparts.
B.Asubsystemisadiscreteentitythathasbehaviorandinterfaces.
C.Asubsystemcanbeidentifiedbythestereotype<>.
D.Asubsystemisapackagethathasspecificationpartonly.
6.InanOOsystem,itisNOTdesirabletoassignresponsibilities:
A.relativelyevenlyacrosstheclasses.
B.moreheavilyinafewcontrollingclasses.
C.accordingtointeractiondiagrammessaging.
D.accordingtotheusecasediagram.
E.AandB
F.B,CandD
7.Forshowinghowseveralobjectscollaborateinsingleusecase,whichoneofthefollowingOOADartifactsistheMOSTuseful?
A.InteractionDiagramsB.ActivityDiagrams
C.StateDiagramsD.ClassDiagrams
8.WhatmethodsMUSTbeimplementedbytheCreditProcessorclassinthepaymentsequencediagram?
A.checkCredit,generateConfirmationCode,displayCofirmation.
B.checkCredit,generateConfirmationCode.
C.checkCredit,generateConfirmationCode,reserveSeat.
D.checkCredit,reserveSeat,displayCofirmation.
9.WhichofthefollowingisTRUEaboutadeploymentdiagram?
A.Sincethereisalwayssomekindofresponsetoamessage,thedependenciesaretwo-waybetweendeploymentcomponents.
B.Dependenciesbetweendeploymentcomponentstendtobethesameasthepackagedependencies.
C.DeploymentdiagramsareNOTtobeusedtoshowphysicalmodulesofcode.
D.DeploymentdiagramsdoNOTshowphysicaldistributionofasystemacrosscomputers.
10.WhenusingOOADartifactstoorganizeandassignteamresponsibilitiesonaproject,itisBESTto:
A.evenlydistributeusecasesamongteammembersandhavethemworkasindependentlyaspossibleinordertominimizecodedependencies.
B.designateoneteamforimplementinginteractiondiagramsrelatedtothe"commoncodepath"andanotherteamforimplementinginteractiondiagramsrelatedto"codepathvariations"(forexample,conditionalorerrorpaths).
C.divideteamsaccordingtothelayersinthesoftwarearchitectureandhavethemworkasindependentlyaspossibleinordertominimizedependenciesbetweenthelayers.
D.divideteamsaccordingtopackagediagramdependenciesandutilizeusecasestoscheduletheworkfortheindividualteammembers.
11.ToMOSTeffectivelymanageteamsworkingondifferentpackageswithinalargeproject,whichoneofthefollowingshouldbeTRUE?
A.Onetechnicalleadershouldcontroltheprojectdetailsandcommunicatedecisionstothedifferentteams.
B.Theteamleadersshouldfocusonwhichtypeofdatabase(DB2UDB,Oracle,Sybase,orInstantDB)isused.
C.Theteamleadersshouldfocusonqualitydesignsfortheinternalsoftheirpackages,mentoringtheirteammembers.
D.Communicationsbetweentheteamsshouldbeminimizedtoreduceoverheadburdenswhiletheyworkonseparate,independentusecasesfortheirpackages.
12.UsecasesCANNOTbeusedfor:
A.modelingthenonbehavioralaspectssuchasdatarequirements,performanceandsecurity.
B.capturingbehavioralaspectofasystem.
C.capturingfunctionalaspectofasystem.
D.capturingthebusinessprocessathighlevel.
13.Whatkindofassociationbetweenthe2classesdescribedinjavabelow?
publicclassA{
privateArrayList_Bs=newArrayList();
publicA(_Bs:
B){
this._Bs.add(_Bs);
}
}
publicclassB{
…;
}
A.InheritanceB.Dependency(
C.CompositionD.Aggregation
14.Referringtothediagrambelow,whichofthefollowingisTRUE?
A.Class"Teacher"isaparentclassofclass"Professor"andclass"Lecturer".
B.Instanceof"Professor"hastorealizedallofthebehaviorsof"Teacher".
C.Thereareinstancesof"Teacher"inthesystem.
D."Professor"isakindof"Teacher"andsodoesthe"Lecturer".
组合composition:
containsa聚合aggregation:
hasa
继承inheritance:
isa或者isakindof
15.Duringtheprocessofrequirementengineering,thesoftwareengineerandtheuserofthesystemshouldworktogethertodefine
A.visiblecontextofusingthesystemfortheuser
B.crucialsoftwareproperties
C.inputandoutputofthesystem
D.AandB
E.A,BandC
二、填空题(共10分)
1.Aisa(n)actor.
2.Bisa(n)boundaryclassobject.
3.“1.1.3”isa(n)发给‘自身’localinvocation__p117_message
4.“1.1”isa(n)createobjectmessage.
5.Thedottedlinebelowtheboxesiscalledthe_lifeline__.
6.Therectanglebelowtheboxesiscalledthe控制焦点的执行规格条p166
7.Ifthissystemrepresentedpartofawebsite,whatwouldBmostlikelyrepresent?
界面类
8.WhyisClowerthanA,B,D,andE?
P168“调用操作符new并调用其构造器”
9.WhyareAthroughGunderlined?
区分对象名和类名
10.Whichofthefollowingisaninvalid(无效的)sequenceofmessages,accordingtothediagram?
(B)
A.1,1.1,1.1.1,1.1.2,1.1.3,1.1.4,1.1.4.1
B.1,1.1,1.1.1,1.1.2,1.1.3,1.1.4,1.1.4.1,1.1.5,1.1.5.1
C.1,1.1,1.1.1,1.1.2,1.1.3,1.1.5,1.1.5.1
三、问答题(本大题共4小题,共25分)
1.Pleasedescribetherisksofthesoftwaredevelopingandtheapproachestoavoidingthem(Score8).
(1)SomeRiskTypes:
Technical/Architecturalrisks
Unproventechnology,uncertainscope
Resourcerisks
People,skills,funding
Businessrisks
Competition,ROI,supplierinterfaces
Schedulerisks
Projectdependencies
Only24hoursinaday
(2)approachestoavoidingthem
DevelopIteratively
ManageRequirements
UseComponentArchitectures
ModelVisually(UML)
ContinuouslyVerifyQuality
ManageChange
2.PleaseoutlinethephasesandworkflowsofRUP(Score5).
4phasesand9workflows.
3.Pleasenameandbrieflydescribethe“4+1view”ofsoftwarearchitectureadoptedinRUP(Score5).
Use-caseview+Logicalview+Implementationview+Processview+Deploymentview】
用例视图,逻辑视图,实现视图,过程视图+部署视图
4.PleasedescribetheusecaseanalysisstepsinOOA/D(Score7).
Ans:
♦SupplementtheUse-CaseDescription
♦ForeachUse-CaseRealization
▪FindClassesfromUse-CaseBehavior
▪DistributeUse-CaseBehaviortoClasses
♦Foreachresultinganalysisclass
▪DescribeResponsibilities
▪DescribeAttributesandAssociations
▪QualifyAnalysisMechanisms
♦UnifyAnalysisClasses
♦Checkpoints
这是设计的
.Describeinteractionbetweendesignobjects
Simplifysequencediagramsusingsubsystems
Describepersistencerelatedbehavior
Refinetheflowofeventsdescription
Unifyclassesandsubsystems
四、判断改错题(本大题共5分)
Supposetheemployeeofasoftwarecompanycanbeclassifiedbysomerolesuchascoder、projectmanagerandsoftwareengineer.TheUMLdiagrambelowissuggestedasasolutiontomeetthechangeoftheroleofacompanyemployee.Pleasejudgewhetherthesolutionistrueornotandexplainwhyyoumakesuchajudgment.Pleasegiveyourcorrectionofthediagramwhenitiswrong(Score5).
五、建模分析题(本大题共30分)
Supposeyouareaskedfordevelopingapointofsale(POS)systemusingOOA/Dtechnologies.APOSsystemisacomputerizedapplicationusedtorecordsalesandhandlepaymentsanditistypicallyusedinaretailstore.Processingsalewouldbeoneofthekeyfunctionsthatthesystemhastoperform.Pleasemodelthekeyfunctionviathemethodologyofobject-orientedanalyzeanddesign.
Supposethesimplifiedcontextofprocessingsaleisunder-consideration:
acustomerarrivesatacheckoutofaretailstorewithitemstopurchase.ThecashierusesregisterofthePOSsystemtorecordeachpurchaseditem.Eachoftheitemsisdescribedaproductspecification,whichbelongstoaproductcatalogue.Thesystempresentsarunningtotalandline-itemdetails.Thecustomerenterspaymentinformation,whichthesystemvalidatesandrecords.Thesystemupdatesinventory(inventory:
Thequantityofgoodsinstock.).Thecustomerreceivesareceiptfromthesystemandthenleaveswiththeitemsandthesaleisloggedonaledgerwithwhichthemanagercancheckedtheinformationforaperiodoftime.
1.DrawaUMLusecasediagramforthesystemincludingtheirrelationships(Score5).
2.Givetheclassdiagramwiththeanalysisclassesrepresentingbusinessentitiesinvolvedinthesystem(namesandbriefdescriptionsonly–noattributesoroperations),alongwiththeirrelationshipsandmultiplicitie