首页范文正文

SAP技术类笔试题

扫码手机浏览

大家好!今天让小编来大家介绍下关于SAP技术类笔试题的问题,以下是小编对此问题的归纳整理,让我们一起来看看吧。...

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

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

cppCopy code

template

class Stack {

public:

Stack(); // Constructor

void push(const T& item);

T pop();

bool isEmpty() const;

// Other necessary member functionsprivate:

// Data members and other details go here

};

What's the difference between String and StringBuffer?

Stringis an immutable class in Java, meaning once aStringobject is created, its value cannot be changed. Any operation that appears to modify theStringactually creates a newStringobject.

StringBufferis a mutable class in Java, designed for situations where the content of the string needs to be modified frequently. It is more efficient when concatenating multiple strings.

Which came first, the chicken or the egg?

This question is often posed as a philosophical dilemma. From a biological perspective, it is generally accepted that the egg came first, as genetic mutations occur during the reproduction process. Therefore, an evolutionary change leading to the chicken would have first occurred in an egg.

In C++, there are four types of Casting Operators; please enumerate and explain them, especially the differences.

Static Cast:Used for converting between related types. It performs conversions that are known at compiletime and doesn't provide runtime checks.

Dynamic Cast:Used for converting pointers and references in polymorphic class hierarchies. It performs runtime checks to ensure safe casting.

Const Cast:Used to add or remove const or volatile qualifiers from variables. It is typically used to cast away the constness of an object.

Reinterpret Cast:Used for lowlevel casting between unrelated types, such as casting between a pointer and an integer. It is less safe and should be used with caution.

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

Assuming you want to retrieve records that start with 's', you can use the following SQL query:

sqlCopy code

SELECT * FROM your_table WHERE your_column LIKE 's%';

What will be the output of the following code?

cppCopy code

#include#define DBL(x) x + x

int main() {

int a = 3;

int b = 4;

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

std::cout= 0)

return E;

else

return E / B; // Assuming B is a member variable or defined elsewhere

}

private:

// Additional member variables or functions go here

};

int main() {

ModelmyModel;

// Use myModel to perform the processes

return 0;

}

This generic program allows for easy modification and enhancement of the model by adjusting the template type and adding or modifying functions within theModelclass.

 

第2篇:Oracle技术类笔试题

Oracle技术类

1,什么叫Normalization.什么叫3NF,并请列出1NF和2NF..

2,什么叫revisedkeyindex

3,什么叫死锁,举一个引起数据库*作中死锁的例子

4,BYTE[]buf=BYTE[1024];

in.read(buf)

in是一个接收图像数据的网络IO流,请指出这段代码有什么问题,并请用java代码改

进它

5,你正在分析一个子系统的接口,发现接口很多。然后你同事劝你用Fecade,问你用Fecade有什

么好处

 

第3篇:UT技术类笔试题

1.进程调度算法2.ping时ARP包发的经过如MAC地址等。

3.软件工程,比如项目开发过程之类,项目管理之类的。

4.内存泄漏原理和处理方法

5.写个程序大概是字符串处理的。不要bufferoverflow哦。)

6。广播包的ip地址是

另外,好象某先生是南大计算机的啊。有问english的说。不过标准低啊

7.子函数参数压站次序。

8.子函数参数出战如何完成?

 

 

0
0
收藏0

相关推荐