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.what''s the difference between string and stringbuffer?

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

  4.in c++,there''re four types of casting operators,please enumerate and explain

  them especially the difference.

  5.let''s 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?

  #include

  #define dbl(x) x+x

  int main()

  {

  int a=3;

  int b=4;

  int c=dbl(a)*dbl(b);

  cout< 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;

本文已影响6827
上一篇:DTT面试笔试题 下一篇:德固赛面试问题

相关文章推荐

|||||