当前位置:文档之家› XX8级应届毕业生招聘考题(开发类)

XX8级应届毕业生招聘考题(开发类)

中盈优创产品研发部应聘员工考试题--开发类(75分钟)基础知识————————必做SQL部分————————必做Java部分————————Java程序员必做C部分————————C程序员必做第一部分基础知识(必做,35分)1.用无符号的32位计数器表示流入某个端口的字节数,如果每10分钟读取一次该计数器,则用该计数器能够支持的端口最大流速是_____Mbit/s。

说明:1)可用包含指数的公式标识结果;2)1Mbit/s=1000*1000bit/s。

3)流速=流过的比特数/时间。

4)1byte=8bit (3分)2.处理器为Pentium3.0GHz(时钟频率),三个时钟周期组成一个机器周期,执行一个指令平均需要三个机器周期,则执行一个指令的时间为__。

说明:1)可用包含指数的公式标识结果。

2)1G=10^9 (3分)3.In ______style programming, it is users who determine the sequence of instructions to be executed. (3分)A) top-down B) structure C) data-driven D) event-driven4.假设公元前与公元后采取相同的方法判断闰年,请计算从公元前1000年到公元2012年间总共有多少个闰年。

提示: (3分)1闰年的判断方法为:1.能被4整除不能被100整除;或2. 能被400整除2公元0年算闰年5.假定每一车次具有唯一的始发站和终点站。

如果实体“列车时刻表”属性为车次、始发站、终点站、发车时间、到达时间,该实体的主键是(1) ___。

如果实体“列车实际运行表”属性为车次、日期、发车时间、到达时间,该实体的主键是(2)_____。

通常情况下上述“列车时刻表”、“列车实际运行表”两实体间是(3)__关系。

(3分)(1)A) 始发站B) 车次C) 发车时间D) 车次、始发站(2)A) 车次、日期B) 始发站C) 发车时间D) 车次(3)A)不存在B)存在一对一C)存在多对多D)存在一对多6.术语解释(简单描述你对以下术语的认识)(3分)css, mib, JMSDNS, SSH(按一种网络协议考虑),soapTD-SCDMA , voip, vpn,adsl, bras7.ipv4的地址长度为___位,试着给出一个合法的IP地址样例:_______________。

(4分)8.假设一台机器的气缸达到1009次/分钟往复运动就可以达到点火启动,现在某人通过一只摇柄手工推动气缸,每摇一次可以使气缸运动速度增加5次/分钟,摇完一次后歇息10秒。

下次再摇时,由于摩擦阻力影响,气缸运动速度会降1次/分钟,请问气缸从静止状态开始,此人需要摇_______次摇柄可以达到点火成功。

(3分)9 有9个外观相同的球,其中一个重量不同,有一个天平,要求至多3次称重,找到重量不同的球,请给出称重方法。

(3分)10 请从理论上或逻辑的角度在后面的空格中填入后续字母或数字:(4分)1.1, 3, 6, 102.1, 1, 2, 3, 53.8, 6, 7, 5, 6, 44.3968, 63, 8, 311 linux 下用来查看目录/slview大小的命令是_______,查看进程syslogd是否存在的命令是_______,windows下看环境变量的命令是______。

(2分)第二部分SQL测试题(必做,25分)注:选择题可能有多选。

Table EMPLOYEES Structure:EMPLOYEE_ID NUMBER Primary Key,FIRST_NAME V ARCHAR2(25),LAST_NAME V ARCHAR2(25),Salary number(8,2),HiredDate DATE,Departmentid number(2)Table Departments Structure:Departmentid number(2) Primary Key,DepartmentName V ARCHAR2(25).(1)Sybase数据库采用什么数据库模型?(4分)A.关系模型.B.层次模型.C.网络模型.D.Sybase自己定义的专利模型.(2)基于上述EMPLOYEES表写出查询:写出雇用日期在今年的,或者工资在[1000,2000]之间的,或者员工姓名(last_name)以’Obama’打头的所有员工,列出这些员工的全部个人信息。

(4分)Select * from EMPLOYEES where HiredDate=’2010’ or (1000<=Salary and Salary<=2000) LAST_NAME like ‘Obama% o’(3) 基于上述EMPLOYEES表写出查询:查出部门平均工资大于1800元的部门的所有员工,列出这些员工的全部个人信息。

(4分)(4) 基于上述EMPLOYEES表写出查询:查出个人工资高于其所在部门平均工资的员工,列出这些员工的全部个人信息及该员工工资高出部门平均工资百分比。

(5分)(5) 基于上述EMPLOYEES,Departments表写出查询:查出部门名称为“RDCENTER”的员工,显示员工表的所有信息,其中部门要显示部门名称,且要求对于员工表中Departmentid为空或Departmentid在Departments表中不存在的员工记录也要求查出。

(4分)(6)Examine the description of the NEW_EMPLOYEES table: (4分)EMP_ID NUMBER(4) NOT NULLLAST_NAME V ARCHAR2(30) NOT NULLFIRST_NAME V ARCHAR2(30)DEPT_ID NUMBER(2)JOB_CA T V ARCHARD2(30)SALARY NUMBER(8,2)Which statement shows the maximum salary paid in each job category of each department?A.SELECT dept_id, job_cat, MAX(salary) FROM NEW_EMPLOYEES WHERE salary > MAX(salary);B.SELECT dept_id, job_cat, MAX(salary) FROM NEW_EMPLOYEES GROUP BY dept_id, job_cat;C.SELECT dept_id, job_cat, MAX(salary) FROM NEW_EMPLOYEES;D.SELECT dept_id, job_cat, MAX(salary) FROM NEW_EMPLOYEES GROUP BY dept_id;E.SELECT dept_id, job_cat, MAX(salary) FROM NEW_EMPLOYEES GROUP BY dept_id, job_cat,salary;第三部分Java测试题(Java程序员必做,40分)1.(每空2分,计10分)1)在JSP程序中用( )包含一个动态文件;2)在JSP程序中用( )重定向一个HTML文件、JSP文件、或者是一个程序段;3)在JSP程序中用( )创建一个Bean实例并指定它的名字和作用范围;4)在JSP程序中用( )声明合法的变量和方法,例如:()。

2.请描述String与StringBuffer的区别; int 和Integer 有什么区别。

(3分)3.Hibernate有哪几种查询数据的方式?(3分)4.请编写一段java代码,将D:\jad目录下的所有.jad文件替换为.java文件(不用修改文件内容),并保存到D:\java目录下。

(5分)5.如果你熟悉swing程序设计,请用java swing编写一段代码,输出一个含有3列的表格。

(4分)6.选择题(单选或多选)(每空3分,计15分)(1). Which determines i f “prefs” is a directory and exists onthe file system?A.Boolean exists=Directory.exists (“prefs”);B.Boolean exists=(new File(“prefs”)).isDir();C.Boolean exists=(new Directory(“prefs”)).exists();D.Boolean exists=(new File(“prefs”)).isDirectory();E.Boolean exists=true;Try{Directory d = new Directory(“prefs”);}catch (FileNotFoundException e) {exists = false;}(2). Which statement is true for the class java.util.HashSet?A. The elements in the collection are ordered.B. The collection is guaranteed to be immutable.C. The elements in the collection are guaranteed to be unique.D. The elements in the collection are accessed using a uniquekey.E. The elements in the collections are guaranteed to besynchronized.(3). Which two create an instance of an array? (Choose Two)A. int[] ia = new int [15];B. float fa = new float [20];C. char[] ca = “Some String”;D. Object oa = new float[20];E. Int ia [][] = (4, 5, 6) (1, 2, 3)(4). Given:1. public class MethodOver {2. private int x, y;3. private float z;4. public void setVar(int a, int b, float c){5. x = a;6. y = b;7. z = c;8. }9. }Which two overload the setV ar method? (Choose Two) A.void setVar (int a, int b, float c){x = a;y = b;z = c;}B. public void setVar(int a, float c, int b) {setVar(a, b, c);}C. public void setVar(int a, float c, int b) {this(a, b, c);}D. public void setVar(int a, float b){x = a;z = b;}E. public void setVar(int ax, int by, float cz) {x = ax;y = by;z = cz;}(5). Click on the exhibit button:class A {public String toString () {return "4";}}class B extends A {public String toString () {return super.toString() + "3";}}public class AA {public static void main(String[]args) {System.out.println(new B());}}What is the result?A. Compilation succeeds and 4 is printed.B. Compilation succeeds and 43 is printed.C. An error on line 9 causes compilation to fail.D. An error on line 14 causes compilation to fail.E. Compilation succeeds but an exception is thrown at line 9第四部分C语言测试题(C程序员必做,40分)函数提示:1.FILE *fopen(const char *path, const char *mode);2.int fgetc(FILE *stream);3.char *fgets(char *s, int size, FILE *stream);4 char *gets(char *s);gets() reads a line from stdin into the buffer pointed to by s until either a terminating newline or EOF, which it replaces with '\0'5 int strcmp(const char *s1, const char *s2);The strcmp() function compares the two strings s1 and s2. It returns an integer less than, equal to, or greater than zero if s1 is found, respectively, to be less than, to match, or be greater than s2.6 void *malloc(size_t size);The malloc() function returns a pointer to a block of at least size bytes suitably aligned for any use.7 int scanf(const char *format,args,...); reads bytes, interprets them according to aformat, and stores the results in its arguments from the standard input stream stdin..1.下面程序把数组元素中的最大值放入a[0]中。

相关主题