英文算法数据库面试

这篇博客包含英文面试的几个部分:翻译练习、签证申请流程解释和算法及SQL问题。算法题涉及字符串字符计数和连续数字检查,SQL题目则要求设计大学信息系统的表格并查询学生总学分及最高及格率的专业及其授课教师。
摘要由CSDN通过智能技术生成

英文考察一:

请翻译下面这段中文,英文写在后面

对于经常要乘飞机进行长途旅行的人而言,在飞机上不能接收电子邮件或是办理公务是一大损失,不过几家航空公司近日承诺说,从明年开始,他们将利用卫星提供高速互联网接入服务,届时乘客在3.5万英尺的高空也可以通过笔记本电脑上网了。

 

 

 

英文考察二

请翻译下面这段文字,中文写在后面:

 

For Chinese applicants, the first step in applying for a visa is to make an appointment by calling 65325305 or 65322228. The problem is that the two numbers are so busy that often they can't get through. Mr Bennett explained: "Since all embassies have to use the 6532 telephone prefix and the number of lines is limited, the US embassy is only allotted two lines for our appointment system. Insgroupsto solve the problem, we plan to work through a contractor. Contractors don't have to use the 6532 prefix, so they can be assigned more lines and hire lots of people to answer calls. Applicants will also be able to use faxes and the Internet to make appointments, which will greatly enhance flexibility and convenience. Since the contract has not been awarded yet, I can't say exactly when the new system will be operative - hopefully sometime in the fall."

 

 


算法题

 

1.         判断两个字符串中每个字符的个数是否相等。i.e.

“ABC”, “ACB” return true

“AABC”, “ABCD” return false

 

2、Please write test cases for above as more as possible.

 

3、Give 7 numbers, range from 0-13. The number of 0 is uncertain, other numbers can appear only once. 0 can be converted to any number. Please check whether or not it contains 5 continuous numbers

1,5,2,4,0,13,10  0->3 1,2,3,4,5,10,13 return true

1,5,2,0,0,13,10  0->3 0->4 1,2,3,4,5,10,13 return true

1,5,6,0,0,13,10  return false

 

4、 Please write test cases for above as more as possible.


 

SQL Questions:

 

We need to develop a system for ## University. First we should make a table for teacher with information TeacherID, Address, Salary. Then we need to store courses’ information, e.g.  MajorID, Name, Credit. After that we have to store students’ information, StudentID, Name, and Address.

The ERD is as follow:

 

 


 

Question 1:

Please write a SQL statement which can retrieve the total credit of the students they grant. 

Sample output:

StudentID   Name                                               TotalCredit

----------- -------------------------------------------------- -----------

1           Alan Tsui                                          8          

2           Ronstar                                            9          

3           Steven                                             9          

 

 

Question 2:

Please write a SQL statement to show which major has the highest PASS rate and which teacher teaches the major. (Hints: get the top 1 major with count (passed student) and then join the teacher table)

Sample output:

TeacherID   TeacherName             MajorID       TotalPass       Name

----------- ----------------------- ------------- -------------- -----------------------

1           Professor Ronstar        2             3              Business Management

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值