好文档 - 专业文书写作范文服务资料分享网站

人保财老架构笔试--高级

天下 分享 时间: 加入收藏 我要投稿 点赞

人保财考试题目--高级

一、单选

第1题

1. 关于以下程序段,正确的说法是()1. String s1=”abc”+”def”; 2. String s2=new String(s1); 3. if(s1==s2) 4. System.out.println(“== succeeded”) 5. if(s1.equals(s2)) 6. System.out.println(“.equal() succeeded”);

A. 行4与行6都将执行 B. 行4执行,行6不执行 C. 行6执行,行4不执行 D. 行4、行6都不执行 参考答案:C

第2题

2. 若a的值为3时,下列程序段被执行后,c的值是多少?()if(a>0) if(a>3) c=2; else c=3; else c=4; A. 2 B. 3 C. 1 D. 4

参考答案:B

第3题

3. 运行下列程序,会产生什么结果()public class X extends Thread implements Runnable{public void run() { System.out.println(“this is run()”); } public static void main(String args[]) { Thread t=new Thread(new X()); t.start(); } } A. 第六行会产生编译错误 B. 第一行会产生编译错误 C. 第六行会产生运行错误 D. 程序会运行和启动 参考答案:D

第4题

4. 如下代码 public class Test {public int aMethod() { static int i = 0; i++; return i; } public static void main (String args[]) { Test test = new Test(); test.aMethod(); int j = test.aMethod(); System.out.println(j); } } 输出结果是什么?() A. 0

B. 编译失败 C. 1 D. 2 参考答案:B

第5题

5. 如何在文件中查找显示所有以”*”打头的行? A. grep -n * file B. find * file C. wc -l * < file D. grep ‘^*’ file 参考答案:D

第6题

6. 下面的方法,当输入为2的时候返回值是多少?() public int getValue(int i) { int result = 0; switch (i) { case 1: result = result + i; case 2: result = result + i * 2; case 3: result = result + i * 3; } return result; } A. 0 B. 2 C. 4 D. 10 参考答案:D

第7题

7. 在给定文件中查找与设定条件相符字符串的命令为: A. grep B. gzip C. find D. sort

参考答案:A

第8题

8. 下面哪个命令不是用来查看网络故障的? A. ping B. init C. telnet D. netstat 参考答案:B

第9题

9. Linux中,删除文件命令为: A. rmdir B. mkdir C. mv D. rm

参考答案:D

第10题

10. 设超级用户root,当前所在目录为:/usr/local,键入cd命令后,用户当前所在目录为: A. /home B. /root

C. /home/root D. /usr/local 参考答案:B

第11题

11. 在JavaScript中,以下代码能并闭一个窗口的是: A. Window.close() B. Window.exit()

C. Window.shutdown() D. Window.end() 参考答案:D

第12题

12. 以下关于CSS Hack描述中错误的是: A. IE都能识别*

B. IE6能识别_

C. IE7能识别!important D. IE8不能识别_ 参考答案:D

第13题

13. 设x为float型变量,y为double型变量,a为int型变量,b为long型变量,c为char型变量,则表达式x+y*a/x+b/y+c的值为()类型。 A. double B. int C. long D. char

参考答案:A

第14题

14. Exhibit 1. class A { 2. public String toString () { 3. return “4”; 4. } 5. } 6. class B extends A { 7. public String toString () { 8. return super.toString() + “3”; 9. } 10. } 11. public class Test { 12. public static void main(String[] args) { 13. System.out.println(new B()); 14. } 15. } What is the result? A. Compilation succeeds and 4 is printed.

B. An error on line 9 causes compilation to fail. C. Compilation succeeds and 43 is printed. D. An error on line 14 cause compilation to fail.

E. Compilation succeeds but an exception is thrown at line 9. 参考答案:B

第15题

15. 可以在创建表时用(___) 来创建唯一索引,也可以用(___) 来创建唯一索引。 A. 以上都可以

B. 设置主键约束,设置唯一约束 C. Create table, Create index D. 设置主键约束,Create index 参考答案:D

第16题

16. 关于Javascript中Date类型对象getMonth()方法的描述正确的是: A. 获取的月份是从1开始计数的 B. 获取的月份是从0开始计数的

C. 无法获取月份

D. 获取的月份是英文单词的缩写,如六月份为Jun 参考答案:B

第17题

17. 基于以下java代码 String s = null; 下面哪一项可能造成NullPointerException: A. if((s!=null) & (s.length()>0)) B. if((s!=null) && (s.length()>0)) C. if((s==null) || (s.length()==0)) D. if(“”.equals(s)) 参考答案:A

第18题

18. 1ist是一个ArrayList的对象,哪个选项的代码填写到/todo delete处,可以在Iterator遍历的过程中正确并安全的删除一个list中保存的对象?() Iterator it = list.iterator(); int index = 0; while (it. hasNext()) { Object obj= it.next(); if(needDelete(obj)) { //needDelete返回boolean, 决定是否要删除 //todo delete } index ++; } A. list.remove(obj); B. list. remove(index); C. list.remove(it.next()); D. it.remove(); 参考答案:D

第19题

19. Which statements about the garbage collection are true?

A. The garbage collection allow the program developer to explicity and immediately free the memory.

B. The program developer must create a thread to be responsible for free the memory. C. The garbage collection will check for and free memory no longer needed. D. The garbage collection can free the memory used java object at expect time. 参考答案:C

第20题

20. 设有关系模式R (课程,教师,学生,成绩,时间,教室),其中函数依赖集F如下: F={课程→→教师, (学生,课程)→成绩,(时间,教室)→课程,(时间,教师)→教室,(时间,学生)→教室,关系模式R的一个主键是() A. (时间,教师)

人保财老架构笔试--高级

人保财考试题目--高级一、单选第1题1.关于以下程序段,正确的说法是()1.Strings1=”abc”+”def”;2.Strings2=newString(s1);3.if(s1==s2)4.System.out.println(“==succeeded”)5.if(s1.equals(s2))6.Syste
推荐度:
点击下载文档文档为doc格式
060wi28s173uh255c6he20sz532aec00c9f
领取福利

微信扫码领取福利

微信扫码分享