面向对象课后习题及答案如有错误敬请见谅.docx
- 文档编号:30011416
- 上传时间:2023-08-04
- 格式:DOCX
- 页数:49
- 大小:28.37KB
面向对象课后习题及答案如有错误敬请见谅.docx
《面向对象课后习题及答案如有错误敬请见谅.docx》由会员分享,可在线阅读,更多相关《面向对象课后习题及答案如有错误敬请见谅.docx(49页珍藏版)》请在冰豆网上搜索。
面向对象课后习题及答案如有错误敬请见谅
目录
Chapter12
Chapter23
Chapter34
Chapter46
Chapter57
Chapter68
Chapter79
Chapter811
Chapter912
Chapter1013
Chapter1115
Chapter1216
Chapter1318
Chapter1419
Chapter1521
Chapter1622
Chapter1723
Chapter1825
Chapter1926
Chapter2027
AnswerstoExercises29
Chapter1
EXERCISES
Multiple-choicequestions:
Foreachquestion,chooseoneoftheanswers.
1.Whatissoftwaremodeling?
(a)Developingmodelsofsoftware.
(b)Designingsoftwareapplicationsbeforecoding.
(c)Developingsoftwarediagrams.
(d)Developingsoftwareprototypes.
2.WhatistheUnifiedModelingLanguage?
(a)Aprogramminglanguagefordescribingobject-orientedmodels.
(b)Adiagrammingtoolfordrawingobject-orientedmodels.
(c)Agraphicallanguagefordescribingobject-orientedmodels.
(d)Astandardizedgraphicallanguageandnotationfordescribingobject-orientedmodels.
3.Whatisasoftwarearchitecture?
(a)Thesoftwareinsideabuilding.
(b)Thestructureofaclient/serversystem.
(c)Theoverallstructureofasoftwaresystem.
(d)Thesoftwareclassesandtheirrelationships.
4.Whatisasoftwaredesignnotation?
(a)Notesaboutthesoftwaredesign.
(b)Agraphicalortextualdescriptionofthesoftware.
(c)Documentationofthesoftware.
(d)Asystematicapproachforproducingadesign.
5.Whatisasoftwaredesignconcept?
(a)Agraphicalortextualdescriptionofthesoftware.
(b)Documentationofthesoftware.
(c)Afundamentalideathatcanbeappliedtodesigningasystem.
(d)Asystematicapproachforproducingadesign.
6.Whatisasoftwaredesignstrategy?
(a)Agraphicalortextualdescriptionofthesoftware.
(b)Afundamentalideathatcanbeappliedtodesigningasystem.
(c)Asystematicapproachforproducingadesign.
(d)Anoverallplananddirectionfordevelopingadesign.
7.Whataresoftwarestructuringcriteria?
(a)Fundamentalideasthatcanbeappliedtodesigningasystem.
(b)Systematicapproachesforproducingadesign.
(c)Guidelinesusedtohelpinstructuringasoftwaresystemintoitscomponents.
(d)Overallplansfordevelopingadesign.
8.Whatisasoftwaredesignmethod?
(a)Asystematicapproachforproducingadesign.
(b)Guidelinesusedtohelpinstructuringasoftwaresystemintoitscomponents.
(c)Anoverallplanfordevelopingadesign.
(d)Agraphicalortextualdescriptionofthesoftware.
9.Whatisaplatform-independentmodel(PIM)?
(a)Asoftwareplatformbeforeacommitmentismadetoaspecifichardwareplatform.
(b)Aprecisemodelofthesoftwarearchitecturebeforeacommitmentismadetoaspecificplatform.
(c)Aprecisemodelofthesoftwarearchitecturemappedtoaspecificplatform.
(d)Agraphicalortextualdescriptionofthesoftware.
10.Whatisaplatform-specificmodel(PSM)?
(a)Aspecifichardwareplatform.
(b)Aprecisemodelofthesoftwarearchitecturebeforeacommitmentismadetoaspecificplatform.
(c)Aprecisemodelofthesoftwarearchitecturemappedtoaspecificplatform.
(d)Agraphicalortextualdescriptionofthesoftware.
Chapter2
EXERCISES
Multiple-choicequestions:
Foreachquestion,chooseoneoftheanswers.
1.Howisanactordepictedonausecasediagram?
(a)Anoval
(b)Astickfigure
(c)Abox
(d)Adashedline
2.Howisausecasedepictedonausecasediagram?
(a)Anoval
(b)Astickfigure
(c)Abox
(d)Adashedline
3.Howisaclassdepictedonaclassdiagram?
(a)Aboxwithonecompartment
(b)Aboxwithoneortwocompartments
(c)Aboxwithone,two,orthreecompartments
(d)Anoval
4.Howisanassociationdepictedonaclassdiagram?
(a)Asolidlinejoiningtwoclassboxes
(b)Adashedlinejoiningtwoclassboxes
(c)Adiamondtouchingtheupperclassbox
(d)Anarrowheadtouchingtheupperclassbox
5.Howispublicvisibilitydepictedforaclasselementonaclassdiagram?
(a)+sign
(b)−sign
(c)#sign
(d)∗sign
6.WhatarethetwokindsofUMLinteractiondiagrams?
(a)Classdiagramandsequencediagram
(b)Sequencediagramandcommunicationdiagram
(c)Classdiagramandcommunicationdiagram
(d)Statechartandcommunicationdiagram
7.Whatdoesaninteractiondiagramdepict?
(a)Objectsandlinks
(b)Classesandrelationships
(c)Objectsandmessages
(d)Statesandevents
8.Whatdoesastatechartdiagramdepict?
(a)Objectsandlinks
(b)Classesandrelationships
(c)Objectsandmessages
(d)Statesandevents
9.WhatisaUMLpackage?
(a)Abox
(b)Agroupingofclasses
(c)Agroupingofusecases
(d)Agroupingofmodelelements
10.Whatdoesadeploymentdiagramdepict?
(a)Thephysicalconfigurationofthesystemintermsofphysicalclassesandphysicalconnectionsbetweentheclasses
(b)Thephysicalconfigurationofthesystemintermsofphysicalobjectsandphysicalconnectionsbetweentheobjects
(c)Thephysicalconfigurationofthesystemintermsofphysicalnodesandphysicalconnectionsbetweenthenodes
(d)Thephysicalconfigurationofthesystemintermsofphysicalcomputersandphysicalnetworksbetweenthecomputers
Chapter3
EXERCISES
Multiple-choicequestions:
Foreachquestion,chooseoneoftheanswers.
1.Whatisasoftwarelifecycle?
(a)Thelifeofthesoftware
(b)Acyclicapproachtodevelopingsoftware
(c)Aphasedapproachtodevelopingsoftware
(d)Thelifeofsoftwaredevelopedincycles
2.Whatisthewaterfalllifecyclemodel?
(a)Softwaredevelopedunderawaterfall
(b)Aprocessmodelinwhicheachphaseiscompletedbeforethenextphaseisstarted
(c)Aprocessmodelinwhichphasesareoverlapped
(d)Aprocessmodelinwhichphasesarecyclic
3.Whichofthefollowingisalimitationofthewaterfalllifecyclemodel?
(a)Softwareisdevelopedinphases.
(b)Eachphaseiscompletedbeforethenextphaseisstarted.
(c)Softwaredevelopmentiscyclic.
(d)Softwarerequirementsarenotproperlytesteduntilaworkingsystemisavailable.
4.Whichofthefollowingapproachescanovercomethelimitationinthepreviousquestion?
(a)Phasedsoftwaredevelopment
(b)Throwawayprototyping
(c)Evolutionaryprototyping
(d)Incrementaldevelopment
5.Whatisevolutionaryprototyping?
(a)Phasedsoftwaredevelopment
(b)Throwawayprototyping
(c)Risk-drivendevelopment
(d)Incrementaldevelopment
6.Whatapproachdoesthespiralmodelemphasize?
(a)Phasedsoftwaredevelopment
(b)Throwawayprototyping
(c)Risk-drivendevelopment
(d)Incrementaldevelopment
7.Whatisthegoalofsoftwarevalidation?
(a)Buildingthesystem
(b)Buildingtherightsystem
(c)Buildingthesystemright
(d)Testingthesystem
8.Whatisthegoalofsoftwareverification?
(a)Buildingthesystem
(b)Buildingtherightsystem
(c)Buildingthesystemright
(d)Testingthesystem
9.Whatis“whitebox”testing?
(a)Unittesting
(b)Integrationtesting
(c)Testingwithknowledgeofthesysteminternals
(d)Testingwithoutknowledgeofthesoftwareinternals
10.Whatis“blackbox”testing?
(a)Systemtesting
(b)Integrationtesting
(c)Testingwithknowledgeofthesysteminternals
(d)Testingwithoutknowledgeofthesoftwareinternals
Chapter4
EXERCISES
Multiple-choicequestions:
Foreachquestion,chooseoneoftheanswers.
1.Whichofthefollowingareobject-orientedconcepts?
(a)Modulesandinterfaces
(b)Modulesandinformationhiding
(c)Classes,informationhiding,andinheritance
(d)Concurrencyandinformationhiding
2.Whichofthefollowingisacharacteristicofanobject?
(a)Afunctionorsubroutine
(b)Amodule
(c)Groupsdataandproceduresthatoperateonthedata
(d)Groupsafunctionandanalgorithm
3.Whatisaclass?
(a)Anobjectinstance
(b)Theimplementationoftheobject
(c)Acollectionofobjectswiththesamecharacteristics
(d)Acollectionofobjectswithdifferentcharacteristics
4.Whatisanoperation(alsoknownasmethod)ofaclass?
(a)Specificationandtheimplementationofafunctionperformedbyaclass
(b)Specificationandtheimplementationofasubroutineprovidedbyaclass
(c)Specificationandtheimplementationofafunctionorprocedureprovidedbyaclass
(d)Specificationandtheimplementationofaninterfaceprovidedbyaclass
5.Whatisthesignatureofanoperation?
(a)Theoperation’sname
(b)Theoperation’sfunctionorsubroutine
(c)Theoperation’sname,parameters,andreturnvalue
(d)Theobject’sinterface
6.Whatistheinterfaceofaclass?
(a)Thesignatureofaclass
(b)Thespecificationofoperationsprovidedbytheclass
(c)Theinternalsoftheclass
(d)Theimplementationoftheclass
7.Whatisanattribute?
(a)Adescriptionofaclass
(b)Aninternalpropertyofaclass
(c)Adataitemheldbyaclass
(d)Aparameterofaclass
8.Whatisinformationhidinginsoftwaredesign?
(a)Hidinginformationsothatitcannotbefound
(b)Hidingadesigndecisionthatisconsideredlikelytochange
(c)Hidinginformationtomakeitsecure
(d)Encapsulatingdatainaclass
9.Whatisdataabstraction?
(a)Anothernameforinformationhiding
(b)Encapsulatingdatasothatitsstructureishidden
(c)Storingdatainadatabase
(d)Storingdatainadatastructure
10.Whatisinheritance?
(a)Amechanismforinheritingcharacteristicsfromaparent
(b)Amechanismforsharingandreusingcodebetweenclasses
(c)Amechanismforsharingdatabetweenclasses
(d)Amechanismforhidinginformationbetweenclasses
Chapter5
EXERCISES
Thefollowingquestionsrelatetothesoftwaremodelinganddesignmethod(COMET)describedinthisbook.
Multiple-choicequestions:
Foreachquestion,chooseoneoftheanswers.
1.Whatiscarriedoutduringrequirementsmodeling?
(a)Functionalrequirementsofthesystemaredescribedintermsoffunctions,inputs,andoutputs.
(b)Functiona
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 面向 对象 课后 习题 答案 错误 敬请 见谅