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

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

?? mockcert06.txt

?? 一道JAVA方面的試題 很不錯的 我很喜歡
?? TXT
?? 第 1 頁 / 共 5 頁
字號:
Question 1
===========================================================
True or false: A signed data type has an equal number of non-zero positive and negative values available.

Only One: 
1) True
2) False


Question 2
===========================================================
Choose the valid identifiers.

Mutiple: 
1) BigOlLongStringWithMeaninglessName
2) $int
3) bytes
4) $1
5) finalist


Question 3
===========================================================
Which of the following signatures are valid for the main() method entry point of an application?

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


Question 4
===========================================================
If all three top-level elements occur in a source file, they must appear in which order?

Only One: 
1) Imports, package declaration, classes.
2) Classes, imports, package declarations.
3) Package declaration must come first; order for imports and class definitions is not significant.
4) Package declaration, imports, classes.
5) Imports must come first; order for package declaration and class definitions is not significant.


Question 5
===========================================================
Consider the following line of code:

  int[] x = new int[25];

After execution, which statement or statements are true?

Mutiple: 
1) x[24] is 0.
2) x[24] is undefined.
3) x[25] is 0.
4) x[0] is null.
5) x.length is 25.


Question 6
===========================================================
Consider the following application: 
 1. class Q6 {
 2.   public static void main(String args[]) {
 3.     Holder h = new Holder();
 4.     h.held = 100;
 5.     h.bump(h);
 6.     System.out.println(h.held);
 7.   }
 8. }
 9.
10. class Holder {
11.   public int held;
12.   public void bump(Holder theHolder) {
13.     theHolder.held++;
14.   }
15. }

What value is printed out at line 6?

Only One: 
1) 0
2) 1
3) 100
4) 101


Question 7
===========================================================
Consider the following application: 

 1. class Q7 {
 2.   public static void main(String args[]) {
 3.     double d = 12.3;
 4.     Decrementer dec = new Decrementer();
 5.     dec.decrement(d);
 6.     System.out.println(d);
 7.   }
 8. }
 9.
10. class Decrementer {
11.   public void decrement(double decMe) {
12.     decMe = decMe - 1.0;
13,  }
14. }

What value is printed out at line 6?

Only One: 
1) 0.0
2) -1.0
3) 12.3
4) 11.3


Question 8
===========================================================
How can you force garbage collection of an object?

Only One: 
1) Garbage collection cannot be forced.
2) Call System.gc().
3) Call System.gc(), passing in a reference to the object to be garbage-collected.
4) Call Runtime.gc().
5) Set all references to the object to new values (null, for example).


Question 9
===========================================================
What is the range of values that can be assigned to a variable of type short?

Only One: 
1) It depends on the underlying hardware.
2) 0 through 2^16 - 1
3) 0 through 2^32 - 1
4) -2^15 through 2^15 - 1
5) -2^31 through 2^31 - 1


Question 10
===========================================================
What is the range of values that can be assigned to a variable of type byte?

Only One: 
1) It depends on the underlying hardware.
2) 0 through 2^8 - 1
3) 0 through 2^16 - 1
4) 0 through 2^16 - 1
5) -2^15 through 2^15 - 1


Question 11
===========================================================
After execution of the code fragment below, what are the values of the variables x, a, and b? 
1. int x, a = 6, b = 7;
2. x = a++ + b++;

Only One: 
1) x = 15, a = 7, b = 8
2) x = 15, a = 6, b = 7
3) x = 13, a = 7, b = 8
4) x = 13, a = 6, b = 7


Question 12
===========================================================
Which of the following expressions are legal? (Choose one or more.)

Mutiple: 
1) int x = 6; x = !x;
2) int x = 6; if (!(x > 3)) {}
3) int x = 6; x = ~x;


Question 13
===========================================================
Which of the following expressions results in a positive value in x? (Choose one.)

Only One: 
1) int x = -1; x = x >>> 5;
2) int x = -1; x = x >>> 32;
3) byte x = -1; x = x >>> 5;
4) int x = -1; x = x >> 5;


Question 14
===========================================================
Which of the following expressions are legal? (Choose one or more.)

Mutiple: 
1) String x = "Hello"; int y = 9; x += y;
2) String x = "Hello"; int y = 9; if (x == y) {}
3) String x = "Hello"; int y = 9; x = x + y;
4) String x = "Hello"; int y = 9; y = y + x;
5) String x = null;int y = (x != null) && (x.length() > 0) ? x.length() : 0;


Question 15
===========================================================
Which of the following code fragments would compile successfully and print "Equal" when run? (Choose one or more.)

Mutiple: 
1) int x = 100; float y = 100.0F;
   if (x == y){ System.out.println("Equal");}
2) int x = 100; Integer y = new Integer(100);
   if (x == y) { System.out.println("Equal");}
3) Integer x = new Integer(100);
   Integer y = new Integer(100);
   if (x == y) { System.out.println("Equal");}
4) String x = new String("100");
   String y = new String("100");
   if (x == y) { System.out.println("Equal");}
5) String x = "100";
   String y = "100";if (x == y) { System.out.println("Equal");}


Question 16
===========================================================
What results from running the following code?

1. public class Short {
2.   public static void main(String args[]) {
3.     StringBuffer s = new StringBuffer("Hello");
4.     if ((s.length() > 5) &&
5.       (s.append(" there").equals("False")))
6.       ; // do nothing
7.     System.out.println("value is " + s);
8.   }
9. }

Only One: 
1) The output: value is Hello
2) The output: value is Hello there
3) A compiler error at line 4 or 5
4) No output
5) A NullPointerException


Question 17
===========================================================
What results from running the following code?

1. public class Xor {
2.   public static void main(String args[]) {
3.     byte b = 10; // 00001010 binary
4.     byte c = 15; // 00001111 binary
5.     b = (byte)(b ^ c);
6.     System.out.println("b contains " + b);
7.   }
8. }

Only One: 
1) The output: b contains 10
2) The output: b contains 5
3) The output: b contains 250
4) The output: b contains 245


Question 18
===========================================================
What results from attempting to compile and run the following code?

1. public class Conditional {
2.   public static void main(String args[]) {
3.     int x = 4;
4.     System.out.println("value is " +
5.       ((x > 4) ? 99.99 : 9));
6.   }
7. }

Only One: 
1) The output: value is 99.99
2) The output: value is 9
3) The output: value is 9.0
4) A compiler error at line 5


Question 19
===========================================================
What is the output of this code fragment?

1. int x = 3; int y = 10;
2. System.out.println(y % x);

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


Question 20
===========================================================
What results from the following fragment of code?

1. int x = 1;
2. String [] names = { "Fred", "Jim", "Sheila" };
3. names[--x] += ".";
4. for (int i = 0; i < names.length; i++) {
5.   System.out.println(names[i]);
6. }

Only One: 
1) The output includes Fred. with a trailing period.
2) The output includes Jim. with a trailing period.
3) The output includes Sheila. with a trailing period.
4) None of the outputs show a trailing period.
5) An ArrayIndexOutOfBoundsException is thrown.


Question 21
===========================================================
Which of the following declarations are illegal? (Choose one or more.)

Mutiple: 
1) default String s;
2) transient int i = 41;
3) public final static native int w();
4) abstract double d;
5) abstract final double hyperbolicCosine();


Question 22
===========================================================
Which one of the following statements is true?

Only One: 
1) An abstract class may not have any final methods.
2) A final class may not have any abstract methods.


Question 23
===========================================================
What is the minimal modification that will make this code compile correctly?

 1. final class Aaa
 2. {
 3.     int xxx;
 4.     void yyy() { xxx = 1; }
 5. }
 6.
 7.
 8. class Bbb extends Aaa
 9. {
10.     final Aaa finalref = new Aaa();
11.
12.     final void yyy()
13.     {
14.         System.out.println("In method yyy()");
15.         finalref.xxx = 12345;
16.     }
17. }

Only One: 
1) On line 1, remove the final modifier.
2) On line 10, remove the final modifier.
3) Remove line 15.
4) On lines 1 and 10, remove the final modifier.
5) The code will compile as is. No modification is needed.


Question 24
===========================================================
Which one of the following statements is true?

Only One: 
1) Transient methods may not be overridden.
2) Transient methods must be overridden.
3) Transient classes may not be serialized.
4) Transient variables must be static.
5) Transient variables are not serialized.


Question 25
===========================================================
Which one statement is true about this application?

 1. class StaticStuff
 2  {
 3.     static int x = 10;
 4.
 5.     static { x += 5; }
 6.
 7.     public static void main(String args[])
 8.     {
 9.         System.out.println("x = " + x);
10.     }
11.
12.     static { x /= 5; }
13. }

Only One: 
1) Lines 5 and 12 will not compile, because the method names and return types are missing.
2) Line 12 will not compile, because you can only have one static initializer.
3) The code compiles, and execution produces the output x = 10.
4) The code compiles, and execution produces the output x = 15.
5) The code compiles, and execution produces the output x = 3.


Question 26
===========================================================
Which one statement is true about this code?

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线精品视频免费观看| 欧美国产激情二区三区| 精品久久久网站| 中文字幕一区二区三中文字幕| 亚洲丶国产丶欧美一区二区三区| 另类小说欧美激情| 欧美日韩一区久久| 国产精品的网站| 久久99精品久久久久久国产越南 | 精品国产亚洲在线| 玉米视频成人免费看| 国产高清一区日本| 欧美成人官网二区| 日韩综合小视频| 欧美艳星brazzers| 亚洲欧美国产高清| 菠萝蜜视频在线观看一区| 精品国产乱码久久久久久影片| 午夜精品福利一区二区三区av| 99国产欧美久久久精品| 久久久久久久综合色一本| 蜜臀av国产精品久久久久| 欧美日韩一区 二区 三区 久久精品| 国产精品第一页第二页第三页| 高清在线不卡av| 久久精品日韩一区二区三区| 久久se精品一区二区| 日韩欧美电影在线| 久久9热精品视频| 欧美v日韩v国产v| 麻豆国产精品一区二区三区| 欧美一区二区播放| 久久99精品国产91久久来源| 制服丝袜亚洲网站| 日本怡春院一区二区| 欧美一区二区三区系列电影| 蜜桃一区二区三区在线观看| 精品久久久久久久久久久久包黑料 | 亚洲精品第一国产综合野| 91蜜桃视频在线| 亚洲国产一区二区视频| 欧美日韩精品专区| 蜜桃久久久久久| 欧美精品一区二区在线播放| 国产高清视频一区| 亚洲同性同志一二三专区| 在线视频国产一区| 五月天亚洲婷婷| 日韩精品一区二区三区四区| 国产在线一区观看| 亚洲欧洲日本在线| 欧美精品三级日韩久久| 蜜臀av性久久久久蜜臀aⅴ四虎| 亚洲精品中文字幕在线观看| 国产精品自拍一区| 国产丝袜在线精品| 91视频你懂的| 日本aⅴ亚洲精品中文乱码| 欧美一级生活片| 成人免费毛片a| 亚洲一区二区视频在线| 日韩视频在线你懂得| 国产精品888| 亚洲精品成人a在线观看| 宅男噜噜噜66一区二区66| 国产成人免费在线| 亚洲成人av资源| 国产日韩精品一区二区三区| 色天使色偷偷av一区二区| 久久99热国产| 亚洲丝袜另类动漫二区| 日韩欧美国产电影| 一本一本大道香蕉久在线精品 | 欧美日韩高清影院| 国产精品亚洲第一区在线暖暖韩国| 亚洲日本免费电影| 精品国产一区二区国模嫣然| 色成人在线视频| 国产伦精一区二区三区| 亚洲免费视频成人| 国产日韩欧美高清| 欧美一级片免费看| 欧美亚洲日本一区| 成人国产在线观看| 精品亚洲成a人| 天堂久久一区二区三区| 国产精品福利一区二区三区| 欧美成人猛片aaaaaaa| 欧美吞精做爰啪啪高潮| 风间由美一区二区三区在线观看| 亚洲国产视频一区| 亚洲欧美日韩在线| 国产精品免费视频观看| 精品奇米国产一区二区三区| 欧美乱妇20p| 色视频一区二区| av一二三不卡影片| 国产白丝精品91爽爽久久| 久久国产精品露脸对白| 奇米影视一区二区三区小说| 亚洲一区二区三区自拍| 亚洲欧美另类综合偷拍| 国产精品久久三区| 日本一区二区三区在线不卡| 久久亚洲精精品中文字幕早川悠里 | 欧美白人最猛性xxxxx69交| 欧美日韩在线三级| 欧美亚洲综合另类| 日本精品一区二区三区四区的功能| 国产aⅴ精品一区二区三区色成熟| 久久精品久久久精品美女| 免费看黄色91| 久久精品国产免费| 国产美女在线精品| 国产成人综合亚洲91猫咪| 国产不卡视频一区| 99在线视频精品| 色综合久久中文字幕| 91亚洲国产成人精品一区二三| 成人av在线影院| 色香色香欲天天天影视综合网| 99久久精品国产一区二区三区| 色综合久久中文字幕综合网| 在线观看成人小视频| 欧美日韩色综合| 欧美一级免费观看| 久久综合久久综合亚洲| 国产农村妇女毛片精品久久麻豆 | 一区二区三区精品在线| 亚洲一区二区精品视频| 日韩中文字幕区一区有砖一区| 美国三级日本三级久久99 | 麻豆精品一二三| 国产伦精品一区二区三区免费迷| 国产精品一区二区在线观看网站| 国产成人精品亚洲午夜麻豆| 成人福利视频网站| 欧美亚洲尤物久久| 久久久亚洲欧洲日产国码αv| 国产欧美一区二区精品性色| 国产精品美女久久久久久| 一区二区成人在线视频 | 99在线精品视频| 欧美三级资源在线| 精品国产一二三| 亚洲精品大片www| 韩国成人福利片在线播放| 成人avav影音| 在线不卡免费欧美| 中文字幕 久热精品 视频在线| 亚洲一二三专区| 国产成人免费在线观看不卡| 欧美午夜电影网| 久久精品无码一区二区三区| 樱桃视频在线观看一区| 国产在线国偷精品免费看| 一本色道久久综合亚洲aⅴ蜜桃 | 日韩欧美激情四射| 亚洲欧洲日产国产综合网| 免费成人av在线| 色婷婷激情综合| 久久久亚洲午夜电影| 视频一区在线播放| av中文一区二区三区| 26uuu国产日韩综合| 一区二区高清视频在线观看| 国产成人精品三级| 日韩精品一区二区三区在线| 一区二区三区四区av| 国产不卡高清在线观看视频| 制服丝袜日韩国产| 亚洲专区一二三| 99免费精品视频| 久久久噜噜噜久久人人看| 日韩成人dvd| 欧美唯美清纯偷拍| 亚洲乱码日产精品bd| 丁香婷婷综合色啪| 久久综合久久综合久久| 五月激情综合色| 欧美午夜电影网| 亚洲精品久久久蜜桃| 成人av一区二区三区| 国产欧美日韩综合精品一区二区| 美女脱光内衣内裤视频久久网站 | 色综合激情久久| 亚洲免费在线视频一区 二区| 国产成人av一区二区| 国产亚洲综合性久久久影院| 久久精品国产网站| 日韩欧美久久久| 蜜桃免费网站一区二区三区 | 欧美日韩日本视频| 亚洲精品免费在线| 色8久久人人97超碰香蕉987| 亚洲男帅同性gay1069| 色天天综合久久久久综合片| 亚洲男人的天堂网| 在线观看91精品国产入口| 亚洲一级二级在线|