亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? mockcert04.txt

?? 一道JAVA方面的試題 很不錯的 我很喜歡
?? TXT
?? 第 1 頁 / 共 5 頁
字號:
Question 1
===========================================================
What is displayed when the following piece of code is executed:


loop1:

     for(int i = 0; i < 3; i++){

         loop2:

             for(int j = 0; j < 3; j++){

                 if (i == j){

                     continue loop2;

                 }

                 System.out.println("i = " + i + " j = " + j);

            }

     }

Only One: 
1) i = 0
j = 0
i = 0
j = 1
i = 1
j = 0
i = 1
j = 1
i = 2
j = 0
i = 2
j = 1
2) i = 0
j = 0
i = 1
j = 1
i = 2
j = 2
3) i = 0
j = 1
i = 0
j = 2
i = 1
j = 0
i = 1
j = 2
i = 2
j = 0
i = 2
j = 1
4) None of the above.


Question 2
===========================================================
Consider the following piece of code, and select the correct statement(s):


long val = 2;

....

....


Switch (val){

     default:

         System.out.println("Default");

         break;

     case 1:

         System.out.println("1");

         break;     

     case 2:

         System.out.println("2");

     case 3:

         System.out.println("3");

         break;

}

Mutiple: 
1) The following is displayed:

2

3
2) The following is displayed:  

2
3) The code fails to compile because the default case must be the last case in the switch statement.
4) The code fails to compile because the argument for a switch statement cannot be a variable of type long.
5) The following is displayed:  

2 

3 

Default


Question 3
===========================================================
Consider the following piece of code, and select the correct statement(s):


public class Test extends Applet{

     public void init(){

         setLayout(new GridLayout(1,2));

         add(new Button("#1"));

         add(new Button("#2"));

         add(new Button("#3"));

         add(new Button("#4"));

     }

}

Only One: 
1) The Gridlayout is created with 1 row and 2 columns.
2) Adding the button with the label "#3" will cause an exception to be thrown.
3) Adding the button with label "#3" will cause it to overwrite the button with label "#2".
4) The layout automatically extends to accommodate the additional buttons.
5) Only 2 buttons are displayed, one with label "#1" and one with label "#4".


Question 4
===========================================================
Which of the following layout managers will retain the preferred width and height of the contained components.

Mutiple: 
1) GridLayout
2) GridBagLayout
3) BoxLayout
4) FlowLayout
5) BorderLayout


Question 5
===========================================================
You construct a List by calling List(5, false).


Which statements below are correct (assume the layout managers do not modify the List properties).

Mutiple: 
1) The list supports multiple selection.
2) The list has 5 visible items.
3) A vertical scroll bar will be added automatically if needed.
4) The code fails to compile. The given constructor is not a valid one.


Question 6
===========================================================
Which of the following will definitely stop a thread from executing:

Mutiple: 
1) wait()
2) notify()
3) yield()
4) suspend()
5) sleep()


Question 7
===========================================================
Which of the following is the correct method to call to change the layout manager for a container:

Only One: 
1) setLayoutManager()
2) setLayManager()
3) changeLayout()
4) You can't change the layout manager for a container.
5) setLayout()


Question 8
===========================================================
Which is the correct way to add a button, referenced by b, to a panel, referenced by p.

Mutiple: 
1) add(p, b);
2) p.add(b)
3) b.add(p)
4) Buttons can't be added to panels.
5) add(p)


Question 9
===========================================================
What is displayed when the following code is compiled and executed:

      
long val = 2;

      switch(val){

           case 1:

               System.out.println("1");

           case 2:

               System.out.println("2");

           default:

               System.out.println("default");

           }

Mutiple: 
1) default
2) 2
default
3) The code fails to compile because there are no break statements in the case clauses.
4) The code fails to compile because a long data type is not a valid parameter for a switch statement.


Question 10
===========================================================
What is displayed following the execution of the code below:


1. class Test{

2.      String s;

3.      public static void main(String []args){

4.           int x = 4;

5.           if (x < 4)

6.                System.out.println("Val = " + x);

7.          else

8.                System.out.println(s);

9.          }

10.     }

Only One: 
1) Nothing. The code doesn't compile because the variable s wasn't initialised.
2) The string "null" is displayed.
3) The code runs, but a NullPointerException is thrown at line 8.
4) The code compiles. No exception is thrown but nothing is displayed.
5) Nothing. The code doesn't compile because you can't make a static reference to a non-static variable.


Question 11
===========================================================
Consider the following piece of code:


class Test{

          int x;

          String s;

          float fl;

          boolean [] b = new boolean [5];


          public static void main(String []args){

               System.out.println(x);

               System.out.println(s);

               System.out.println(fl);

               System.out.println(b[2]);

               }

          }


What is displayed when this code is executed.

Only One: 
1) 0 
null 
0.0 
false
2) 0 
"" 
0.0 
true
3) Nothing. The code fails to compile because the boolean array is incorrectly declared.
4) Nothing.  The code will not compile because the static method cannot access the variables since there is no instance of the Test class.


Question 12
===========================================================
What is displayed when the following code is compiled and executed:


String s = "abcd";

String s1 = new String(s);

if (s == s1)

          System.out.println("the same");

if (s.equals(s1))

          System.out.println("equals");

Only One: 
1) the same
equal
2) equals
3) the same
4) The code compiles, but nothing is displayed upon execution.
5) The code fails to compile.


Question 13
===========================================================
What is the legal range for the byte data type:

Only One: 
1) 0 to +255
2) -127 to +128
3) -128 to +127
4) 0 to 65535
5) -32767 to +32768


Question 14
===========================================================
What is displayed when the following code is executed:


String s = "abcdef";

System.out.println(s.charAt(4));

Mutiple: 
1) d
2) e
3) Nothing. An ArrayIndexOutOfBoundsException is thrown
4) The code does not compile. charAt() is not a valid method of the String class.
5) The code does not compile because the string s is not created correctly.


Question 15
===========================================================
True or False.


The String class does not have an append() method.

Only One: 
1) True
2) False


Question 16
===========================================================
Consider the following code segment.


double d = -11.1;

double d1 = method(d);

System.out.println(d1);


If the output of this code segment is -12.0, then what methods could be called in method() above.

Mutiple: 
1) floor()
2) ceil()
3) round()
4) abs()
5) min()


Question 17
===========================================================
What outputs are possible from invoking Math.random().

Only One: 
1) -0.12 
0.56E3
2) 0.12 
1.1E1
3) -23.45 
0.0
4) 0.356 
0.0
5) 1.00 
0.99


Question 18
===========================================================
In a thread, the wait() method must be called inside which of the following:

Mutiple: 
1) A while() loop
2) The run() method
3) synchronised code
4) The constructor
5) It doesn't matter where the wait() is called from.


Question 19
===========================================================
Consider the following piece of code:

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91福利国产精品| jlzzjlzz欧美大全| 中文字幕五月欧美| 91麻豆精品国产自产在线观看一区| 国内精品写真在线观看| 亚洲伊人色欲综合网| 久久久久久久网| 欧美伦理视频网站| 99久久精品费精品国产一区二区| 久久se这里有精品| 樱桃视频在线观看一区| 欧美激情一区二区三区在线| 日韩一区二区三区视频| 色婷婷激情一区二区三区| 激情欧美一区二区三区在线观看| 亚洲日本一区二区三区| 久久精品人人做人人综合| 欧美一区二区免费视频| 欧美综合天天夜夜久久| 成人激情黄色小说| 国产一区二区三区四区五区入口| 日本欧美韩国一区三区| 亚洲一区二区三区四区在线免费观看| 亚洲一区二区在线免费看| 国产精品国产精品国产专区不蜜| 欧美精品一区二区三区在线| 欧美日韩精品欧美日韩精品一综合| av电影天堂一区二区在线观看| 精品在线免费观看| 蜜桃免费网站一区二区三区| 亚洲一区视频在线观看视频| 亚洲精品国产高清久久伦理二区| 国产精品嫩草久久久久| 欧美国产综合一区二区| 久久一区二区视频| 精品国产凹凸成av人网站| 91精品国产综合久久久蜜臀粉嫩| 欧美日韩免费观看一区二区三区 | 高清beeg欧美| 国产成人精品免费网站| 国产成人免费9x9x人网站视频| 狠狠色丁香久久婷婷综| 久久国产免费看| 精品一区二区三区蜜桃| 激情久久五月天| 国产一区二区不卡| 国产一区二区按摩在线观看| 国产乱对白刺激视频不卡| 极品少妇xxxx精品少妇| 国产一区二区三区高清播放| 国产福利精品导航| 成人精品国产一区二区4080| www.欧美日韩国产在线| 91麻豆福利精品推荐| 99久久精品免费看国产免费软件| 成人av第一页| 91极品视觉盛宴| 欧美日韩国产天堂| 精品国产91亚洲一区二区三区婷婷 | 亚洲狠狠爱一区二区三区| 一级精品视频在线观看宜春院 | 欧美日韩国产天堂| 欧美一区二区私人影院日本| 日韩精品一区二区三区三区免费| 久久免费的精品国产v∧| 欧美经典一区二区三区| 亚洲欧美成aⅴ人在线观看| 夜夜揉揉日日人人青青一国产精品 | 美女久久久精品| 国产精品一区不卡| 色综合视频在线观看| 欧美亚洲高清一区| 日韩欧美不卡在线观看视频| 国产婷婷色一区二区三区四区| 最近日韩中文字幕| 美女www一区二区| 99re6这里只有精品视频在线观看 99re8在线精品视频免费播放 | 亚洲人一二三区| 久久久三级国产网站| 中文字幕制服丝袜成人av | 一本在线高清不卡dvd| 亚洲人一二三区| 91成人在线精品| 国产成人免费网站| 日日夜夜一区二区| 亚洲老妇xxxxxx| 久久精品网站免费观看| 欧美人伦禁忌dvd放荡欲情| 成人午夜视频在线| 精品一区二区综合| 午夜在线成人av| 18成人在线观看| 久久婷婷国产综合精品青草| 欧美日韩黄色一区二区| 99久免费精品视频在线观看| 麻豆91在线观看| 婷婷一区二区三区| 一区二区三区在线观看网站| 国产色产综合产在线视频| 7777精品伊人久久久大香线蕉的| 99精品视频一区二区三区| 国产很黄免费观看久久| 久久疯狂做爰流白浆xx| 偷窥国产亚洲免费视频 | 国产欧美日韩麻豆91| 欧美一二区视频| 91.com视频| 欧美三级中文字幕在线观看| 91麻豆国产精品久久| 成人福利视频在线看| 国产成人av福利| 国产一区视频在线看| 麻豆传媒一区二区三区| 日本视频免费一区| 奇米影视7777精品一区二区| 日韩av一区二区三区四区| 亚洲综合在线电影| 樱桃视频在线观看一区| 亚洲精品国产一区二区三区四区在线| 国产精品久久久久aaaa| 中文字幕制服丝袜成人av| 中文字幕在线不卡| 18成人在线视频| 一区二区三区.www| 亚洲成人免费视| 日本欧美加勒比视频| 麻豆久久久久久久| 韩国午夜理伦三级不卡影院| 国产成人精品影视| 91浏览器打开| 欧美精品123区| 精品国产污网站| 国产午夜精品福利| 亚洲日穴在线视频| 亚洲国产精品麻豆| 日本最新不卡在线| 精品影院一区二区久久久| 国产精品99久久久| av高清久久久| 欧美精品v国产精品v日韩精品 | av成人动漫在线观看| 欧美最新大片在线看 | 色噜噜狠狠成人网p站| 色成年激情久久综合| 欧美日韩久久久一区| 欧美mv和日韩mv国产网站| 国产欧美一区二区精品性| 亚洲少妇最新在线视频| 日韩国产欧美在线观看| 国产经典欧美精品| 欧美视频一区二区在线观看| 日韩一区二区高清| 18成人在线观看| 蜜桃视频免费观看一区| av不卡免费在线观看| 7777精品伊人久久久大香线蕉超级流畅 | 成人免费毛片高清视频| 欧美日韩另类一区| 国产欧美日韩中文久久| 亚洲午夜日本在线观看| 激情六月婷婷久久| 欧美四级电影网| 国产嫩草影院久久久久| 午夜欧美大尺度福利影院在线看| 国产一区二区三区免费在线观看| 欧美性色综合网| 国产精品你懂的在线欣赏| 另类小说色综合网站| 色综合久久天天综合网| 久久人人爽人人爽| 亚洲电影在线免费观看| 不卡一区二区中文字幕| 日韩你懂的在线观看| 夜夜嗨av一区二区三区四季av| 国产乱淫av一区二区三区| 欧美肥大bbwbbw高潮| 亚洲天堂福利av| 国产成人啪免费观看软件| 91精品国产手机| 一区二区三区加勒比av| youjizz久久| 久久精品视频一区二区三区| 日韩精品一级二级| 欧美色欧美亚洲另类二区| 国产精品美女久久福利网站| 国产在线播精品第三| 欧美疯狂做受xxxx富婆| 夜夜揉揉日日人人青青一国产精品| 成人免费av资源| 久久精品在线免费观看| 精品一区二区三区在线播放| 欧美一区二区三区视频免费| 亚洲一区二区三区视频在线| 91丨九色丨尤物| 国产欧美精品国产国产专区| 国产伦精品一区二区三区免费迷 | 狠狠色狠狠色综合系列| 欧美一区二区三区啪啪| 婷婷激情综合网| 欧美日韩国产综合一区二区|