在线现看午夜福利片|女人16久久免费视频|鲁丝片一区鲁丝片二区鲁丝|一区二区三区欧美在线

  1. 
    
    <b id="glvx9"></b>
        1. <blockquote id="glvx9"><meter id="glvx9"></meter></blockquote>
            首頁(yè) - 網(wǎng)校 - 萬(wàn)題庫(kù) - 美好明天 - 直播 - 導(dǎo)航

            2018年9月全國(guó)計(jì)算機(jī)二級(jí)Java考試精選練習(xí)題(7)

            來(lái)源:考試吧 2018-04-13 14:52:19 要考試,上考試吧! 萬(wàn)題庫(kù)
            “2018年9月全國(guó)計(jì)算機(jī)二級(jí)Java考試精選練習(xí)題(7)”供考生參考。更多計(jì)算機(jī)等級(jí)考試模擬試題等信息請(qǐng)?jiān)L問(wèn)考試吧計(jì)算機(jī)等級(jí)考試網(wǎng)。
            第 1 頁(yè):試題
            第 2 頁(yè):參考答案

              點(diǎn)擊查看:2018年9月全國(guó)計(jì)算機(jī)二級(jí)Java考試精選練習(xí)題匯總

              1.下列選項(xiàng)成員變量聲明正確的是()。

              A.publicprotectedfinalinti;

              B.abstractclassFl{…}

              C.privatedoubleheight;

              D.doubleweight()

              2.下面程序段的輸出結(jié)果是()。

              classTest{

              publics,taticvoidmain(Stringargs[]){

              MyThreadt=newMyThread();

              t.displayOutput("thasbeencreateD");

              t.start();

              }

              }

              ClassMyThreadextendsThread{

              publicvoiddisplayOutput(Strings){

              System.out.println(s);

              }

              publicvoidrun(){

              displayOutput("tisrunning.");

              }

              }

              A.thasbeencreated.

              B.thasbeencreated.tisrunning.

              C.tisrunning.

              D.編譯出錯(cuò)

              3.執(zhí)行下列程序時(shí),會(huì)產(chǎn)生什么異常()。

              publicclassTest{

              publicstaticvoidmain(Stringargs[]){

              intd=101;

              intb=220:

              longa=321;

              System.OUt.println((a-b)/(a-b-d));

              }

              }

              A.ArraylndexOutOfBoundsException

              B.NumberFormatException

              C.ArithmeticException

              D.EOFExeeption

              4.下面程序段的輸出結(jié)果為()。

              publicclassTest

              {

              publicstaticvoidmain(Stringargs[])

              {

              booleana,b,C;

              a=(3<5):

              b=(a==true);

              System.out.println("a="+a+"b="+b);

              c=(b==false);

              System.out.println("b="+b+"c="+c);

              }

              }

              A.a=trueb=falseB.fl=trueb=false

              b=truec=trueb=truec=false

              C.a=trueb=trueD.a=falseb=false

              b=truec=falseb=truec=false

              5.下面程序段的輸出結(jié)果是()。

              publicclassTest{

              publicstaticvoidmain(Stringargs[]){

              inta,b;

              for(a=1,b=1;a<=100;a++){

              if(b>=10)break;

              if(b%2==1){

              b+=2:

              continue;

              }

              }

              System.OUt.println(a);

              }

              }

              A.5B.6

              C.7D.101

              6.棧中允許進(jìn)行插入和刪除的一端稱為()。

              A.棧頂B.棧底

              C.棧端D.棧尾

              7.下面程序段的輸出結(jié)果是()。

              publicclassTest{

              publicstaticvoidmain(Stringargs[]){

              inti=1:

              switch(i){

              case0:

              System.OUt.println("0");

              break;

              casel:

              System.out.println("1");

              case2:

              System.OUt.println("2");

              break;

              default:

              System.out.println("default");

              }

              }

              }

              A.01

              B.12

              C.10

              D.21

              8.Frame默認(rèn)的布局管理器是()。

              A.FlowLayout

              B.BorderLayout

              C.GridLayout

              D.UpLayout

              9.在Java語(yǔ)言中,ObjectOutputStream是指()。

              A.字節(jié)流

              B.字符流

              C.對(duì)象輸出流

              D.數(shù)據(jù)流

              10.請(qǐng)閱讀下列程序代碼,然后將程序的執(zhí)行結(jié)果補(bǔ)充完整。橫線處應(yīng)填寫(xiě)的內(nèi)容是()。

              程序代碼:

              publicclassthrowsExeeption{

              staticvoidProc(intsel)

              throwsArithmeticException,ArrayIndexOutOf

              BoundsException{

              System.out.println("InSituation"+sel);

              if(sel==0){

              System.OUt.println("noExceptioncaught");

              return;

              }

              elseif(sel==l){

              intiArray[]=newint[4];

              iArray[1]=3;

              }

              }

              publicstaticvoidmain(Stringargs[]){

              try{

              Proe(O);

              Proc(1);

              }

              catch(ArrayIndexOutOfBoundsExceptione){

              System.out.println("Catch"+e);

              }

              finally{

              System.out.println("inProcfinally"):

              }

              }

              }

              執(zhí)行結(jié)果:

              InSituation0

              noExceptioncaught

              inProcfinally

              A.InSituationl

              B.InSituation

              C.withCatch

              D.intiArrayl

            掃描/長(zhǎng)按二維碼幫助考試通關(guān)
            2018年等考報(bào)考資訊
            2018等考各科通關(guān)技巧
            2018各科最新預(yù)測(cè)試卷
            2018等考各科備考資料

            微信搜索"考試吧"了解更多考試資訊、下載備考資料

              相關(guān)推薦:

              2018年9月全國(guó)計(jì)算機(jī)等級(jí)考試試題匯總(各科目)

              2018年全國(guó)計(jì)算機(jī)等級(jí)考試必做試題匯總(各科目)

              2018年全國(guó)計(jì)算機(jī)等級(jí)考試復(fù)習(xí)知識(shí)點(diǎn)匯總(各科目)

              2018全國(guó)計(jì)算機(jī)等級(jí)考試備考經(jīng)驗(yàn)及應(yīng)試技巧匯總

              歷年真題匯總|考試吧策劃:2018年計(jì)算機(jī)等級(jí)考試報(bào)考指南

            文章搜索
            萬(wàn)題庫(kù)小程序
            萬(wàn)題庫(kù)小程序
            ·章節(jié)視頻 ·章節(jié)練習(xí)
            ·免費(fèi)真題 ·?荚囶}
            微信掃碼,立即獲取!
            掃碼免費(fèi)使用
            • 1
            • 2
            • 3
            • 4
            • 5
            • 6
            • 7
            • 8
            • 9
            • 10
            此欄目下沒(méi)有文章
            版權(quán)聲明:如果計(jì)算機(jī)等級(jí)考試網(wǎng)所轉(zhuǎn)載內(nèi)容不慎侵犯了您的權(quán)益,請(qǐng)與我們聯(lián)系800@exam8.com,我們將會(huì)及時(shí)處理。如轉(zhuǎn)載本計(jì)算機(jī)等級(jí)考試網(wǎng)內(nèi)容,請(qǐng)注明出處。
            Copyright © 2004- 考試吧計(jì)算機(jī)等級(jí)考試網(wǎng) 出版物經(jīng)營(yíng)許可證新出發(fā)京批字第直170033號(hào) 
            京ICP證060677 京ICP備05005269號(hào) 中國(guó)科學(xué)院研究生院權(quán)威支持(北京)
            在線模擬試題
            考證通關(guān)殺器
            考試最新資訊
            學(xué)
            一次通關(guān)技巧