海辉软件笔试题(一)
- 格式:doc
- 大小:154.50 KB
- 文档页数:5
软件类笔试题一、题目描述某公司需要招聘一名软件工程师,为了选拔最优秀的候选人,公司设计了以下笔试题,请根据题目要求完成相应的操作。
二、题目一:编程题请编写一个Java程序,实现一个简单的计算器。
要求用户输入两个数字和一个运算符(+、-、*、/),程序通过计算后输出结果。
示例输入:2 + 3示例输出:5三、题目二:算法题给定一个整数数组,找出其中和为特定值的两个数,并返回这两个数的索引。
你可以假设每个输入都只有一个解,并且同样的元素不能被重复利用。
示例输入:[2, 4, 6, 8, 10],目标和为12示例输出:[1, 3]四、题目三:数据库设计某电商公司需要设计一个数据库来管理商品信息。
该数据库需要包含以下表:1. 商品表(products):包含商品ID、商品名称、商品价格等字段;2. 分类表(categories):包含分类ID、分类名称等字段;3. 商品分类关联表(product_category):用于关联商品和分类,包含商品ID和分类ID字段。
请设计上述表的结构,并提供SQL语句创建这些表。
五、题目四:软件测试某软件公司需要开发一个在线购物平台,需要进行系统功能测试。
请根据给定的测试用例,编写完整的测试计划,包括测试目标、测试环境、测试策略、测试用例设计等内容。
测试用例:1. 用户登录测试:输入正确的用户名和密码,验证登录是否成功。
2. 商品搜索测试:输入关键词进行商品搜索,验证搜索结果是否准确。
3. 添加购物车测试:选择商品添加到购物车,验证购物车中是否正确添加了商品。
4. 订单支付测试:选择商品下单并进行支付,验证订单支付是否成功。
5. 系统稳定性测试:模拟多用户同时操作系统,验证系统的响应速度和稳定性。
六、题目五:软件项目管理某软件公司计划开发一个新的手机应用程序。
请根据以下要求,设计一个项目计划:1. 项目目标:开发一款功能完善、用户友好的手机应用程序,满足用户对各类功能的需求。
试题一:综合(基本知识引导,思考,)1.面向对象语言的特征中字符流和字节流的区别?2.和的区别的生命周期? 的生命周期?3.协议是长连接还是短连接?4.的基本数据类型有那些? 是不是基本类型?5.的概念和在项目中的应用?6.如何避免多个的读写阻塞1.4新增了那些方法解决这个问题?7.如果一个变量的值为,观察以下程序:8.变量分支1;分支2;程序最终执行那一个分支?9.中有那些重定向方法,它们的区别的优势和特点和的区别?10.在数据库中,一个表被删除后,还能否将空间分配给其它表哪?11.在数据库中,一个表有两千万条数据,怎样最有效的将其删除?12.在数据库中,如果处理表中的每一条数据,用那种方法?13.发送一条邮件的几个步骤在中如何初始化上下文14.常用的组件技术?会话的属性?实体的属性?15.与的区别?16.编程具体步骤?事务模式?17.容器管理事务的事务属性为的意义18.事务失败时的会话的重新初始化方法19.中开发应用通常遵循的步骤试题二:分类试题(分类必作题)基础1.作用域,以与不写时的区别?2.和的区别, 和的区别3.型变量中能不能存贮一个中文汉字?为什么?4.多线程有几种实现方法,都是什么?同步有几种实现方法,都是什么?5.继承时候类的执行顺序问题,一般都是选择题,问你将会打印出什么?6.内部类的实现方式?父类:;{(){(" ");}}子类:;;{(){(" ");}([] ){= ();= ();}}输出结果:7. 3. ?( .){d1 = 1.0;}3.( .)A. { .静态内部类可以有静态成员,而非静态内部类则不能有静态成员 () { d1;}}B. { .静态内部类可以有静态成员,而非静态内部类则不能有静态成员() { d1;}}C. {() { d1;}}D. {() { d1;} 静态内部类的非静态成员不可访问外部类的非静态变量}E. {();}8.垃圾回收机制,如何优化程序?9.型 3.4是否正确?10.介绍中的 (包括如何写自己的数据结构)?11.中异常处理机制,事件机制?12.中的多形与继承?13.抽象类与接口?14.的通信编程,用编程,读服务器几个字符,再写入本地显示?15.用实现一种排序,类实现序列化的方法(二种)?如在框架中,实现比较要实现什么样的接口?16.编程:编写一个截取字符串的函数,输入为一个字符串和字节数,输出为按字节截取的字符串。
文思海辉笔试题郭泊龙1、What’s the meaning of TSO and ISPF? List several TSO COMMANDS.2、Write down a PERFORM STA TEMENT, which just count a variable and stop when it’s greater than 10.3、Explain the DISP parameter. What’s does DISP=(NEW, DELETE, DELETE) mean?4、What are the differences between JCLLIB AND STEPLIB?5、What are the 66, 77, 88 used for?6、What is VSAM file?7、What are the TDQ AND TSQ? Explain the differences between them?8、Write down the statements, which RECEIVE a MAP.9、What’s the differences between LINK AND XCTL?10、SEARCH, SEARCH ALL?11、List several CICS COMMANDS12、How to shut down CICS?13、How to return the information to users when the programme complete?14、Do you know UNIX, C etc.张连香1、LINK和XCTL的区别2、SEARCH、SEARCH ALL的区别3、从1加到10,循环程序4、关闭CICS的命令5、MAP是什么?如何RECEIVE A MAP?6、TDQ、TSQ的区别什么是7、DISP是什么?8、如何将程序的运行情况返回给用户?9、EV ALUATE是做什么的?10、是否会C、JA V A?。
海辉集团Sql数据库笔试题1.触发器的作用2.什么是存储过程?用什么来调用?3.索引的作用?他的优缺点是什么?4.什么是内存泄露?5.维护数据库的完整性和一致性,你喜欢用存储过程还是喜欢自写业务逻辑你?为什么?6.什么是事务?什么是锁?7.什么叫视图?游标是什么?8.为管理业务信息建立3个表:S(S#,SN,SD,SA)S#,SN,SD,SA分别代表学号,学员姓名,所属单位,学院年龄C(C#,CN) C#,CN分别代表课程编号,课程名称SC(S#,G#,G) S#,G#,G分别代表学号,所选课程编号,成绩(1)使用标准sql嵌套语句查询所选课程名称为“税收基础”的学员姓名和学员学号(2)使用标准sql嵌套语句查询选修课程编号为“C2”的学员姓名和所属单位(3)使用标准sql嵌套语句查询选修不课程编号为“C5”的学员姓名和所属单位(4)查询选修了课程的学员人数(5)查询选修课程超过5们的学员学号和所属单位中国航空综合技术研究所笔试题目1.简单介绍一下XMLHTTP,WEBSERVICE的特点和作用。
2.接口和抽象类的区别3.简述面向对象的概念以及他的特征4.介绍页面传值的几种方法及其优缺点5.软件开发及其作用6.简述一下反射7.介绍一下对sqlserver,oracle和mysql的熟练程度。
8.简单介绍一下设计模式9.都有什么持久层技术,你最擅长的是那一种?10.什么是依赖注入、反转控制和AOP;11.struts1.2和struts2.0的区别12.简单介绍一下你使用tomcat。
Websphere和weblogic的心得13.简述一下工作流开发的使用经验14.简单介绍一下J2EE体系架构下的软件快速开发平台的认识15.描述一下你所用到的SOA16.描述一下已在开发和实施项目过程中所掌握的业务。
17.简述一下eclipse插件开发心得.好帮手在线笔试题一.5道选择题读程序写运行结果(863题库类似)例如对try catch语句的掌握finally语句二.5道程序改错题1.abstract?class?Name?{???private?String?name;???public?abstract?boolean?isStupidName(String?name)?{}}大侠们,这有何错误?答案:?错。
文思海辉人才学院校园招聘笔试题(JAVA1)姓名:______________________________ 性别:_____________籍贯(省市或地区):_____________________ 意向就业城市(无锡/北京/上海)___________是否接受调剂城市:(是/否)__________________________ 是否接受调剂项目组(如填“是”,笔试未通过将有机会调剂到海辉其他项目组):(是/否)________ 毕业院校:__________________________毕业时间:__________ 专业:_______________________________ 英语等级:_________________________日语水平:______________ 其它语种:__________________________ 手机号码(请保持手机顺畅开通):________________________ 邮件:______________________________ 其他(包括个人其他特长或优势):_____________________________________________________________________选择题:(1~10题每题6分,11~15题每题8分)()1. 给出如下代码:class Test{private int m;public static void fun() {// some code...}}如何使成员变量m 被函数fun() 直接访问?A.将private int m 改为protected int mB.将private int m 改为public int mC.将private int m 改为static int mD.将private int m 改为int m()2. 构造方法何时被调用A.类定义时B. 创建对象时C. 调用对象方法时D. 使用对象的变量时()3. 指出下列程序运行的结果public class Example{tring str=new String(″good″);char[]ch={′a′,′b′,′c′};public static void main(String args[]){Example ex=new Example();ex.change(ex.str,ex.ch);System.out.print(ex.str+″and″);System.out.print(ex.ch);}public void change(String str,char ch[]){str=″test ok″;ch[0]=′g′;}}A.good and abc B. good and gbcC. test ok and abcD. test ok and gbc()4. 如下哪个不是Java 中正确的整数表示A.22B. 0x22C. 022D. 22H()5. 编译运行下面的代码,结果是什么class Example{public static void main(String[] args){int i=0;int j=5;out:for( ; ;i++){for(; ; j--){ if(i>j) {break out;} }}System.out.println(i+" "+j);}}A. 0 5B. 1 -1C. 2 1D. 0 -1()6. 下面哪个函数是public void example(){...} 的重载函数?A. private void example( int m){...}B. public int example(){...}C. public void example2(){...}D. public int example ( int m, float f){...}()7. 已知如下定义:String s = "story"; 下面哪个表达式是合法的?A.s += "books";B.char c = s[1];C.int len = s.length;D.String t = 100;()8. 下列语句片段int a=10,b=4,c=20,d=6;System.out.println(a++*b+c*--d); 的结果为?A.144 B. 28C. 140D. 不能执行()9. 对象使用时,下面描述错误的是A.通过“.”运算符调用成员变量和方法B.通过成员变量的访问权限设定限制自身对这些变量方法的调用C.将一个对象申明为类的成员时,必须在使用前为其分配内存D.在方法中使用对象作为参数时,采用引用调用()10. 读以下程序:class Polish {public static void main(String[] args) {int x = 4;StringBuffer sb = new StringBuffer("..fedcba");sb.delete(3,6);sb.insert(3, "az");if(sb.length() > 6)x = sb.indexOf("b");sb.delete((x-3), (x-2));System.out.println(sb);}}运行结果是()A.fzba B.fazba C.azba D.Compilation fail s()11. 下面哪个是main() 函数的合法参数?A. char args[]B. char args[][]C. String arg[]D. String args()12. 对于catch子句的排列,下列哪种是正确的:A. 父类在先,子类在后B. 子类在先,父类在后C. 有继承关系的异常不能在同一个try程序段内D.如何排列都可以()13. 下列语句片段:int a=-67,b=116,c=78; int d=~a|b&c; System.out.println(d)的结果为?A.70B.67C.78D.56()14. 以下哪个约束符可用于定义成员常量?A.static B.final C.abstract D.finally()15. 读下列程序:import java.io.*;class Player {Player() { System.out.print("p"); }}class CardPlayer extends Player implements Serializable {CardPlayer() { System.out.print("c"); }public static void main(String[] args){CardPlayer cl = new CardPlayer();try {FileOutputStream fos = new FileOutputStream("play.txt");ObjectOutputStream os = new ObjectOutputStream(fos);os.writeObject(c1);os.close() ;FileInputStream fis = new FileInputStream("play.txt");ObjectInputStream is = new ObjectInputStream(fis);CardPlayer c2 = (CardPlayer) is.readObject();is.close();} catch (Exception x ) { }}}运行结果是什么?A.pccB. pcpC.pcpcD. Compilation fails. 答题结果请填写:。
Wuxi Development Center screening exams(90 minutes)Name: ___________________; Score : PartI___, PartII____, PartIII____:Total_____Part I -- T echnique Skill1.If a method is marked as protected internal who can access it?A) Classes that are both in the same assembly and derived from the declaring classB) Classes within the same assembly, and classes derived from the declaringC) Only methods that are in the same class as the method in questionD) Internal methods can be only called using relection2.In Object Oriented Programming, how would you describe encapsulation?A) The conversion of one type of object to another.B) The runtime resolution of method calls.C) The exposition of data.D) The separation of interface and implementation.3.W hen creating a C# Class Library project, what’s the name of the supplementary file thatVisual creates that contains General Information about the assembly?A) AssemblyInfo.xml B) AssemblyInfo.csC) AssemblyInformation.cs D) AssemblyAttributes.cs4.What is a delegate?A) A strongly typed function pointerB) A light weight thread or process that can call a single methodC) A reference to an object in a different processD) An inter-process message channel5.What is boxing?A) Encapsulating an object in a value type.B) Encapsulating a copy of an object in a value type.C) Encapsulating a value type in an object.D) Encapsulating a copy of a value type in an object.6.Which of the following is not a method of System.Object?A) GetT ype B) T oString C) Equals D) Clone7.Which of the following is a value type, and not a reference type?A) array B) delegate C) enum D) class8.What is a satellite Assembly?A) A peripheral assembly designed to monitor permissions requests from an application.B) Any DLL file used by an EXE file.C) An assembly containing localized resources for another assembly.D) An assembly designed to alter the appearance or .skin. of an application.9.How to implement Multiple Inheritances in C#?A) Using InterfaceB) Using Abstract ClassC) Using DelegatesD) Using Events10.Which of these statements correctly declares a two-dimensional array in C#?A) int[,] myArray;B) int[][] myArray;C) int[2] myArray;D) System.Array[2] myArray;11.Which interface allows a collection to be navigated using the foreach statement?A) INavigator B) ICollection C) IEnumerator D) IEnumerable12.C# types are defined in ____ ,organized by ____ , complied into ____ , and then grouped into____ .A) files, modules, namespaces,assembliesB) files,namespaces,assemblies,modulesC) files,assembiles,namespaces,modulesD) files,namespaces,modules,assemblies13.In ,for Command object’s method ExecuteNonQuery() and ExecuteReader(),which of the following statement is wrong?A) insert,update and delete is executed mainly using ExecuteNonQuery()B) ExecuteNonQuery() will return the number of rows that is affected by theexecuted sqlC) select can only executed by ExecuteReader()D) ExecuteReader() will return a DataReder object14.Which of the following operations can you NOT perform on an DataSet?A) a DataSet can be synchronised with a RecordSet.B) a DataSet can be synchronised with the database.C) a DataSet can be converted to XML.D) Y ou can infer the schema from a DataSet15.In C#, the general steps of network communication programming with Socket is:createSocket listener,()and send or receive data by Socket。
2018-文思海辉软件测试工程师笔试题word版本本文部分内容来自网络整理,本司不为其真实性负责,如有异议或侵权请及时联系,本司将立即删除!== 本文为word格式,下载后可方便编辑和修改! ==文思海辉软件测试工程师笔试题Part I: Please answer following testing relevant questions.1.做test plan 要涵括哪些内容?2.请列出设计测试用例的方法和各自的侧重点3.白盒测试和黑盒测试是什么?什么是regression testing and ad hoc testing?Part II: Please answer following coding relevant questions.1.请用java语言实现以下需求:计算[1-N]之间能被2整除的数字个数2.请用Junit写test case 测试题目4的实现3.(单选题)int x=1,y=1,z=6,y+=z–/++x的结果是(B)A 3B 4C 5D 3.54.将int数组,如int data[7]={50,49,61,32,35,79,20}冒泡排序,写出排序算法,并且写出算法的时间复杂度,可以使用任意编程语言,不得使用自然语言Part III: Please answer in English for questions below.1.What ‘s the difference of severity and priority When you reporting a defect?2.How to make sure high test coverage?3.How to test Google home page? Please list test pointsPlease use following link to test /querytest =。
文思海辉软件测试工程师笔试题文思海辉软件测试工程师笔试题Part I: Please answer following testing relevant questions.1.做test plan 要涵括哪些内容?2.请列出设计测试用例的方法和各自的侧重点3.白盒测试和黑盒测试是什么?什么是regression testing and ad hoc testing?Part II: Please answer following coding relevant questions.1.请用java语言实现以下需求:计算[1-N]之间能被2整除的数字个数2.请用Junit写test case 测试题目4的'实现3.(单项选择题)int x=1,y=1,z=6,y+=z–/++x的结果是(B)A 3B 4C 5D 3.54.将int数组,如int data[7]={50,49,61,32,35,79,20}冒泡排序,写出排序算法,并且写出算法的时间复杂度,可以使用任意编程语言,不得使用自然语言Part III: Please answer in English for questions below.1.What ‘s the difference of severity and priority When you reporting a defect?2.How to make sure high test coverage?3.How to test Google home page? Please list test pointsPlease use following link to tests://.google./querytest =1)querytext could be the content which you want to search by google。
文思海辉java机试题
以下是一个简单的文思海辉Java机试题,供您参考:
题目:计算斐波那契数列的第n项
斐波那契数列是一个非常著名的数列,它的前两项是0和1,从第三项开始,每一项都是前两项的和。
例如,斐波那契数列的前几项是0、1、1、2、3、5、8、13、21、34等。
现在,我们需要编写一个Java程序,计算斐波那契数列的第n项。
以下是一个可能的Java实现:
```java
public class Fibonacci {
public static int getFibonacci(int n) {
if (n <= 0) {
return 0;
} else if (n == 1) {
return 1;
} else {
return getFibonacci(n - 1) + getFibonacci(n - 2);
}
}
public static void main(String[] args) {
int n = 10; // 计算斐波那契数列的第10项
int result = getFibonacci(n);
("斐波那契数列的第" + n + "项是:" + result);
}
}
```
在这个实现中,我们使用递归函数`getFibonacci()`来计算斐波那契数列的第n项。
如果n小于等于0,我们返回0;如果n等于1,我们返回1;否则,我们递归地调用`getFibonacci()`函数来计算前两项的和。
在`main()`函数中,我们调用`getFibonacci()`函数来计算第10项,并输出结果。