《软件需求分析设计与建模》选择题.docx
《《软件需求分析设计与建模》选择题.docx》由会员分享,可在线阅读,更多相关《《软件需求分析设计与建模》选择题.docx(21页珍藏版)》请在冰豆网上搜索。
![《软件需求分析设计与建模》选择题.docx](https://file1.bdocx.com/fileroot1/2023-1/26/f96f6c75-c6ba-4a1a-8dda-3af16cd8fb79/f96f6c75-c6ba-4a1a-8dda-3af16cd8fb791.gif)
《软件需求分析设计与建模》选择题
1.WhatarethefourprinciplesofOO?
A.Abstraction,encapsulation,polymorphism,modularity
B.Abstraction,polymorphism,modularity,hierarchy
C.Encapsulation,polymorphism,hierarchy,modularity
D.Abstraction,encapsulation,modularity,hierarchy
2.WhichofthefollowingareeffectivewaystomanageanOOproject?
(MultipleChoices)
A.Organizethescheduledtasksalongthelinesoftheusecases.
B.Organizethetestcasesalongthelinesoftheusecases.
C.Organizetheuser'sguidealongthelinesoftheusecases.
D.Organizedevelopmentteamsalongthelinesofthepackages.
3.Whendesigningtheuserinterfaceforanapplication,ifitisunclearwhatskillleveltheenduserofanapplicationwillpossess,whichofthefollowingistheBESTapproachtotake?
A.Definethelevelofskillthatwillberequiredbytheenduserandmakethenecessary
B.arrangementsforeducatingtheusers.
C.Definethelevelofskillthatwillberequiredbytheenduserandprovidedetailedon-linehelpthatcanbeaccessedbytheuserswhenneeded.
D.Prototypeportionsoftheuserinterfaceandperformsomeusabilityteststoidentifyanyproblemareas.Documentanyissuesintheproductreadmeandhavetheusersreaditbeforeusingtheproduct.
4.Prototypeportionsoftheuserinterfaceandperformsomeusabilityteststodeterminetheuserslevelofsatisfaction.Makeanynecessarychangesandrepeattheprocess.
Stereotypesrepresent
A.generalizationrelationships
B.designpatterns
C.themetaclassificationofUMLelements
D.noneoftheabove
StereotypescanbeappliedtowhichUMLelements?
A.classes
B.packages
C.associations
D.alloftheabove
5.JacobsonoriginallyintroducedActorsusingthefollowingsymbol:
WhichofthefollowingarelegalUMLrepresentations?
b
A.
B.
C.
D.alloftheabove
6.Whichpairsofsymbolsbothmeanclassbisapart-ofclassa(hasbyvalue)?
A.
B.
C.
D.
7.JacobsonoriginallycalledthesediagramsObjectInteractionDiagrams.ThenotationhaschangedslightlyinUML(seetheanswerkeyfordetails).WhatisthecurrentUMLtermforthesediagrams?
A.tracediagram
B.eventtracediagram
C.sequencediagram
D.noneoftheabove
8.IntheBooch93notation,abstractclasseswereshownusingthissymbol:
WhatisthenewUMLnotationforanabstractclass?
A.
B.
C.
D.
10.HowmanyofthefollowingareUMLdiagramnames?
A.collaborationdiagram
B.componentdiagram
C.deploymentdiagram
D.alloftheabove
11.Schedulingprojectactivitiessuchasfunctionalincrementsandtestcasedevelopment,whichoneofthefollowingOOADartifactsistheMOSTuseful?
A.Usecases
B.Interactiondiagrams
C.Activitydiagrams
D.Packagediagrams
E.ClassDiagrams
12.UMLinterfacesareusedto:
A.defineanAPIforallclasses.
B.programinJava,butnotinC++orSmalltalk.
C.defineexecutablelogictoreuseacrossclasses.
D.specifyrequiredservicesfortypesofobjects.
13.WhatisTRUEaboutUseCases?
(Pick3)(MultipleChoices)
A.Usecasesprovidethebasisofcommunicationbetweensponsorsanddevelopersinplanningphase
B.Usecasesdescriptionprovidesagoodsourcetoidentifydomainconcepts
C.Afully-dressedusecaseshouldincludeboth“whats”and“hows”sothattheyarereadyfor“realization”
D.Ausecaseisaninteractionbetweenauserandasystem.
14.UMLisconcernedwithobject-orientedanalysisanddesign.(Pick1)
A.True
B.False
15.Refertotheattacheddiagram,thearrowindicates:
(Pick1)
A.Refersto
B.Association
C.Dependency
D.Navigability
16.WhatarethestrengthsandweaknessofInteractionDiagrams?
(Pick2)
A.whenyouwanttolookatthebehaviorofseveralobjectswithinasingleusecase
B.theyaregoodatprecisedefinitionofthebehavior
C.theyaregoodatshowingcollaborationsamongobjects
D.theyaregoodatexploringconcurrencyandmulti-threadissues
17.Packagediagramsaredesignedfor:
(Pick3)
A.organizingalargeprojectintocomponents
B.depictingtheoverallstructureofasystem
C.assistingtesting
D.assistingdeployment
E.reducingdependency
18.Forshowingscenarios,whichoneofthefollowingOOADartifactsistheMOSTuseful?
A.SequenceDiagrams
B.ActivityDiagrams
C.PackageDiagrams
D.StateDiagrams
E.ClassDiagrams
F.CollaborationDiagrams
19.Forshowingdetaileddesignofprocedures,whichoneofthefollowingOOADartifactsistheMOSTuseful?
A.SequenceDiagrams
B.ActivityDiagrams
C.PackageDiagrams
D.StateDiagrams
E.ClassDiagrams
F.CollaborationDiagrams
20.Whichoneofthefollowinghighlightstheroleseachobjectplaysinaninteractionmodel?
A.SequenceDiagrams
B.CollaborationDiagrams
C.Alloftheabove
D.Noneoftheabove
21.Forshowinghowseveralobjectscollaborateinsingleusecase,whichoneofthefollowingOOADartifactsistheMOSTuserful?
A.InteractionDiagrams
B.ActivityDiagrams
C.PackageDiagrams
D.StateDiagrams
E.ClassDiagrams
22.Objectsandclassescanbefoundbyusingwhichofthefollowingtechnique?
A.Fromnounsinatextdescription
B.Lookforunitsofinteraction
C.Lookforplaceswherethingsorobjectscometorest
D.InterviewDomainExperts.
E.Alloftheabove
F."a"and"c"only
G."a","b"and"c"only
23.Whichofthefollowingstatementsarefalse?
(Picktwo)
A.IftheDataTypeofthefeatureisprimitive(i.e.,providedbythelanguage,likeintorstrinG.,modelasanAttribute.
B.IftheDataTypeofthefeatureisnearprimitive(i.e.,somethinglikedateorMoney),modelasanAttribute.
C.IftheDataTypeofthefeatureisnearprimitive(i.e.,somethinglikedateorMoney),modelasanAssociation.
D.IftheDataTypeofthefeatureisuserdefined(i.e.,aClass,orapointerorareferencetoaClass),modelasanAttribute.
E.IftheDataTypeofthefeatureisuserdefined(i.e.,aClass,orapointerorareferencetoaClass),modelasanAssociationwithanexternalentity.
24.Refertothediagramtoanswerthequestion.
Fromthespecificationperspective,thisqualifiedassociationwouldimplyaninterfacealonethelinesof:
A.classOrder{
publicOrderLinegetLineItems();
publicvoidaddLineItem(Numberamount);
B.classOrder{
publicOrderLinegetLineItems();
publicvoidaddLineItem(OrderLinelineItem);
C.classOrder{
publicOrderLinegetLineItems(ProductaProduct);
publicvoidaddLineItem(Numberamount,ProductaProduct);
D.classOrder{
publicObjectgetLineItems();
publicvoidaddLineItem(OrderLinelineItem);
25.Refertothediagramtoanswerthequestion.
[MakePayment]
WhatmethodsMUSTbeimplementedbytheCreditProcessorclassinthepaymentsequencediagram?
A.checkCredit,generateConfirmationCode,displayCofirmation
B.checkCredit,generateConfirmationCode
C.checkCredit,generateConfirmationCode,reserveSeat
D.checkCredit,reserveSeat,displayCofirmation
E.checkCredit,reserveSeat
26.Whichofthefollowingstatementsaretrue?
(Picktwo)
A.AbstractioniswhenaclientofamoduledoesNOTneedtoknowmorethanisintheinterface.
B.Abstractioniswhenaclientofamoduledoesneedtoknowmorethanisintheinterface.
C.Encapsulationiswhenaclientofamoduleisabletoknowmorethanisintheinterface.
D.EncapsulationiswhenaclientofamoduleisNOTabletoknowmorethanisintheinterface.
27.Whichofthefollowingstatementistrue?
(Pickone).
ThecontentsofaPackagecanbe:
A.alistofclasses
B.anotherPackagediagram
C.classdiagram
D.Alloftheabove
E."b"and"c"only
F."a"and"b"only
28.Usecase:
PurchaseTicket
Actors:
Customer
Preconditions:
Thecustomerisloggedontothesysteem.Thecustomerprofilealreadyexists.
Postconditions:
Theticketissoldandtheseatsareassignedtothecustomerandthesystemisupdated.
PrimaryFlow:
1.Theusecasebeginswhenthecustomerselectstheoptiontoviewflightinformation.
2.Thesystempromptsforthedepartureanddestinationcitiesandthedepartureandreturndates.
3.Theuserentersthedepartureanddestinationcity,departuredate,andreturndate.
4.Thesystemdisplaysalistofavailableflights,includingthefare.
5.Theuserselectstheflighttheywouldliketoreserve.
6.Thesystemdisplaysallavailablefareoptionsforthatflight.
7.Theuserselectsthefareoptiontheywouldliketoreserve.
8.Thesystemdisplaysthefarethattheuserwillpay.
9.Theuserconfirmstherate.
10.Thesystempormptsforacreditcardtype,number,nameandexpirationdate.
11.Theuserentersthecardtype,number,name,andexpirationdate.
12.Thesystemsubmitsthecreditpurchase.
13.Thesystemreservesaseatontheplanefortheuser.
14.Thesystemgeneratesanddisplaysaconfirmationcodetotheuser.
15.Theuserconfirmsreceiptofthecode.
16.Theusecaseends.
WhichofthefollowingistheBESTlistofcandidateinteractiondiagramstosupporttheusecase?
A.selectdepartureanddestinationcitiesanddepartureandreturndates,selectflight,entercreditinformation,seatisreserved,confirmationnumberisgeneratedandtheconfirmationisdisplayed
B.selectdepartureanddestinationcitiesanddepartureandreturndate.selectflight,confirmtherate,entercreditinformation,seatisreserved
C.selectflight,confirmtherate,entercreditinformation,seatisreserved,confirmationnumberisgeneratedandtheconfirmationisdisplayed
D.selectdepartureanddestinationcitiesanddepartureandreturndates,selectflight,confirmtherate,entercreditinformation,seatisreserved,confirmationnumberisgeneratedandtheconfirmationisdisplayed
29.Referthed