千家信息网

2014 IGT 软件测试开发工程师笔试(java-B1版)

发表于:2025-12-02 作者:千家信息网编辑
千家信息网最后更新 2025年12月02日,【IGT】 Paper Test For Campus Recruiting注:分享出来,仅做个人知识点的查漏补缺以及鞭策自己更加努力地学习!(粗体红字为鄙人做的答案,可能会有错误,还望能有人指出。)
千家信息网最后更新 2025年12月02日2014 IGT 软件测试开发工程师笔试(java-B1版)

【IGT】 Paper Test For Campus Recruiting

注:分享出来,仅做个人知识点的查漏补缺以及鞭策自己更加努力地学习!(粗体红字为鄙人做的答案,可能会有错误,还望能有人指出。)

Part 1:

1、which of these is a legal definition of a method named m assuming it throws IOExecption,and returns void .Also assume that the method does not take any arguments.Select the one correct answer.

A void m() throws IOExecption{}

B void m() throw IOExecption{}

C void m(void) throw IOExecption{}

D void m(){}throws IOExecption{}


2、which of the following is legal identifier name in java.

A %abcd

B 1abcd(第一个为数字1)

C package

D _a_long_name

(知识点说明:Java语言规定标识符是以字母、下划线"_"或美元符号"$"开始,随后可跟数字、字母、下划线或美元符号的字符序列,当然不能用关键字作为标识符。)


3、what will happen when you attempt to compile and run the following code?

package igt;

public class igt {

public static void main(String[] args){

int i;

switch(i){

case 0:System.out.println(0);

case 1:System.out.println(1);break;

case 2:System.out.println(2);

case 3:System.out.println(3);break;

}

}

}

A 0

B 01

C 0123

D compile error

(知识点说明:关于java变量是否自动初始化问题--成员变量会被初始化,局部变量不会初始化。局部变量如果定义时没有进行初始化,系统不会自动为其进行初始化,因而编译时会出错。如下图所示:







4、what will be the output of the program?

public class test_4 {

static class A{

public int x = 10;

public int y = 20;

int f(){

return y;

}

}

static class B extends A{

public int x = 1;

public int y = 30;

int f(){

return y;

}

}

public static void main(String[] args){

A a = new B();

System.out.print(a.x+",");

System.out.println(a.f());

}

}

A 10,20

B 10,30

C 1,20

D 1,30

(实验得出结果是B,不解中....)


5、what will be the output of the program?

public class test_5 extends Base{

static{

System.out.print("6");

}{

System.out.print("5");

}

public test_5(){

System.out.print("4");

}

public static void main(String[] args){

new test_5();

}

}

class Base{

static{

System.out.print("3");

}{

System.out.print("2");

}

public Base(){

System.out.print("1");

}

}

A 326514

B 361425

C 362154

D 362514
(实验得出结果是C,不解中....)


Part 2:

6、please decribe the scenarios of using String StringBuffer StringBuilder,and what is the difference between StringBuffer and StringBuilder?


7、please explain the difference between checked exception and runtime exception and the usage of these two kinds of exception.


8、please give an example of self-defined class that could be sorted in Collections.sort() method


9、please list at least three design patterns and its usage in your daily development.


Part 3:

10、please implement a function to find the longest common sub-string of two given string.

for example:

string a: abcdefg12345

string b:cdef234

longest common sub-string:cdef

(字符串匹配问题常考查,需研究透彻!)


--------------------------未解问题,待续。

变量 知识 知识点 问题 下划线 字母 字符 局部 数字 标识 标识符 符号 结果 实验 透彻 个人 关键 关键字 字符串 序列 数据库的安全要保护哪些东西 数据库安全各自的含义是什么 生产安全数据库录入 数据库的安全性及管理 数据库安全策略包含哪些 海淀数据库安全审计系统 建立农村房屋安全信息数据库 易用的数据库客户端支持安全管理 连接数据库失败ssl安全错误 数据库的锁怎样保障安全 晋城天气预报软件开发 河北潘达网络技术有限公司 泰州高防服务器 软件开发需要学哪几种语言 数据库支持乘法 dede里的数据库在哪儿 软件开发需要掌握哪些知识 清远月嫂行业软件开发收费 字符串用逗号隔开查询数据库 新他山网络技术 中小学网络安全会议记录范文 黑莓q20 服务器 普陀区信息软件开发采购 数据库管理系统的数据独立性 谷歌服务器未受保护 联合国商品贸易数据库美国 杭州net软件开发哪家可靠 阿里集团网络安全部门 南京华为鲲鹏服务器 上海电商软件开发哪家专业 网络软件开发实训最新完整版 免费服务器代理在线 pumed数据库导出文献 国家网络安全办公室主任是谁 如何认识到当今网络安全的情况 暴雪美版服务器怎么下载 农业银业软件开发武汉 30岁学软件开发晚吗 国内游戏软件开发公司排名 手术导航系统软件开发知识
0