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

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

?? mockcert05.txt

?? 一道JAVA方面的試題 很不錯的 我很喜歡
?? TXT
?? 第 1 頁 / 共 5 頁
字號:
3) class B implements A {
  int method1(int i) { }
  int method2(int j) { }
}
4) class B extends A {
  int method1(int i) { }
  int method2(int j) { }
}
5) class B implements A { 
  int method2(int j) { }
  int method1(int i) { }
}


Question 73
===========================================================
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 catch block must always be associated with a try block
5) None of these are true


Question 74
===========================================================
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 75
===========================================================
Which Listener interfaces can you add to a TextArea object?

Mutiple: ________________
1) TextListener
2) ActionListener
3) MouseMotionListener
4) MouseListener
5) ComponentListener


Question 76
===========================================================
What appears in the standard output if the method named problem() in the code below throws an instance of class Exception when the method named trythis() is invoked?

public void trythis() {
  try {
      System.out.println("1");
      problem();
      } catch (RuntimeException x) {
        System.out.println("2");
        return;
      } catch (Exception x) {
        System.out.println("3");
        return;
      } finally {
        System.out.println("4");
      }
      System.out.println("5");
  }

Select all valid answers.

Mutiple: ________________
1) "1"
2) "2"
3) "3"
4) "4"
5) "5"


Question 77
===========================================================
Examine the following switch block:

char mychar = 'c';
switch (mychar) {
   default:
   case 'a': System.out.println("a"); break;
   case 'b': System.out.println("b"); break;
}

Which of the following questions are definitely true?

Select all valid answers.

Mutiple: ________________
1) This switch block is illegal, because only integers can be used in the switch statement.
2) This switch block is fine.
3) This switch block is illegal, because the default statement must come last.
4) When this code runs, nothing is written to the standard output.
5) When this code runs, the letter "a" is written to the standard output.


Question 78
===========================================================
Which statements accurately describe the following line of code?

Select all valid answers.

String[][] s = new String[10][];

Mutiple: ________________
1) This line of code is illegal.
2) s is a two-dimensional array containing 10 rows and 10 columns
3) s is an array of 10 arrays.
4) Each element in s is set to ""
5) Each element in s is uninitialized and must be initialized before it is referenced.


Question 79
===========================================================
What will happen if you try to compile and run the following class?

class Test {
  static int myArg = 1;
  public static void main(String[] args) {
    int myArg;
    System.out.println(myArg);
  }
}

Select the one right answer.

Mutiple: ________________
1) This code compiles and displays 0 in the standard output when run.
2) This code compiles and displays 1 in the standard output when run.
3) This code does not compile because you cannot define a local variable named the same as a static variable.
4) This code does not compile because the local variable is used before it is initialized.


Question 80
===========================================================
Which declarations for the main() method in a stand-alone program are NOT valid?

Select all valid answers.

Mutiple: ________________
1) public static void main()
2) public static void main(String[] string)
3) public static void main(String args)
4) static public int main(String[] args)
5) static void main(String[] args)


Question 81
===========================================================
Which of the following identifiers are ILLEGAL?

Select all valid answers.

Mutiple: ________________
1) #_pound
2) _underscore
3) 5Interstate
4) Interstate5
5) _5_


Question 82
===========================================================
Which interface implementations can you add as listeners for a TextField object?

Select all valid answers.

Mutiple: ________________
1) ActionListener
2) FocusListener
3) MouseMotionListener
4) WindowListener
5) ContainerListener


Question 83
===========================================================
What must be true for the RunHandler class so that instances of RunHandler can be used as written in the code below:

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

Select all valid answers.

Mutiple: ________________
1) RunHandler must implement the java.lang.Runnable interface.
2) RunHandler must extend the Thread class.
3) RunHandler must provide a run() method declared as public and returning void.
4) RunHandler must provide an init() method.


Question 84
===========================================================
To determine if you can invoke addContainerListener() for a component referenced using a variable named c, which expression(s) can you evaluate that will give you a true or false answer to this questions?

Select all valid answers.

Mutiple: ________________
1) c == Container
2) c.equals(Class.Container)
3) c instanceof Container
4) c instanceof Component
5) c implements Container


Question 85
===========================================================
What is written to the standard output given the following statement:

System.out.println(4 & 7);

Select the one right answer.

Mutiple: ________________
1) 4
2) 5
3) 6
4) 7
5) 0


Question 86
===========================================================
Given that the variable g references a valid Graphics object, what does the following statement do?

g.fillRect(2, 3, 10, 20);

Select all valid answers.

Mutiple: ________________
1) draw the outline of a rectangle in the current background color
2) draw the outline of a rectangle in the current foreground color
3) fill in a rectangle using the current background color
4) fill in a rectangle using the current foreground color
5) fill in a rectangle in black


Question 87
===========================================================
Describe the following applet.

import java.applet.Applet;
import java.awt.event.*;
import java.awt.*;

public class MyApplet extends Applet {
  Button b1, b2;
  public void init() {
    ActionListener a = new ActionListener() {
      public void actionPerformed(ActionEvent evt) {
        if (evt.getSource() == b1) {
           b1.setEnabled(false);
           b2.setEnabled(true);
        } else {
           b1.setEnabled(true);
           b2.setEnabled(false);
        }
      }
    };
    b1 = new Button("1");
    b1.addActionListener(a);
    add(b1);
    b2 = new Button("2");
    b2.addActionListener(a);
    add(b2);
 }
}

Select all valid answers.

Mutiple: ________________
1) Nothing appears in the applet
2) Two buttons appear in the applet
3) When the user clicks a button, nothing happens
4) When the user clicks a button, it becomes disabled
5) When a user clicks a button, the other button becomes enabled


Question 88
===========================================================
The method setBackground() defined for the Graphics class:

Select all valid answers.

Mutiple: ________________
1) takes an integer value
2) takes an instance of class Color
3) takes an instance of a Component subclass
4) sets the drawing color for the associated Component object
5) changes the background color for the associated Component object


Question 89
===========================================================
What does the following program do when it is run with the command:

java Mystery Mighty Mouse

class Mystery {
  public static void main(String[] args) {
    Changer c = new Changer();
    c.method(args);
    System.out.println(args[0] + " " + args[1]);
  }

  static class Changer {
     void method(String[] s) {
       String temp = s[0];
       s[0] = s[1];
       s[1] = temp;
    }
  }
}

Select the one right answer.

Mutiple: ________________
1) This program causes an ArrayIndexOutOfBoundsException to be thrown
2) This program runs but does not write anything to the standard output
3) This program writes "Mighty Mouse" to the standard output
4) This program writes "Mouse Mighty" to the standard output


Question 90
===========================================================
What happens when you try to compile and run the following program?

class Mystery {
  String s;
  public static void main(String[] args) {
    Mystery m = new Mystery();
    m.go();
  }

  void Mystery() {
    s = "constructor";
  }
  
  void go() {
    System.out.println(s);
  }
}

Select the one right answer.

Mutiple: ________________
1) this code will not compile
2) this code compiles but throws an exception at runtime
3) this code runs but nothing appears in the standard output
4) this code runs and "constructor" in the standard output
5) this code runs and writes "null" in the standard output


Question 91
===========================================================
What can you write at the comment //A in the code below so that this program writes the word "running" to the standard output?

class RunTest implements Runnable {
  public static void main(String[] args) {
    RunTest rt = new RunTest();
    Thread t =new Thread(rt);
    //A
  }

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

  void go() {
    start(1);
  }

  void start(int i) {
  }
}

Select all valid answers.

Mutiple: ________________
1) System.out.println("running");
2) rt.start();
3) rt.go();
4) rt.start(1);


Question 92
===========================================================
What order can you place the following pieces of a source file in so that the source file will compile without errors or warnings?

//A
import java.applet.*;
//B
class Helper {}
//C
package myclasses;
//D
public class MyApplet extends java.applet.Applet {}

Select all valid answers.

Mutiple: ________________
1) A, B, C, D
2) A, C, B, D
3) C, A, B, D
4) C, A, D, B
5) C, B, A, D


Question 93
===========================================================
Analyze these two consequetive lines of code:

float f = 3.2;

int i = f;

Select all valid answers.

Mutiple: ________________
1) this code would not compile
2) this code would compile and i would be set to 3
3) the second line could compile if it were written instead as:
int i = (byte)f;
4) the first line could compile if it were written instead as:
float f = 3.2F;


Question 94
===========================================================
Question 41: What is the final value of temp in this sequence?

long temp = (int)3.9;

temp %= 2;

Only One: _______
1) 0
2) 1
3) 2
4) 3
5) 4


Question 95
===========================================================
Analyze this line of code:

if (5 & 7 > 0 && 5 | 2) System.out.println("true");

Select the one right answer.

Only One: _______
1) this line of code will not compile
2) this code will compile but nothing will appear in the standard output
3) this code will compile and write the word "true" in the standard output


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

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
9191精品国产综合久久久久久| 国产精品久久久久久久久免费相片 | 国产欧美精品日韩区二区麻豆天美| 亚洲日穴在线视频| 国产酒店精品激情| 91精品在线免费| 亚洲欧美偷拍另类a∨色屁股| 另类小说一区二区三区| 色噜噜狠狠色综合欧洲selulu| 亚洲精品一区二区三区香蕉| 香蕉乱码成人久久天堂爱免费| 99视频一区二区三区| 精品国产不卡一区二区三区| 日产国产高清一区二区三区| 91麻豆精品一区二区三区| 国产欧美一区二区精品性| 日本大胆欧美人术艺术动态 | 国产做a爰片久久毛片| 欧美一区二区三区公司| 亚洲一卡二卡三卡四卡无卡久久| 成人aaaa免费全部观看| 久久久精品欧美丰满| 精品一区二区三区在线播放| 制服丝袜一区二区三区| 亚洲午夜电影网| 91国产视频在线观看| 国产精品成人一区二区三区夜夜夜| 国产一区二区0| 26uuu国产一区二区三区| 精品一区二区在线看| 26uuu色噜噜精品一区二区| 久久精品国产精品亚洲红杏| 日韩一区二区在线看| 免费成人av在线| 日韩视频国产视频| 精品一区二区三区av| 久久―日本道色综合久久| 激情综合一区二区三区| 精品粉嫩超白一线天av| 国产麻豆精品95视频| 国产清纯美女被跳蛋高潮一区二区久久w | 欧美日韩日日摸| 婷婷六月综合亚洲| 日韩免费看的电影| 国产一区二区三区不卡在线观看 | 亚洲主播在线播放| 欧美挠脚心视频网站| 人人爽香蕉精品| 精品精品国产高清一毛片一天堂| 狠狠色狠狠色综合系列| 国产农村妇女毛片精品久久麻豆 | 99久久国产免费看| 亚洲图片有声小说| 日韩欧美卡一卡二| 懂色中文一区二区在线播放| 最新热久久免费视频| 欧美无砖专区一中文字| 美日韩一级片在线观看| 国产精品污www在线观看| 色综合久久久久久久| 三级亚洲高清视频| 国产区在线观看成人精品 | 日韩电影一二三区| 久久久亚洲午夜电影| 成人黄色综合网站| 视频一区二区三区在线| 国产午夜亚洲精品理论片色戒| 99re视频精品| 久久av老司机精品网站导航| 亚洲欧洲无码一区二区三区| 日韩一级免费观看| av在线一区二区三区| 免费观看91视频大全| 亚洲码国产岛国毛片在线| 日韩一级免费观看| 91色porny蝌蚪| 国产在线播放一区| 亚洲大片在线观看| 国产精品初高中害羞小美女文| 日韩亚洲国产中文字幕欧美| 91免费国产视频网站| 国产寡妇亲子伦一区二区| 亚洲成人精品影院| 国产亚洲一区二区三区在线观看 | 亚洲乱码国产乱码精品精的特点 | 日韩一二三区不卡| 色一区在线观看| 国产一区二区三区电影在线观看| 亚洲一区免费视频| 欧美高清在线精品一区| 欧美一卡2卡三卡4卡5免费| 91丝袜国产在线播放| 韩国中文字幕2020精品| 婷婷久久综合九色综合伊人色| 国产精品久久久久aaaa樱花 | 精品国产91久久久久久久妲己| 在线亚洲一区观看| 成人h动漫精品一区二| 精品一区二区三区在线观看国产| 亚洲国产一区在线观看| 最新不卡av在线| 久久久久久久性| 日韩午夜在线播放| 欧美特级限制片免费在线观看| 韩国女主播成人在线| 奇米影视一区二区三区小说| 午夜欧美在线一二页| 亚洲免费三区一区二区| 日韩美女视频一区| 中文字幕欧美一区| 国产精品丝袜91| 国产精品久久影院| 日本一区二区成人| 日本一区二区高清| 国产精品丝袜在线| 日韩一区在线播放| 亚洲男人的天堂一区二区| 亚洲男女一区二区三区| 亚洲综合成人在线视频| 亚洲国产一区二区视频| 亚洲风情在线资源站| 日韩和欧美一区二区三区| 日韩有码一区二区三区| 日韩精品三区四区| 精品一区二区在线免费观看| 国产精品一区二区三区四区| 国产经典欧美精品| 国产成人在线视频免费播放| 成人美女视频在线观看| 99久久婷婷国产精品综合| 在线观看欧美精品| 欧美日韩亚洲综合一区二区三区| 欧美日韩精品三区| 精品国产乱码久久久久久浪潮| 久久奇米777| 国产精品成人午夜| 亚洲制服丝袜av| 美国av一区二区| 成人综合婷婷国产精品久久蜜臀 | 日韩一区欧美小说| 亚洲va国产va欧美va观看| 久久国产精品第一页| 国产精品18久久久久久久久| 一本大道久久精品懂色aⅴ| 欧美日韩国产区一| 精品福利一二区| 亚洲欧洲av色图| 蜜臀av亚洲一区中文字幕| 成人午夜大片免费观看| 欧美日韩一区视频| 欧美精品一区二| 1000部国产精品成人观看| 爽好久久久欧美精品| 国产成人欧美日韩在线电影| 欧美在线免费视屏| 久久久久免费观看| 五月天亚洲精品| 国产91综合一区在线观看| 在线看不卡av| 久久久精品tv| 爽好多水快深点欧美视频| 99久久综合精品| 日韩欧美亚洲国产另类| 亚洲美女在线一区| 国产成人免费在线观看| 91精品欧美综合在线观看最新| 欧美韩日一区二区三区四区| 日韩精品成人一区二区三区| 99麻豆久久久国产精品免费| 久久综合色综合88| 亚洲一区二区在线观看视频 | 精品一区二区三区的国产在线播放 | 国产69精品久久久久毛片| 在线综合视频播放| 一区二区三区精品视频在线| 国产福利一区在线| 欧美一区二区三区爱爱| 一区二区三区在线视频观看58| 东方欧美亚洲色图在线| 在线观看一区二区精品视频| 欧美精品一区二区久久久| 亚洲电影激情视频网站| 91在线视频免费观看| 久久久精品免费网站| 精品一区二区三区日韩| 欧美高清视频在线高清观看mv色露露十八 | 色综合久久综合中文综合网| 久久青草欧美一区二区三区| 久久精品国产99久久6| 8x福利精品第一导航| 亚洲第一狼人社区| 在线观看视频一区二区欧美日韩| 中文字幕一区在线观看| 成人精品视频一区| 国产欧美一区二区三区沐欲| 国产成人免费视频网站高清观看视频 | 欧美日韩一区二区在线观看 | 国产91精品在线观看| 久久久精品国产免大香伊| 国产在线一区观看|