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;
文章来源于领测软件测试网 https://www.ltesting.net/