《江苏开放大学本科计算机科学与技术专业060219JAVA程序设计△期末试卷.docx》由会员分享,可在线阅读,更多相关《江苏开放大学本科计算机科学与技术专业060219JAVA程序设计△期末试卷.docx(72页珍藏版)》请在优知文库上搜索。
1、I.在Ma语言中,(解)是幽林的元更2.下排衣晡(右衿命名撤冲,正鼬提(常购部烟).1切a期阳遨祥且树瞰住网(clais).4 .GZile陋懒4触梆树谕眇K妫1卜5 .晌6ile(!e);忡您ft!e第行(V).6 关FMTP三4三三(定义ttjm).7 .在S语各礼恤胸犍阳将AM?(.aI迎).&定妙5M辕地的曲公(P11Xted).9.卜潮性都茄桃,IIW1(语杯妍娘版).IQ在如中,(IWp).晦矶阙三勤般氓/南报设有例S3淀义邨让inia11=(I.13):顺帏6幽粒播鼬足a虢阮蝌卜标为15).U,F峨干方法的帆,不正却提三4次义律曲法也可Mili燔硼.崛方法).12下况树1+2+&
2、”+3三(3).13设a、b为IaK里翅,x、F为fll3Jft小为r翔咬8且它眼以韧临MTm研J三提(WltCh(CtrD1*.柳晒愀ti微醍3),注Mile(-!=()15 卜州解体询费是.iMFO,内0:WyX;/;MileGgf16 .区分划哦彷涉犯tM期减势犍和酹.liFytl1.不必鼬今是(if7df鄢O而娜醒IteiUil群族).18 .运行Hfi冏粥.会产生什么异常(AriIhBetiCElDePdg).IXbliCclassEK(pblicstaticvoidmin(Stri%as(intx=0;inty=5:1.ntO2s0.U4);intp=z4:)_19 .定j1.恰f
3、tleWttPI.您吊强好?(JblicfiralstaticdlePl=I14;).20 .在新S中,麻蟠蚊儆恨姗峭韩曲finally刊I烷也21 .为毋类定义力限回三施八帆附送知何以访河谈帅谢诔头就以为(staticndf).22 .僦杼玳玛田E族代妈&1E的文件名(RWm.classAlwidnllxJ10lstancut.friln(,hxllinclassA,);JlPbliCclassBlvoidnnh或0sttcut.ffincln(,hEinclass);)iilicstaticvoidrBin(Stringas)smou1.kinUnGuinOinclass:)及杼Je殿札m
4、理闪断朝(从事向始物崛).2T三4哥十蝴向SW技术(BufferKftJtpJtStnOT.隔侬不通的(ftetract和fi政州雕保).*、当电微椀她就MMMWfrS(取而It).27JPirel御而聆理勒(FI阑邓Ut.M好照的缴,下班献中技国的收(粕蔺崛触网由触蝇匕力门定训网.叽随阚例潮渤?(&pUe.皴Xf奥31,下联琢粼Filc獭魁书哂峨(File寿11W奴憎麻.IfnniJiB千(百位心的渣土i赖;-m/3Wld砌拗11薮件氐会产生(D)的儆件?扪4名处(3个字抑蚊伟打军名为UaSS)?&以下腿跳嫣M1.含坳是(*dledDouble.WV三;)7.下颁网,布于JHw炼C胞的一睢(
5、.Rvacsiing).&撵厢蹴弹副廊M:件(A1.dies、Aldass和KChBS文件)?Fi琳打防三敏加MX命令?/./)11.下面(雌行醐!就的默(tnje)P1.bIiCclassHPlWiCstaticvoidIBin(StringuargsIM=M0;Ifo=aa:SysIeftout.Hindnfth.equals);classJ(inti=1(0;K下,献阚曲献(3).intx=ktfile(-x!=y)()17.ilFm三itch)CastOiSyst(cw.printIn(*(xndition(T):cselst(xtprintInCCaxIition:0(2tst(no
6、utPrintlnCtkndition2);CaseikMsteicutrintlnCCditiofiJ);bnk:kilt:Systmutprintln(,ftheCotion*):)当nl三C0.I.2,3)i,ftaQaiition3l&Maini受阴阀fc相窗tI.!HIif(ttw)l)胎渊利精即19.下,福的双怖?掷话颇难到淡除渊?(priwe)21.给出Tffi的书H弼:PiblicclassMI3(privatefloata;plicstaticvoidn()28Mft:麻被玳电矶个为境物三M似Clg独我帆网30m:悔炯则谢,格三僦第咫1.fiiympdIicclassSmMI
7、iCstaticvoidron(Stringirs)(dcd)leSiIl=Q0:tor(iri三1;ilicstaticw)dmin(Strirlesun=(1.0:far(inti=l:i=100;i*+)沏*=i,i;st-acut.prindn(sufW;)辎渺做,毅:釉羽雕到K的恸和.工期姒丽PMicclassSuiPIbIicstaticvoidrainKtringagsl)(doublesun=(10;tr(inti三1;i=*Asm);)蝌院翻她跳.滕imlIitI(I)IfiiAKiMJiffi.4.WTS泌IiCclassSmPlbIiCstaticvoidmin(Stri
8、ngags(lcsiti=(10;tor(inti三;i=lC0;i11)sun*三1.0/痴h】i;stji.ftinclna11=*-i;)脚皖蜥助跳答宪耀IUM3,WlOO的值相仰8出工触姒球加IrlSiTR1.ia;P1.bIiCClassTestl(PiblicstaticvoidIBinGlri同ms)Iinti,s=0:into三(24,6&1。,12.N,%18);for(i=0:iaIegth:ih)if(a(iV30)Sroi:SySmout.frintlns=*);)ifrS二36.&新姒Tmirxrt切a,i;b!icclasssix(PlbliCsuticvoidai
9、nStrinargsD(ABs=MAMat!*.*l;nJSOlkr*);S),stenout.prindns.t6trig();)claIStringsi;Strings2;PibliCABtStrincstr,Stri咏strt)(si=strl;血=stt2:)MicStriret6trijng()(returnsi+公)运阳乐Great!ImJSU1.er7.imwiqx11、说ai*;jblicclassic(PIbliCstaticvoidIBin(Stringas)ISSC13jwSW&tCI(10.2(1.):bj.sk0:!)claSUlwC屣intb;S)CTCass(i1
10、1tM11t)Ihb;HclassSubClefisextxisSt(叫er(,);C=B;HclassSuISdflassexterfeSitClassIinta:Sd&Klc5(int,in)Systmout.criMln三*a%护bfc):)1ihf一tf=flb=3)=3).&下,冏胭谈呆知泌IiCclassClaIinta=U,2,i5J;voidoutO(tor(intj=0:ja.lth:j+)Sy$10art.k旅(aJ一?;)(IbhC$xaiicidmin(StrineOw(Class11y=gfIassO;rw.xrt0;)械m59.刚以T三写IH肺结为fclicclas
11、sIoFriVatefltwit;privatestaticStrineE;PibliCvoidseteicfl(Btwight)加哂加=wvt;)privatewidwtstn,cut.printlnnp*ftJwit9f1;)PdMiCstaticvoidBBin(SlringOangs)(TEnl?溪!苗:Tcoat=Ig7t0;Ca1.SetAei由I(20);cat.oR0;)_答黑:领制泾31D斤Ift网速以刖汽轴揖拒施pblicclas&Sui(PIbliCstaticvoidainIIk(JMesun=0.0;for(irrti-1;il100;i11)sa1.O/JIicst
12、aticvoidminSiriigargsJMrir.tf.x=:if(x,A1)lJF:度;)dse(尸筷:二案:)Swmout.gnUn(中丁用:)答黑你快乐风s三1.赠解,从侬U的他氏瞰GH算华邮及F的值微出J滕公式如下:F(95)i11(tJirri1.ia”:PiblicClassS34(plicstaticXndmm(StringOargsthrc5KtnxIXlm(IrpHSmwifeaiHisr=newIr1t*三2r(Systfiin);BufferoifcxbrbrButYerrdfeaier(isrh(kuNeCtF:StRStr;str=br.gil.ineO;CDwble,rsftble(str);R(9/5)C*32;,stcut.pr