软件工程期中试题卷解答文档格式.docx

上传人:b****3 文档编号:17895883 上传时间:2022-12-11 格式:DOCX 页数:11 大小:154.54KB
下载 相关 举报
软件工程期中试题卷解答文档格式.docx_第1页
第1页 / 共11页
软件工程期中试题卷解答文档格式.docx_第2页
第2页 / 共11页
软件工程期中试题卷解答文档格式.docx_第3页
第3页 / 共11页
软件工程期中试题卷解答文档格式.docx_第4页
第4页 / 共11页
软件工程期中试题卷解答文档格式.docx_第5页
第5页 / 共11页
点击查看更多>>
下载资源
资源描述

软件工程期中试题卷解答文档格式.docx

《软件工程期中试题卷解答文档格式.docx》由会员分享,可在线阅读,更多相关《软件工程期中试题卷解答文档格式.docx(11页珍藏版)》请在冰豆网上搜索。

软件工程期中试题卷解答文档格式.docx

6.Thedatadictionarycontainsdescriptionsofeachsoftware()B

A.configurationitemB.dataobjectC.diagramD.notation

7.Thestatetransitiondiagram()A

A.indicatessystemreactionstoexternalevents

B.depictsrelationshipsbetweendataobjects

C.depictsfunctionsthattransformthedataflow

D.indicateshowdataaretransformedbythesystem

8.Whichofthefollowingisnotanareaofconcerninthedesignmodel?

A.architectureB.dataC.interfacesD.projectscope

9.Aprogramdesignlanguage(PDL)isoftena()A

A.combinationofprogrammingconstructsandnarrativetext

B.legitimateprogramminglanguageinitsownright

C.machinereadablesoftwaredevelopmentlanguage

D.usefulwaytorepresentsoftwarearchitecture

10.Whattypesoferrorsaremissedbyblack-boxtestingandcanbeuncoveredbywhite-boxtesting?

()B

A.behavioralerrorsB.subtlelogicerrorsC.performanceerrorsD.inputerror

11.ToachievehighmodularityofsoftwarecomponentsyouneedC

A.highcouplingandhighcohesion

B.highcouplingandlowcohesion

C.lowcouplingandhighcohesion

D.lowcouplingandlowcohesion

12.Whichofthefollowingisnotanobjectiveforbuildingananalysismodel?

C

A.definesetofsoftwarerequirements

B.describecustomerrequirements

C.developanabbreviatedsolutionfortheproblem

D.establishbasisforsoftwaredesign

13.下图所示的软件模块结构图,该软件的宽度为()。

D

A.1B.3C.5D.6

14.面向对象的软件工程中,识别主类主要靠()。

A

A.经验B.技巧C.启发式规则D.面向对象分析理论

15.用例图是()。

D

A.系统特定行为的描述

B.系统行为之间交互的描述

C.系统和外部实体交互的描述

D.系统特定行为和外部实体以及和其他行为交互的描述

 

二、简答题:

1.Whatarethedifferencesbetweengenericsoftwareproductdevelopmentandcustomsoftwaredevelopment?

1.2

A:

Theessentialdifferenceisthatingenericsoftwareproductdevelopment,thespecificationisownedbytheproductdeveloper.Forcustomproductdevelopment,thespecificationisownedbythecustomer.Ofcourse,theremaybedifferencesindevelopmentprocessesbutthisisnotnecessarilythecase.

2.Whatarethefourimportantattributeswhichallsoftwareproductsshouldhave?

1.3

Forimportantattributesaremaintainability,dependability,efficiencyandusability.

3.Asoftwarearchitecturedescribesahigh-leveldesignviewofasoftwaresystem.Whataretheadvantagesofexplicitlydescribingthearchitectureindependentlyfromtheimplementation?

参考答案(不够准确):

Thearchitecturemayhavetobedesignedbeforespecificationsarewrittentoprovideameansofstructuringthespecificationanddevelopingdifferentsub-systemspecificationsconcurrently,toallowmanufactureofhardwarebysub-contractorsandtoprovideamodelforsystemcosting.

4.Explainwhyitisimportanttoproduceanoveralldescriptionofasystemarchitectureatanearlystageinthesystemspecificationprocess.2.4

Anoverallarchitecturaldescriptionshouldbeproducedtoidentifysub-systemsmakingupthesystem.Oncethesehavebeenidentified,theymaybespecifiedinparallelwithothersystemsandtheinterfacesbetweensub-systemsdefined.

5.Requirementsshouldstatewhatasystemshoulddo,withoutstatinghowitshoulddoit.Whyisthisdistinctionuseful?

6.Defineblackboxandwhiteboxtesting.Whataretheadvantagesofeachapproach?

Whyarebothnecessary?

7.Fullpathcoveragetestingrequiresthateverypossiblepaththroughthecodebetestedatleastonce.Whyisfullpathcoveragetestingdesirable?

Forthecodefragmentabove,howmanytestcaseswouldbeneededforfullpathcoverage?

Whymightfullpathcoveragebeimpossibletoachieveforsomeprograms?

8.Whyissoftwaremaintenancedifficult?

Whyisitnecessary?

9.Ifyouwantdevelopaninteractivesystemthatallowsrailwaypassengerstofindtraintimesfromterminalsinstalledinstations,whichgenericsoftwareprocessmodelthatmoresuitabletomanagementthedevelopmentprocess?

Andwhy?

InteractivetimetableSystemwithacomplexuserinterfacebutwhichmustbestableandreliable.Shouldbebasedonthrow-awayprototypingtofindrequirementstheneitherincrementaldevelopmentorwaterfallmodel.

10.Describefourtypesofnon-functionalrequirementsthatmaybeplacedonasystem.Giveexamplesofeachofthesetypesofrequirement.

Therearemanypossibilitieshere.SomesuggestionsareshowninFigure6.4.

Figure6.4Non-functionalrequirements

Non-functional

requirement

Description

Performance

Performancerequirementsset

outlimitstotheperformance

expectedofthesystem.These

maybeexpressedindifferent

waysdependingonthetypeof

systeme.g.numberof

transactionsprocessedper

second,responsetimetouser

requests,etc.

Thesystemmustprocessatleast150

transactionspersecond.

Themaximumresponsetimeforanyuser

requestshouldbe2seconds.

Implementation

Definesspecificstandardsor

methodswhichmustbeusedin

thedevelopmentprocessforthe

system

Thesystemdesignmustbedevelopedusing

anobject-orientedapproachbasedonthe

UMLprocess.

ThesystemmustbeimplementedinC++,

Version3.0.

Usability

Definesrequirementswhich

relatetotheusabilityofthe

systembyend-users.

Alloperationswhicharepotentially

destructivemustincludeanundofacility

whichallowsuserstoreversetheiraction.

(Thisisanexampleofafunctional

requirementwhichisassociatedwithanonfunctional

requirement)

destructivemustbehighlightedinredinthe

systemuserinterface.

Safety

Safetyrequirementsare

concernedwiththeoverallsafe

operationofthesystem

Thesystemmustbecertifiedaccordingto

HealthandSafetyRegulationsXYZ123.

三、综合题

1.Thefollowingtableshowstheestimatedactivitydurationsandpre-requisitesforaprojectdevelopment.

Activity

Description

Duration(weeks)

TaskPre-requisites

T1

RequirementsElicitation

4

T2

Analysis&

Design

3

1

T3

Installhardware

2

T4

DesignReview

T5

Code&

UnitTest

4

1,2,3,4

T6

IntegrationTest

5

T7

PortingSoftware

4,6

T8

Documentation

6,7

T9

AcceptanceTest

5,6,7

T10

Install&

Train

9

Drawaactivitycharttodeterminetheearliestweekofcompletion,theactivitieswhichhavesomefloatorslack,andtheactivitiesonthecriticalpath.Drawabarchartshowingtheprojectschedule.

2.绘制打的状态转换图

3.某校教务系统具备以下功能,输入用户ID号及口令后,经验证进入教务管理系统,可进行如下功能的处理:

查询成绩:

查询成绩以及从名次表中得到名次信息。

学籍管理:

根据学生总成绩排出名次信息。

成绩处理:

处理单科成绩并输入成绩表中。

就以上系统功能画出0层,1层的DFD图。

教务系统0层DFD图

教务系统1层DFD图

(身份验证处理框对应有一个用户信息的存储,名次表和学生成绩表应用存储的表示法)

4.一个自动化图书馆目录的软件系统要被开发。

这个系统将要包含图书馆中所有图书的信息,要求该系统对图书管理员、借阅者和读者都可用。

该系统应该支持目录浏览、查询,允许用户发送消息给图书管理员预订一本在借图书。

识别出系统描述中应考虑的基本视点,并用视点继承图(层次图)来描述它们之间的关系。

6版6.2题

TheviewpointsareshowninFigure6.1.Notethatsystemmanagement(i.e.those

responsibleforinstallingandmaintainingthecomputersystemareaviewpointas

wellaslibrarystaffandlibraryusers.Libraryusershavebeenseparatelyidentifiedas

browsersandsearchersastheseoperationstypicallyrequiredifferenttypesofservices.

Figure6.1Viewpointhierarchydiagram

5.Developanobjectmodel,includingaclasshierarchydiagramandanaggregationdiagramshowingtheprincipalcomponentsofapersonalcomputersystemanditssystemsoftware.8.8

Therearemanypossibleorganizationsfortheclasshierarchy.IshowasimpleoneinFigure8.4withonlytwolevels.Athree-levelhierarchywouldalsobeOKbutmorethanthatwouldbetoomuch.Theaggregationdiagramshowsthepart-ofrelationshipsbetweenobjects.ThisisshowninFigure8.5.Obviously,furtherdecompositionofthelowestlevelispossible.

Figure8.4ClasshierarchyforaPC

Fig8.5AggregationdiagramforaPC

6.Developasequencediagramshowingtheinteractionsinvolvedwhenastudentregistersforacourseinauniversity.Coursemayhavelimitedenrolment,sotheregistrationprocessmustincludechecksthatplacesareavailable.Assumethatthestudentaccessesanelectroniccoursecataloguetofindoutaboutavailablecourses.8.9

SeeFigure8.6.

Figure8.6Sequencediagramofcourseregistration

7.Whatisthefundamentaldifferencebetweenafat-clientandathin-clientapproachtoclient-serversystemsdevelopment?

12.2

Inafat-clientsystem,someoftheapplicationprocessingiscarriedoutontheclientwhereasinathinclientsystemonlytheuserinterfaceisdisplayedontheclientandalloftheapplicationprocessingiscarriedoutontheserver.

8.UsingtheUMLgraphicalnotationforobjectclasses,designthefollowingobjectclassesidentifyingattributesandoperations.Useyourownexperiencetodecideontheattributes

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

当前位置:首页 > 法律文书 > 调解书

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1