sybase2009校园招聘笔试题

PartI

1、  What is the difference between deadlock and starving?

2、  Please list some typical page replacement algorithms. Introduce the design and performance respectively.

3、  Please indicate the time complexity and space complexity of the sort algorithms in the table.

  

Name

Average

Worst

Memory

Insertion Sort

 

 

 

QuickSort

 

 

 

Heapsort

 

 

 

Merge Sort

 

 

 

4、  Please generate a binary tree according to the following traversal sequence.

      Preorder traversal sequence:  FBADCEGIH

      Inorder traversal sequence:   ABCDEFGHI

5、  Compose its corresponding regular expression for following grammar:

       S——> 0A |1B

       A——>1S|s

       B——>0S|0

6、  Construct a finite automata that accepts strings of zeros and ones that contain even number of zeros and odd number of ones.

7、  一道Java

8、  Draw UML diagrams to describe the Bridge pattern and explain benefits/drawbacks.

9、  Please explain the difference between clustered and non-clustered indexes.

10、              Please explain lock used in DBMS. What are 2-phase locking and 2-phase commit?

11、              超级长

Part II:

1(Java) What would be the output of the command “java SetName DEF”?

   Public class SetName

{ 

 public static void setThisName(String name, String newName)

{  name=newName;}

Public static void main(String[] args)

{

String name=”ABC”;

setThisName(name,args[0]);

System.out.println(“The name is “+name);

}

}

 

(A) ABC

 (B) The name is java

(C) The name is SetName

(D) The name is DEF

(E) The name is ABC

2(Java) What is the output of the program below?

   Public class Mistake

{

   Public static void main(String[] args)

   {

     Try

      {

       System.out.println(“Good”);

       Throw new Exception();

       }catch(Exception e)

        {

          System.out.println(“Bad”);

         }finally{

         System.out.println(“ugly”);

}

}

}

(A) Good

   Bad

(B) Good

   Bad

   Ugly

(C) Good

   Ugly

(D) Bad

   Ugly

3(Java)Differentiate between .ear, .jar, and .war file

 4In the C programming language, explain the differences among storage classes static register extern and volatile

5Please give the result of the following program

   main()

   {

          int a,b,c,d;

      a=10;

       b=a++;

     c=++a;

      d=10*a++;

     cout<<b<<c<<d<<endl;

   }

6Please determine whether x is a certain power of 2 with only one statement.

7(Unix) What is signal?How to handle signal?

8(Unix) What is asynchronous I/O, why it is requried?

9(Unix) After a fork(), two processes exist: a parent and a child. Which processes will execute first?

1011 12C #

Part III:

1、 计算24点的题目,四个数字是441010

2、   How many digits does the decimal representation of 2^120?

3、   How would you find out if a machine’s stack grows up or down in memory?

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值