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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? mockcert02.txt

?? JAVA方面的一道練習(xí)試題 很好的 很不錯(cuò)的
?? TXT
?? 第 1 頁(yè) / 共 5 頁(yè)
字號(hào):
What is the permanent effect on the file system of writing data to a new FileWriter("report"), given the file report already exists?

Mutiple: 
1) The data is appended to the file
2) The file is replaced with a new file
3) An exception is raised as the file already exists
4) The data is written to random locations within the file


Question 29
===========================================================
What is the effect of adding the sixth element to a vector created in the following manner:

new Vector(5, 10);

Mutiple: 
1) An IndexOutOfBounds exception is raised.
2) The vector grows in size to a capacity of 10 elements
3) The vector grows in size to a capacity of 15 elements
4) Nothing, the vector will have grown when the fifth element was added


Question 30
===========================================================
What is the result of executing the following code when the value of x is 2:

switch (x) {
  case 1:
      System.out.println(1);
  case 2:
  case 3:
      System.out.println(3);
  case 4:
      System.out.println(4);
}

Only One: 
1) Nothing is printed out
2) The value 3 is printed out
3) The values 3 and 4 are printed out
4) The values 1, 3 and 4 are printed out


Question 31
===========================================================
Consider the following example:

class First {
  public First (String s) {
    System.out.println(s);
  }
}

public class Second extends First {
  public static void main(String args []) {
    new Second();
  }
}

What is the result of compiling and running the Second class?

Only One: 
1) Nothing happens
2) A string is printed to the standard out
3) An exception is raised at runtime stating that there is no null parameter constructor in class First.
4) An instance of the class Second is created
5) The class second will not compile as there is no null parameter constructor in the class First


Question 32
===========================================================
What is the result of executing the following fragment of code:

boolean flag = false;                    
if (flag = true) {
   System.out.println("true");
}else{
   System.out.println("false");
}

Only One: 
1) true is printed to standard out
2) false is printed to standard out
3) An exception is raised
4) Nothing happens


Question 33
===========================================================
Consider the following classes:

public class Test {
  public static void test() {
    this.print();
  }

  public static void print() {
    System.out.println("Test");
  }

  public static void main(String args []) {
    test();
  }
}

What is the result of compiling and running this class?

Only One: 
1) The class fails to compile stating that the variable this is undefined.
2) The string Test is printed to the standard out.
3) A runtime exception is raised stating that an object has not been created.
4) Nothing is printed to the standard output.
5) An exception is raised stating that the method test cannot be found.


Question 34
===========================================================
Examine the following class definition:

public class Test {
  public static void test() {
    print();
  }

  public static void print() {
    System.out.println("Test");
  }

  public void print() {
    System.out.println("Another Test");
  }
}


What is the result of compiling this class:

Only One: 
1) A successful compilation.
2) A warning stating that the class has no main method.
3) An error stating that there is a duplicated method.
4) An error stating that the method test() will call one or other of the print() methods.


Question 35
===========================================================
What is the result of compiling and executing the following Java class:

public class ThreadTest extends Thread {
  public void run() {
    System.out.println("In run");
    suspend();
    resume();
    System.out.println("Leaving run");
  }

  public static void main(String args []) {
    (new ThreadTest()).start();
  }
}

Only One: 
1) Compilation will fail in the method main.
2) Compilation will fail in the method run.
3) A warning will be generated for method run.
4) The string "In run" will be printed to standard out.
5) Nothing will happen.


Question 36
===========================================================
Given the following sequence of Java statements

1.StringBuffer sb = new StringBuffer("abc"); 
2.String s = new String("abc"); 
3.sb.append("def"); 
4.s.append("def"); 
5.sb.insert(1, "zzz"); 
6.s.concat(sb); 
7.s.trim();
 

Which of the following statements are true:

Mutiple: 
1) The compiler would generate an error for line 3.
2) The compiler would generate an error for line 4.
3) The compiler would generate an error for line 5.
4) The compiler would generate an error for line 6.
5) The compiler would generate an error for line 7.


Question 37
===========================================================
What is the result of executing the following Java class:

import java.awt.*;

public class FrameTest extends Frame {
  public FrameTest() {
    add (new Button("First"));
    add (new Button("Second"));
    add (new Button("Third"));
    pack();
    setVisible(true);
  }

  public static void main(String args []) {
    new FrameTest();
  }
}

Select from the following options:

Only One: 
1) Nothing happens.
2) A runtime exception is generated (no layout manager specified).
3) Only the "first" button is displayed.
4) Only the "second" button is displayed.
5) Only the "third" button is displayed.


Question 38
===========================================================
Consider the following tags and attributes of tags:

 1.CODEBASE 
 2.ALT 
 3.NAME 
 4.CLASS 
 5.JAVAC 
 6.HORIZONTALSPACE 
 7.VERTICALSPACE 
 8.WIDTH 
 9.PARAM 
10.JAR
 

Which of the above can be used within the <APPLET> and </APPLET> tags?

Mutiple: 
1) line 1, 2, 3
2) line 2, 5, 6, 7
3) line 3, 4, 5
4) line 8, 9, 10
5) line 8, 9


Question 39
===========================================================
Which of the following is a legal way to construct a RandomAccessFile:

Mutiple: 
1) RandomAccessFile("data", "r");
2) RandomAccessFile("r", "data");
3) RandomAccessFile("data", "read");
4) RandomAccessFile("read", "data");


Question 40
===========================================================
Carefully examine the following code:

public class StaticTest {
  static {
    System.out.println("Hi there");
  }

  public void print() {
    System.out.println("Hello");
  }

  public static void main(String args []) {
    StaticTest st1 = new StaticTest();
    st1.print();
    StaticTest st2 = new StaticTest();
    st2.print();
  }
}

When will the string "Hi there" be printed?

Mutiple: 
1) Never.
2) Each time a new instance is created.
3) Once when the class is first loaded into the Java virtual machine.
4) Only when the static method is called explicitly.


Question 41
===========================================================
Which of the following statements are valid, given the following variable declarations:  boolean a; boolean b; int c;

Mutiple: 
1) (a | b)
2) (a || a)
3) (a ^ b) | c
4) (a & c)
5) (a && c)


Question 42
===========================================================
Which of the following can be applied to constructors:

Mutiple: 
1) final
2) static
3) synchronized
4) native
5) None of these.


Question 43
===========================================================
Which of the following retain their preferred size (width and height) when added (individually) to the North section of a container with a BorderLayout (assume that no other components or containers are present in the North section).

Mutiple: 
1) TextArea
2) Button
3) TextField
4) Checkbox
5) None. All of these mentioned components will only retain their preferred height.


Question 44
===========================================================
Which of the following are legal names for variables.

Mutiple: 
1) _int
2) %large
3) $fred
4) Integer
5) 2much


Question 45
===========================================================
Which of the following are correct ways to create a font.

Mutiple: 
1) Font f = new Font("Serif", Font.BOLD, 24);
2) Font f = new Font(Font.SERIF, "Bold", 24);
3) Font f = new Font("Serif", "Bold", 24);
4) Font f = new Font(Font.SERIF, Font.BOLD, 24);


Question 46
===========================================================
Select the correct statements regarding the following piece of code.


File f = new File("c:\\large.txt");

Mutiple: 
1) On execution, a file called "large.txt" will be created on the local harddisk.
2) The code fails to compile on a UNIX machine, because the directory separator is not correct.
3) A file is NOT created on the harddisk when this code is executed.
4) An exception is thrown at runtime if the file "large.txt" already exists.
5) The code fails to compile, since this is not a valid constructor for the File class.


Question 47
===========================================================
Which of the following statements are correct regarding the RandomAccessFile class?

Mutiple: 
1) An IOException is thrown if the specified file doesn't exist when created using the "r" mode.
2) This class has a method which allows a file to be deleted from the harddisk.
3) It is possible to use this class in conjunction with the DataInputStream class.
4) When used with the "rw" mode, the specified file is created on a diskdrive, if it doesn't already exist.
5) There are methods to read and write primatives (eg, readInt(), writeInt(), etc).


Question 48
===========================================================
Consider the following piece of code and select the correct statement from the following.


1.String s = new String("abcdefgh");

2.s.replace('d', 'q');

3.System.out.println(s)

Only One: 
1) The code fails to compile, reporting an error at line 2. Strings are immutable, and therefore a replace() method is meaningless.
2) The code compiles correctly, and displays the text "abcqefgh".
3) The code compiles correctly, and displays the text "abcdefgh".
4) The code compiles, but an exception is thrown when line 2 is executed.
5) The code compiles, but an exception is thrown at line 3.


Question 49
===========================================================
Which of the following keywords can be applied to the variables or methods of an interface.

Mutiple: 
1) static
2) private
3) synchronised
4) protected
5) public


Question 50
===========================================================
True or False.


Only Frames can contain menu bars or pull-down menus

Only One: 

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美tk丨vk视频| 欧美日韩免费观看一区二区三区 | 国产一区二区调教| 亚洲va韩国va欧美va| 亚洲综合无码一区二区| 一区二区三区在线视频观看58| 日韩美女视频一区二区| 亚洲色图19p| 一区二区三区欧美在线观看| 亚洲高清在线精品| 午夜私人影院久久久久| 日韩av成人高清| 国产精品一卡二| 91在线视频观看| 欧美精品少妇一区二区三区| 欧美一区二区三区日韩| 亚洲精品在线免费播放| 欧美激情一区不卡| 亚洲激情图片小说视频| 日韩 欧美一区二区三区| 久久99精品久久久久久国产越南 | 亚洲视频在线观看三级| 一区二区三区免费看视频| 午夜日韩在线电影| 国产综合色精品一区二区三区| 国产999精品久久| 欧美午夜视频网站| 精品国免费一区二区三区| 国产精品成人午夜| 日韩和欧美的一区| 成人免费精品视频| 777午夜精品免费视频| 2023国产精品自拍| 亚洲精品国产视频| 国产一二精品视频| 欧美制服丝袜第一页| 亚洲精品一区二区在线观看| 亚洲欧洲成人精品av97| 蜜臀久久99精品久久久久久9| 成人一级视频在线观看| 69堂国产成人免费视频| 国产精品免费丝袜| 免费在线观看一区二区三区| 岛国精品在线观看| 91精品国产91综合久久蜜臀| 国产精品嫩草久久久久| 九九在线精品视频| 欧美日韩另类一区| 中文字幕日韩一区| 国内精品第一页| 欧美精品亚洲一区二区在线播放| 国产精品国产三级国产专播品爱网| 日日夜夜一区二区| 在线观看一区日韩| 中文字幕在线免费不卡| 国产精品一区二区久久不卡| 欧美福利一区二区| 亚洲综合丝袜美腿| 99v久久综合狠狠综合久久| 精品入口麻豆88视频| 日韩精品欧美精品| 欧美三电影在线| 亚洲精品欧美激情| 99re成人精品视频| 国产精品久久久久婷婷| 国产白丝精品91爽爽久久| 精品国产亚洲在线| 精品一区二区三区日韩| 欧美一区二区三区啪啪| 日韩精品欧美精品| 日韩欧美综合一区| 免费高清在线视频一区·| 69久久夜色精品国产69蝌蚪网| 亚洲精品视频免费看| 一本大道久久精品懂色aⅴ| 《视频一区视频二区| 成人aaaa免费全部观看| 1024成人网| 色噜噜狠狠成人中文综合 | 免费成人在线观看| 日韩一区二区在线看片| 婷婷国产v国产偷v亚洲高清| 在线播放中文字幕一区| 麻豆成人综合网| 欧美一级精品大片| 国产一区啦啦啦在线观看| 久久九九久精品国产免费直播| 国产最新精品精品你懂的| 国产婷婷一区二区| 不卡的av在线播放| 亚洲男人电影天堂| 欧美日高清视频| 蜜桃视频一区二区三区在线观看| 2017欧美狠狠色| 成人av在线看| 亚洲mv在线观看| 欧美xxxxxxxxx| 99久久99久久综合| 午夜精品福利一区二区三区蜜桃| 日韩欧美亚洲另类制服综合在线| 国产一区二区福利| 亚洲丝袜自拍清纯另类| 欧美一区二区二区| 国产91清纯白嫩初高中在线观看 | 麻豆高清免费国产一区| 国产日韩欧美精品电影三级在线| 99精品国产热久久91蜜凸| 同产精品九九九| 国产清纯在线一区二区www| 色综合天天做天天爱| 日韩精品免费视频人成| 国产欧美一区二区三区网站| 欧美亚洲综合另类| 国产剧情av麻豆香蕉精品| 亚洲精品久久嫩草网站秘色| 制服丝袜av成人在线看| 99久久免费精品| 蜜桃久久av一区| 一区二区激情小说| 国产欧美日韩三区| 欧美精品日韩一区| 成人h精品动漫一区二区三区| 午夜精品久久久久久不卡8050| 2017欧美狠狠色| 在线综合视频播放| 色欧美88888久久久久久影院| 久久精品99久久久| 午夜精品国产更新| 亚洲精品福利视频网站| 国产嫩草影院久久久久| 欧美一区二区视频在线观看| 色域天天综合网| 成人av在线影院| 国内精品在线播放| 日精品一区二区| 亚洲线精品一区二区三区 | 色综合欧美在线| 处破女av一区二区| 精品无人区卡一卡二卡三乱码免费卡 | 国精产品一区一区三区mba视频| 亚洲成av人片一区二区三区| 亚洲欧美激情一区二区| 国产日产亚洲精品系列| 亚洲精品一区二区三区蜜桃下载 | 国产老妇另类xxxxx| 人人狠狠综合久久亚洲| 无码av免费一区二区三区试看| 综合激情网...| 国产精品乱人伦| 中文字幕精品综合| 中文字幕av一区 二区| 国产亚洲一区二区三区四区| 久久一二三国产| 国产欧美一区二区精品性色超碰| 26uuu色噜噜精品一区| 久久久综合视频| 久久免费视频色| 中文字幕精品三区| 国产精品电影一区二区三区| 中文字幕中文字幕在线一区| 国产精品每日更新| 一区二区三区在线观看视频| 亚洲黄色免费电影| 首页国产欧美久久| 美腿丝袜亚洲色图| 国产真实乱偷精品视频免| 国产在线视频一区二区三区| 国产精品1024久久| 99精品欧美一区| 欧美人体做爰大胆视频| 日韩欧美中文字幕制服| 国产日韩欧美精品一区| 最新国产成人在线观看| 亚洲va国产天堂va久久en| 精品制服美女丁香| 成人免费高清视频| 91视频在线看| 欧美精品日韩一区| 久久精品亚洲一区二区三区浴池| 国产精品激情偷乱一区二区∴| 亚洲国产乱码最新视频| 日产国产高清一区二区三区| 国产精品一区二区免费不卡 | 一卡二卡三卡日韩欧美| 青草国产精品久久久久久| 国产精品资源在线看| 97久久精品人人澡人人爽| 91精彩视频在线观看| 久久视频一区二区| 亚洲影院理伦片| 懂色av中文字幕一区二区三区| 91传媒视频在线播放| xvideos.蜜桃一区二区| 一片黄亚洲嫩模| 国产激情一区二区三区四区 | www国产亚洲精品久久麻豆| 亚洲码国产岛国毛片在线| 美女脱光内衣内裤视频久久网站| 菠萝蜜视频在线观看一区| 日韩一区二区三区视频|