《软件需求分析设计与建模》A彩印.docx

上传人:b****8 文档编号:9309415 上传时间:2023-05-18 格式:DOCX 页数:12 大小:259.14KB
下载 相关 举报
《软件需求分析设计与建模》A彩印.docx_第1页
第1页 / 共12页
《软件需求分析设计与建模》A彩印.docx_第2页
第2页 / 共12页
《软件需求分析设计与建模》A彩印.docx_第3页
第3页 / 共12页
《软件需求分析设计与建模》A彩印.docx_第4页
第4页 / 共12页
《软件需求分析设计与建模》A彩印.docx_第5页
第5页 / 共12页
《软件需求分析设计与建模》A彩印.docx_第6页
第6页 / 共12页
《软件需求分析设计与建模》A彩印.docx_第7页
第7页 / 共12页
《软件需求分析设计与建模》A彩印.docx_第8页
第8页 / 共12页
《软件需求分析设计与建模》A彩印.docx_第9页
第9页 / 共12页
《软件需求分析设计与建模》A彩印.docx_第10页
第10页 / 共12页
《软件需求分析设计与建模》A彩印.docx_第11页
第11页 / 共12页
《软件需求分析设计与建模》A彩印.docx_第12页
第12页 / 共12页
亲,该文档总共12页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

《软件需求分析设计与建模》A彩印.docx

《《软件需求分析设计与建模》A彩印.docx》由会员分享,可在线阅读,更多相关《《软件需求分析设计与建模》A彩印.docx(12页珍藏版)》请在冰点文库上搜索。

《软件需求分析设计与建模》A彩印.docx

《软件需求分析设计与建模》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

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 教学研究 > 教学案例设计

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2