SAP笔试(技术部分)

出自求职百科

跳转到: 导航, 搜索

Prerequisite Notice:

Answers are preferred in English; Test time is 60 minutes; Finish more than one question.

1.Give an example of implementing a Stack in the template way(only template class declaration without detail definition and realization)

2.Whats the difference between String and StringBuffer?

3.Which came the first,chicken or the egg?

4.In C ,therere four types of Casting Operators,please enumerate and explain them especially the difference.

5.Lets say we have a database with 1 one-column table.It contains same record s. Could you please give at least 1 solution to help us get records between line 5 and 7. No line number,row id or index etc.

6.What will be the output of the following codes?

  1. include <iostream.h>
  2. define DBL(x) x x

int main()
{
int a=3;
int b=4;
int c=DBL(a)*DBL(b);
cout<<c<<endl;
return 0;
}

7.Please write a program to realize the model described in the figure.You should design your program as generic as possible so that we can enhance the m odel in the future easily without making too much change in your program.

Process1:X=A B;
Process2:Y=C D;
Process3:if E>=0
Z=E;
Process4:if E<0
Z=E/B;

个人工具
公司索引
  • A   B   C   D   E   F   G
  • H   I   J   K   L   M   N
  • O    P
  •     Q    R    S    T
  • U    V    W    X    Y    Z
工具箱