中兴面试测试题(共6页).doc
《中兴面试测试题(共6页).doc》由会员分享,可在线阅读,更多相关《中兴面试测试题(共6页).doc(6页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、精选优质文档-倾情为你奉上面试测试题2(一)、选择题(410):(1)Which of the following range of short is correct? CA. -27 27-1 B. 0 216-1 C. -215 215-1 D. -231 231-1 (2)Which declarations of identifiers are legal? ABEA. $persons B. TwoUsers C. *point D. this E. _endline (3)Given the following code: C1:public void modify() 2: in
2、t i, j, k; 3: i = 100; 4: while ( i 0 ) 5: j = i * 2; 6: System.out.println ( The value of j is + j ); 7: k = k + 1; 8: i-; 9: 10: Which line might cause an error during compilation? CA. line 4 B. line 6 C. line 7 D. line 8 (4)Which of the following answer is correct to express the value 8 in octal
3、number? AA. 010 B. 0x10 C. 08 D. 0x8 (5)Which are not Java keywords?AB A. TRUE B. sizeof C. const D. super E. void (6)Given the following code:1:class Person 2: public void printValue(int i, int j) /. 3: public void printValue(int i)/. 4: 5:public class Teacher extends Person 6: public void printVal
4、ue() /. 7: public void printValue(int i) /. 8: public static void main(String args) 9: Person t = new Teacher(); 10: t.printValue(10); 11: 12:Which method will the statement on line 10 call? DA. on line 2 B. on line 3 C. on line 6 D. on line 7 (7)Given the following code:public void test() try oneMe
5、thod(); System.out.println(condition 1); catch (ArrayIndexOutOfBoundsException e) System.out.println(condition 2); catch(Exception e) System.out.println(condition 3); finally System.out.println(finally); Which will display if oneMethod run normally? ADA. condition 1 B. condition 2 C. condition 3 D.
6、finally(8)Given the following code: public class Test void printValue(int m) do System.out.println(The value is+m); while( -m 10 ); public static void main(String arg) int i=10; Test t= new Test(); t.printValue(i); Which will be output? CA. The value is 8 B. The value is 9 C. The value is 10 D. The
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 中兴 面试 测试
限制150内