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

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

?? mockcert05.txt

?? 一道JAVA方面的試題 很不錯的 我很喜歡
?? TXT
?? 第 1 頁 / 共 5 頁
字號:

public void init() {
  setLayout(new BorderLayout());
  add("East", new Button("hello"));
}

Select the one right answer.

Only One: _______
1) Nothing will appear in the applet
2) A button will appear in the applet set in the exact center
3) A button will appear on the left side of the applet
4) A button will appear on the right side of the applet
5) A button will fill the entire applet


Question 97
===========================================================
Choose all true statements about the paint() method defined in the Component class:

Select all valid answers.

Mutiple: ________________
1) it is protected
2) it takes an instance of class Graphics
3) it is static
4) it is invoked automatically whenever you minimize and then maximize a component, such as a window
5) there is also a version that takes an int


Question 98
===========================================================
Analyze the following code:

class WhatHappens implements Runnable {
  public static void main(String[] args) {
    Thread t = new Thread(this);
    t.start();
  }

  public void run() {
    System.out.println("hi");
  }
}

Select the one right answer.

Mutiple: ________________
1) This program does not compile
2) This program compiles but nothing appears in the standard output
3) This program compiles and the word "hi" appears in the standard output, once
4) This program compiles and the word "hi" appears continuously in the standard output until the user hits control-c to stop the program


Question 99
===========================================================
What is wrong with the following code?

final class First {
  private int a = 1;
  int b = 2;
}

class Second extends First {
  public void method() {
    System.out.println(a + b);
  }
}

Select all valid answers.

Mutiple: ________________
1) You cannot invoke println() without passing it a String
2) Since a is private, no classes other than First can access it
3) Second cannot extend First
4) final is not a valid keyword for a class


Question 100
===========================================================
Analyze the following two classes.

class First {
  static int a = 3;
}

final class Second extends First {
  void method() {
    System.out.println(a);
  }
}

Select the one right answer.

Mutiple: ________________
1) Class First compiles, but class Second does not
2) Class Second compiles, but class First does not
3) Neither class compiles
4) Both classes compile, and if method() is invoked, it writes 3 to the standard output
5) Both classes compile, but if method() is invoked, it throws an exception


Question 101
===========================================================
Why won抰 the following class compile?

class A {
  private int x;
  public static void main(String[] args) {
    new B();
  }

  class B {
    B() {
      System.out.println(x);
    }
  }
}

Select the one right answer.

Mutiple: ________________
1) Class B tries to access a private variable defined in its ouer class.
2) Class A attempts to create an instance of B when there is no current instance of class A.
3) Class B抯 constructor must be public.


Question 102
===========================================================
Analyze the following code.

void looper() {
  int x = 0;
  one:
  while (x < 10) {
    two:
    System.out.println(++x);
    if (x > 3)
       break two;
  }
}

Select all valid answers.

Mutiple: ________________
1) This code compiles
2) This code does not compile
3) This method writes the number 0 to the standard output
4) the numbers 1 and 2 to the standard output
5) the number 3 to the standard output


Question 103
===========================================================
What appears in the standard output when the method named testing is invoked?

void testing() {
  one:
  two:
  for (int i = 0; i < 3; i++) {
     three:
     for (int j = 10; j < 30; j+=10) {
         System.out.println(i + j);
         if (i > 2)
         continue one;
     }
  }
}

Select all valid answers.

Mutiple: ________________
1) 10 and 20
2) 11 and 21
3) 12 and 22
4) 13 and 23
5) 30, 31, 32, 33


Question 104
===========================================================
What will the user interface look like in an applet given the following init() method?

public void init() {
  setLayout(new BorderLayout());
  add(new Button("hello"));
}

Select the one right answer.

Mutiple: ________________
1) Nothing will appear in the applet
2) A button will appear in the applet set in the exact center
3) A button will appear in the applet along the top and centered horizontally
4) ) A button will appear in the top left corner
5) A button will fill the entire applet


Question 105
===========================================================
What expressions are true concerning the following lines of code?

int[] arr = {1, 2, 3};
for (int i=0; i < 2; i++)
    arr[i] = 0;

Select all valid answers.

Mutiple: ________________
1) arr[0] == 0
2) arr[0] == 1
3) arr[1] == 1
4) arr[2] == 0
5) arr[3] == 0


Question 106
===========================================================
What will happen if you try to compile and execute B抯 main() method?

class A {
  int i;
  A(int i) {
   this.i = i * 2;
  }
}

class B extends A {
  public static void main(String[] args) {
    B b = new B(2);
  }

  B(int i) {
    System.out.println(i);
  }
}

Select the one right answer.

Mutiple: ________________
1) The instance variable i is set to 4
2) The instance variable i is set to 2
3) The instance variable i is set to 0
4) This code will not compile


Question 107
===========================================================
Which best describes the user interface of an applet given the following init() method:

public void init() {
  setLayout(new BorderLayout());
  add("North", new TextField(10));
  add("Center", new Button("help"));
}

Select all valid answers.

Mutiple: ________________
1) The TextField object will be placed at the top of the applet and will be 10 columns wide
2) The Button object will be centered in the applet and will be just large enough to contain the text "help"
3) The Button object will be centered in the applet and will start at the left edge of the applet, fit just under the TextField object above it, and extend to the right and bottom edge of the applet
4) The TextField object will be placed along the top of the applet and will stretch from the left edge to the right edge
5) The placement of the Button object and the TextField object depends on the overall size of the applet.


Question 108
===========================================================
Which of the following statements about try, catch, and finally are true?

Select all valid answers.

Mutiple: ________________
1) A try block must always be followed by a catch block
2) A try block can be followed either by a catch block or a finally block, or both
3) A catch block must always be associated with a try block
4) A finally can never stand on its own (that is, without being associated with try block)
5) None of these are true


Question 109
===========================================================
When a Thread sleeps by invoking Thread.sleep(1000) method, it releases the 
lock on the Object and allows other Threads to acquire the lock on the object. 
True/False?

Only One: _______
1) True
2) False


Question 110
===========================================================
public class Test extends Object implements Runnable 
 { 
   String s1 = "Earth "; 
   String s2 = "Moon"; 

   public void run() 
   { 
     synchronized (s1) { 
       for (int i=0; i < 2; i++) 
       { 
        s1.concat(" to Moon "); 
        System.out.print(s1); 

        s2.concat(" to Earth "); 
        System.out.println(s2); 
       } 
     } 
   } 

  public static void main(String[] args) 
  { 
     Test t = new Test(); 
     new Thread(t).start(); 
     new Thread(t).start(); 
  } 
 }

Only One: _______
1) Prints 
   Earth to Moon Moon to Earth
   Earth to Moon Moon to Earth
   Earth to Moon Moon to Earth
   Earth to Moon Moon to Earth
2) Prints
    Earth to Moon Earth to Moon
    Earth to Moon Earth to Moon
    Earth to Moon Earth to Moon
    Earth to Moon Earth to Moon
3) Prints
   Earth to Moon Moon to Earth
   Moon to Earth Earth to Moon
   Earth to Moon Moon to Earth
   Moon to Earth Earth to Moon
4) Output cannot be determined.
5) Prints
    Earth Moon
    Earth Moon
    Earth Moon
    Earth Moon


                                 JTest
                 Sun Certified Programmer for Java2 Platform
                       Examination Score Report

     CANDIDATE:     JTest
     CANDIDATE ID:  JT12345678                DATE:2002-3-1(YYYY-MM-DD)
     Exam: JTest SCJP Mock Exam

Exam Results:

                   Correct Answers               Your Answers        Result
                    1  2  3  4  5                1  2  3  4  5
------------------------------------------------------------------------------------
Question # 01             3                            3               0
------------------------------------------------------------------------------------
Question # 02             3                            3               0
------------------------------------------------------------------------------------
Question # 03          2        5                   2        5         0
------------------------------------------------------------------------------------
Question # 04             3                            3               0
------------------------------------------------------------------------------------
Question # 05                4                            4            0
------------------------------------------------------------------------------------
Question # 06       1  2  3     5                1  2  3     5         0
------------------------------------------------------------------------------------
Question # 07       1                            1                     0
------------------------------------------------------------------------------------
Question # 08       1        4                   1        4            0
------------------------------------------------------------------------------------
Question # 09          2                            2                  0
------------------------------------------------------------------------------------
Question # 10       1                            1                     0
------------------------------------------------------------------------------------
Question # 11          2                            2                  0
------------------------------------------------------------------------------------
Question # 12                4                            4            0
------------------------------------------------------------------------------------
Question # 13                4                            4            0
------------------------------------------------------------------------------------
Question # 14          2        5                   2        5         0
------------------------------------------------------------------------------------
Question # 15             3                            3               0
------------------------------------------------------------------------------------
Question # 16       1        4                   1        4            0
------------------------------------------------------------------------------------
Question # 17                4                            4            0
------------------------------------------------------------------------------------
Question # 18                   5                            5         0
------------------------------------------------------------------------------------
Question # 19                   5                            5         0
------------------------------------------------------------------------------------
Question # 20             3                            3               0
------------------------------------------------------------------------------------
Question # 21          2  3                         2  3               0
------------------------------------------------------------------------------------
Question # 22             3                            3               0
------------------------------------------------------------------------------------
Question # 23       1  2        5                1  2        5         0
------------------------------------------------------------------------------------
Question # 24          2                            2                  0
------------------------------------------------------------------------------------
Question # 25             3  4  5                      3  4  5         0
------------------------------------------------------------------------------------
Question # 26       1  2                         1  2                  0
------------------------------------------------------------------------------------
Question # 27       1  2        5                1  2        5         0
------------------------------------------------------------------------------------
Question # 28             3                            3               0
------------------------------------------------------------------------------------
Question # 29          2  3                         2  3               0
------------------------------------------------------------------------------------
Question # 30       1        4                   1        4            0
------------------------------------------------------------------------------------
Question # 31          2  3  4                      2  3  4            0
------------------------------------------------------------------------------------
Question # 32       1  2     4                   1  2     4            0
------------------------------------------------------------------------------------
Question # 33       1  2        5                1  2        5         0
------------------------------------------------------------------------------------
Question # 34       1                            1                     0
------------------------------------------------------------------------------------
Question # 35             3                            3               0
------------------------------------------------------------------------------------
Question # 36          2                            2                  0
------------------------------------------------------------------------------------
Question # 37       1  2  3                      1  2  3               0
------------------------------------------------------------------------------------
Question # 38       1     3                      1     3               0
------------------------------------------------------------------------------------
Question # 39          2                            2                  0
------------------------------------------------------------------------------------
Question # 40             3                            3               0
------------------------------------------------------------------------------------
Question # 41       1  2  3     5                1  2  3     5         0
------------------------------------------------------------------------------------
Question # 42                   5                            5         0
------------------------------------------------------------------------------------
Question # 43                4                            4            0
------------------------------------------------------------------------------------
Question # 44       1           5                1           5         0
------------------------------------------------------------------------------------
Question # 45       1  2  3                      1  2  3               0
------------------------------------------------------------------------------------
Question # 46       1        4                   1        4            0
------------------------------------------------------------------------------------
Question # 47             3                            3               0
------------------------------------------------------------------------------------
Question # 48          2                            2                  0
------------------------------------------------------------------------------------
Question # 49          2                            2                  0
------------------------------------------------------------------------------------
Question # 50          2     4                      2     4            0
------------------------------------------------------------------------------------
Question # 51             3     5                      3     5         0
------------------------------------------------------------------------------------
Question # 52          2        5                   2        5         0
------------------------------------------------------------------------------------
Question # 53          2  3     5                   2  3     5         0
------------------------------------------------------------------------------------
Question # 54             3  4                         3  4            0
------------------------------------------------------------------------------------
Question # 55       1  2  3  4                   1  2  3  4            0
------------------------------------------------------------------------------------
Question # 56          2     4  5                   2     4  5         0
------------------------------------------------------------------------------------
Question # 57       1  2  3                      1  2  3               0
------------------------------------------------------------------------------------
Question # 58             3                            3               0
------------------------------------------------------------------------------------
Question # 59       1                            1                     0
------------------------------------------------------------------------------------
Question # 60       1                            1                     0
------------------------------------------------------------------------------------
Question # 61             3                            3               0
-------------

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
av亚洲精华国产精华精华| 国产精品视频观看| 国产视频一区二区在线| 一区二区三区四区中文字幕| 久色婷婷小香蕉久久| 91老师片黄在线观看| 欧美精品一区二区三区高清aⅴ | 欧美videos大乳护士334| 亚洲欧美激情视频在线观看一区二区三区 | 成人免费在线观看入口| 免费观看91视频大全| 在线观看日韩国产| 国产精品久久夜| 久久99精品久久久久久| 91女厕偷拍女厕偷拍高清| 国产亚洲婷婷免费| 久久se这里有精品| 69堂精品视频| 亚洲超碰97人人做人人爱| 99国产精品久久久| 国产精品免费视频一区| 看电影不卡的网站| 日韩小视频在线观看专区| 亚洲成人一二三| 91福利社在线观看| 亚洲欧美日韩在线| 99国产精品久久久久久久久久久| 中文字幕国产一区二区| 国产福利不卡视频| 久久精品一区二区三区不卡牛牛 | 欧美日韩国产综合一区二区三区| 亚洲欧美另类久久久精品| av一区二区三区在线| 国产欧美一区二区三区网站| 国产经典欧美精品| 国产日韩欧美精品综合| 国产精品一级在线| 日本一区二区三区四区| 丁香亚洲综合激情啪啪综合| 日本一区二区三区电影| 国产精品中文字幕日韩精品 | 51久久夜色精品国产麻豆| 午夜不卡在线视频| 日韩一级二级三级精品视频| 美女爽到高潮91| 国产午夜精品一区二区三区视频 | 国产在线一区观看| 欧美国产精品一区二区| 91免费看片在线观看| 亚洲综合在线电影| 制服丝袜激情欧洲亚洲| 美女国产一区二区三区| 日本一区二区三区电影| 91在线免费视频观看| 午夜精品久久久久| 久久久精品国产免大香伊| yourporn久久国产精品| 亚洲成人av福利| 精品久久人人做人人爰| a亚洲天堂av| 三级亚洲高清视频| 久久久www免费人成精品| 99re成人在线| 久久精品国产亚洲高清剧情介绍 | 91精品国产欧美日韩| 国产永久精品大片wwwapp| 欧美激情在线观看视频免费| 色悠悠久久综合| 毛片基地黄久久久久久天堂| 中文字幕色av一区二区三区| 欧美乱妇一区二区三区不卡视频 | 日韩成人精品视频| 日本一区二区高清| 91精品中文字幕一区二区三区| 国产中文一区二区三区| 伊人夜夜躁av伊人久久| 精品国产乱码久久久久久浪潮| 福利视频网站一区二区三区| 亚洲国产精品欧美一二99| 久久久久久久久久久久久夜| 在线观看日韩高清av| 高清成人免费视频| 蜜臀久久99精品久久久久宅男 | 五月激情综合色| 中文字幕av免费专区久久| 91精品国产综合久久婷婷香蕉| 国产suv精品一区二区三区| 丝袜国产日韩另类美女| 亚洲欧洲精品一区二区精品久久久| 日韩欧美中文字幕一区| 在线观看国产91| 成人免费视频一区| 韩国一区二区三区| 日日摸夜夜添夜夜添亚洲女人| 亚洲精品成a人| 中文字幕一区日韩精品欧美| 精品日韩在线观看| 欧美精品三级日韩久久| 在线观看日产精品| 99re这里只有精品首页| 成人午夜看片网址| 国产麻豆日韩欧美久久| 久久黄色级2电影| 蜜臀a∨国产成人精品| 亚洲成人动漫精品| 亚洲国产一区二区三区青草影视| 综合自拍亚洲综合图不卡区| 欧美极品少妇xxxxⅹ高跟鞋| 精品理论电影在线| 精品免费国产二区三区| 日韩欧美专区在线| 日韩美女一区二区三区四区| 69成人精品免费视频| 制服丝袜在线91| 日韩一区二区影院| 精品国产制服丝袜高跟| 337p日本欧洲亚洲大胆精品 | 91精品国产综合久久久蜜臀图片 | 成人国产精品免费| 国产a区久久久| 成人久久18免费网站麻豆 | 婷婷六月综合亚洲| 婷婷开心激情综合| 美日韩一级片在线观看| 国产综合久久久久久鬼色| 韩国女主播成人在线| 国产精品18久久久久久久久| 国产成人一区在线| 成人h动漫精品| av毛片久久久久**hd| 日本韩国一区二区三区| 欧美日韩国产另类一区| 欧美一区二区三区在线视频| 久久综合久久99| 日韩毛片高清在线播放| 一区二区三区欧美日韩| 日韩二区三区四区| 国产激情视频一区二区在线观看| 成人福利视频网站| 欧美日韩中文国产| 精品国产sm最大网站免费看| 国产精品亲子伦对白| 亚洲资源在线观看| 激情综合色丁香一区二区| 成人午夜视频福利| 欧美日韩三级在线| 久久婷婷综合激情| 一区二区三区日韩欧美精品| 久久成人免费电影| 波多野结衣一区二区三区 | 在线观看成人免费视频| 精品日韩一区二区三区免费视频| 国产精品剧情在线亚洲| 丝袜亚洲另类欧美综合| 丁香婷婷综合激情五月色| 色嗨嗨av一区二区三区| 精品国产乱码久久久久久浪潮| 亚洲精品高清在线观看| 国产一区在线精品| 欧美精品自拍偷拍| 中文字幕一区二区三区乱码在线| 丝袜美腿亚洲色图| 91国偷自产一区二区使用方法| 精品日韩99亚洲| 亚洲综合在线观看视频| 豆国产96在线|亚洲| 日韩欧美精品在线| 亚洲精品国产第一综合99久久| 国模无码大尺度一区二区三区| 一本久道中文字幕精品亚洲嫩| 26uuu精品一区二区 | 国产精品福利av| 久久66热re国产| 欧美日本国产视频| 亚洲欧洲成人精品av97| 国产在线不卡视频| 欧美成人精品3d动漫h| 国产一区二区三区四| 欧美日韩mp4| 一区二区三区欧美日| 国产不卡视频在线观看| 欧美mv和日韩mv国产网站| 日韩二区三区四区| 欧洲国内综合视频| 亚洲三级免费观看| 成人精品视频一区二区三区 | 欧美色中文字幕| 最新高清无码专区| 成人免费看黄yyy456| 欧美极品少妇xxxxⅹ高跟鞋| 国产在线观看免费一区| 日韩精品一区二区三区中文精品| 亚洲成av人片一区二区| 欧美午夜电影网| 亚洲午夜精品网| 欧美日韩一卡二卡| 亚洲成人福利片| 欧美一区二区女人| 久久精品国产亚洲a| 精品日韩一区二区三区免费视频|