单项选择题X 纠错

A. baz has the value of “”.
B. baz has the value of null.
C. baz has the value of “red”
D. baz has the value of “blue”
E. baz has the value of “green”
F. The code does not compile.
G. the program throws an exception.

参考答案:
查答案就用赞题库小程序 还有拍照搜题 语音搜题 快来试试吧
无需下载 立即使用

你可能喜欢

单项选择题

A. -1
B. 225
C. 127
D. Compilation will fail.
E. Compilation will succeed but the program will throw an exception at line 4.

单项选择题

A. baz has a value of 0.
B. baz has a value of 1.
C. baz has the value of 2.
D. An exception is thrown.
E. The code will not compile.

单项选择题

A. Compilation succeed and d take the value 253.
B. Line 5 contains an error that prevents compilation.
C. Line 5 throws an exception indicating “out of range”
D. Line 3 and 4 contain errors that prevent compilation.
E. The compilation succeed and d takes the value of 1.

单项选择题

A. The program prints “0”.
B. The program prints “4”.
C. The program prints “8”.
D. The program prints “12”.
E. The code does not compile.

单项选择题

A. The program runs and prints “0”
B. The program runs and prints “1”
C. The program runs but aborts with an exception.
D. An error “possible undefined variable” at line 5 cause compilation to fail.
E. An error “possible undefined variable” at line 10 cause compilation to fail.

单项选择题

A. Compilation succeeds and l is printed.
B. Compilation succeeds and 2 printed.
C. An error at line 8 cause compilation to fail.
D. An error at line 14 cause complication to fail.
E. Complication succeeds but an exception is thrown at line 14.

多项选择题

A. private void set Var(int a, float c, int b) {}
B. protected void set Var(int a, int b, float c) {}
C. public int set Var(int a, float c, int b) {return a:}
D. public int set Var(int a, int b, float c) {return a:}
E. protected float set Var(int a, int b, float c) {return c:}

多项选择题

A. 16 > 4
B. 16 / 2
C. 16 * 4
D. 16 >> 2
E. 16 / 22
F. 16 >>> 2

多项选择题

A. AnAdapter1 aa = new AnAdapter1 () {}
B. AnAdapter0 aa = new AnAdapter0 () {}
C. AnAdapter0 aa = new AnAdapter0 (5) {}
D. AnAdapter1 aa = new AnAdapter1 (5) {}
E. AnInterface ai = new Anlnterface (5)) {}

赞题库

赞题库-搜题找答案

(已有500万+用户使用)


  • 历年真题

  • 章节练习

  • 每日一练

  • 高频考题

  • 错题收藏

  • 在线模考

  • 提分密卷

  • 模拟试题

无需下载 立即使用

版权所有©考试资料网(ppkao.com)All Rights Reserved