A.5,6
B.5,5
C.6,5
D.6,6
第1题
A.publicintblipvert(intx){return0;}
B.privateintblipvert(intx){return0;}
C.privateintblipvert(longx){return0;}
D.protectedintblipvert(longx){return0;}
E.protectedlongblipvert(longx){return0;}
F.protectedlongblipvert(intx,inty){return0;}
第2题
zethattheycanreducethenumberofmethodsintheAPIwithoutlosinganyfunctionality.Iftheyimplementthenewdesign,whichtwoprincipleswilltheybepromoting?()
A.Loosercoupling
B.Tightercoupling
C.Lowercohesion
D.Highercohesion
E.Weakerencapsulation
F.Strongerencapsulation
第3题
Acompanyhasabusinessapplicationthatprovidesitsuserswithmanydifferentreports:receivablesreports,payablesreports,revenueprojects,andsoon.Thecompanyhasjustpurchasedsomenew,state-of-the-art,wirelessprinters,andaprogrammerhasbeenassignedthetaskofenhancingallofthereportstousenotonlythecompany’soldprinters,butthenewwirelessprintersaswell.Whentheprogrammerstartslookingintotheapplication,theprogrammerdiscoversthatbecauseofthedesignoftheapplication,itisnecessarytomakechangestoeachreporttosupportthenewprinters.
Whichtwodesignconceptsmostlikelyexplainthesituation?()
第4题
A.Raccoonis-aMammal.
B.Raccoonhas-aMammal.
C.BabyRaccoonis-aMammal.
D.BabyRaccoonis-aRaccoon.
E.BabyRaccoonhas-aMammal.
F.BabyRaccoonis-aBabyRaccoon.
第5题
A.publicvoidfoo(){}
B.publicintfoo(){return3;}
C.publicTwofoo(){returnthis;}
D.publicOnefoo(){returnthis;}
E.publicObjectfoo(){returnthis;}
第6题
A.Compilationfails.
B.Anexceptionisthrownatruntime.
C.TheattributeidintheItemTestobjectremainsunchanged.
D.TheattributeidintheItemTestobjectismodifiedtothenewvalue.
E.AnewItemTestobjectiscreatedwiththepreferredvalueintheidattribute.
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!