华数网通java工程师试题

上传人:luoxia****01803 文档编号:65839088 上传时间:2019-01-02 格式:PDF 页数:3 大小:100.37KB
返回 下载 相关 举报
华数网通java工程师试题_第1页
第1页 / 共3页
华数网通java工程师试题_第2页
第2页 / 共3页
华数网通java工程师试题_第3页
第3页 / 共3页
亲,该文档总共3页,全部预览完了,如果喜欢就下载吧!
资源描述

《华数网通java工程师试题》由会员分享,可在线阅读,更多相关《华数网通java工程师试题(3页珍藏版)》请在金锄头文库上搜索。

1、第 1 页 共 3 页 非常感谢您对华数网通信息港有限公司招聘工作的大力 支持,笔试卷答题会占用您宝贵的时间,敬请谅解,同时, 为了真实反映您对本笔试卷所涉及知识面的掌握程度,请您 自觉遵守闭卷测试要求。答题结束后,请您将试卷、答题卡、 草稿纸一同交给人力资源部,联系电话:89778795。 JAVA 研发工程师研发工程师 (2011 版) (考试时间:(考试时间:50 分钟分钟 考试总分:考试总分:100 分)分) 姓名:姓名: 手机:手机: 得分:得分: 一、单项选择题(每题一、单项选择题(每题 2 分,共分,共 40 分)分) 、下列叙述中,正确的是( ) A、Java 语言的标识符是区

2、分大小写的 B、源文件名与 public 类名可以不相同 C、源文件名其扩展名为.jar D、源文件中 public 类的数目不限 、在软件开发中,下面任务不属于设计阶段的是( ) A、数据结构设计 B、给出系统模块结构 C、定义模块算法 D、定义需求并建立系统模型 、Java 虚拟机的执行过程有多个特点,下列哪个特点不属于 JVM 执行特点?( ) A、多线程 B、动态连接 C、异常处理 D、异步处理 、在关系数据库中,用来表示实体之间联系的是( ) A、树结构 B、网状结构 C、线性表 D、二维表 5、能够支持 javadoc 命令的注释语句是( ) A、/*./ B、/*.*/ C、/

3、D、/*.*/ 6、在匹配器(Matcher)类中,用于输入字符串与模式串比较的方法是( ) A、static boolean matches() B、boolean matcher.find() C、int matcher.start() D、int matcher.end() 7、给出下面程序段: if(x0)System.out.println(“Hello.“); else if(x- 3)System.out.println(“Nice to meet you!“); else System.out.println(“How are you?“); 若打印字符串“How are yo

4、u?”,则 x 的取值范围是( ) A、x0 B、x- 3 C、x- 3 8、编译并且执行以下代码,会出现什么情况?( ) public class Q public static void main(String argv) int anar=new int1,2,3; System.out.println(anar1); A、1 B、有错误,数组 anar 在初始化以前不能正常输出。 C、2 D、有错误,数组的大小没有定义 9、下面属于 Java 关键字的是( ) A、NULL B、IF C、do D、While 10、在 Java 中,由 Java 编译器自动导入,而无需在程序中用 im

5、port 导入的包是( ) A、java.applet B、java.awt C、java.util D、java.lang 11 、Which statement is true about an inner class? ( ) A、It must be anonymous B、 It can not implement an interface C、 It is only accessible in the enclosing class D、 It can access any final variables in any enclosing scope. 12 、Which cont

6、ains objects without ordering, duplication, or any particular lookup/retrieval mechanism? ( ) A、Map B、Set C、List D、Collection E、Enumeration 13 、The argument for a classs main() method is called args, and the class is invoked as follows. java Example cat What would be the effect of trying to access a

7、rgs0 in the main method? ( ) A、 The value produced is cat B、The value produced is java C、 The value produced is Example D、 An object of type NullPointerException is thrown. E. An object of type ArrayIndexOutofBoundsException is thrown. 14 、Which of the following range of short is correct? ( ) A、 - 2

8、7 - - 27- 1 B、 0 216- 1 C、 215 215- 1 D、 231 231- 1 15 、 Which layout manager is used when the frame is resized the buttonss position in the Frame might be changed? ( ) A、 BorderLayout B、FlowLayout C、 CardLayout D、GridLayout 16、 Which of the following answer is correct to express the value 8 in octa

9、l number? ( ) A、 010 B、 0x10 C、 08 D、 0x8 17、Which of the following range of int is correct? ( ) A、- 27 27- 1 B、0 232- 1 C、215 215- 1 D、 231 - - 231- 1 18、Which keyword should be used to enable interaction with the lock of an object? The flag allows exclusive access to that object. ( ) A、 transient

10、B、 synchronized C、 serialize D、 static 19、Which is the return type of the method main()? ( ) A、 int B、 void C、 boolean D、static 20、public class test ( public static void main (String args) int i = 0xFFFFFFF1; int j = i; ) What is the decimal value of j at line 5? ( ) PDF 文件使用 “pdfFactory Pro“ 试用版本创建

11、 第 2 页 共 3 页 A、0 B、 1 C、14 D、15 E、An error at line 3 causes compilation to fail. F、 An error at line 4 causes compilation to fail. 二、多项选择题(每题二、多项选择题(每题 2 分,共分,共 20 分)分) 1、Which correctly create an array of five empty Strings? ( ) A、 String a = new String5;for (int i=0;i5;ai+=” ”); B、 String a =“”,”

12、 ”,” ”,” ”,” ”; C、 String a5; D、 String 5 a; 2、哪些不是 Java 关键字? ( ) A、TRUE B、const C、sizeof D、super 3、下面哪些是合法的标识符?( ) A、$persons B、TwoUsers C、*point D、this 4、哪些类可以作为 FileInputStream类的构造方法的参数?( ) A、 InputStream B、 File C、 FileOutputStream D、 String 5、下面哪些不是 java 的简单数据类型? ( ) A、short B、 Boolean C、 unit

13、D、 float 6、下面的哪些程序片断可能导致错误? ( ) A、 String s = “Gone with the wind“; String t = “ good “; String k = s + t; B、 String s = “Gone with the wind“; String t; t = s3 + “one“; C、 String s = “Gone with the wind“; String standard = s.toUpperCase(); D、 String s = “home directory“; String t = s - “directory“;

14、7、变量“result“是一个 boolean 型的值,下面的哪些表达式是合法的? ( ) A、 result = true ; B、 if ( result ) / do something. C、 if ( result!= 0 ) / so something. D、 result = 1 8、下面关于变量及其范围的陈述哪些是对的?( ) A、 实例变量是类的成员变量; B、 实例变量用关键字 static 声明; C、 在方法中定义的局部变量在该方法被执行时创建; D、 局部变量在使用前必须被初始化; 9、下列语句:哪些返回 true。 ( ) String s= “hello“; String t = “hello“; char c = h,e,l,l,o ; 哪些返回 true A、 s.equals(t); B、 t.equals(c); C、 t.equals(new String(“hello“); D、 t=C、 10、给出下面的代码片断: ( ) 1) switc

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 中学教育 > 教学课件 > 高中课件

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号