51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 739|回复: 0
打印 上一主题 下一主题

软件测试面试试题(中软)

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2007-8-24 18:38:45 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
一.    简答题.
1.    避免死锁的方法有哪些?
2.    在Sybase数据库中注册用户与数据库用户有什么区别?
3.    在MS SQL_Server 数据库中通过什么约束保证数据库的实体完整性
4.    内存有哪几种存储组织结构.请分别加以说明
5.    JAVA中的Wait() 和notify()方法使用时应注意些什么?
6.    用户输入一个整数.系统判断,并输出是负数还是非负数,请设计测试用例.
7.    操作系统中的同步和互诉解决了什么问题
8.    UNIX 中init
二.    编写类String 的构造函数,析构函数和赋值函数
已知类String 的原型为
class string
{
public:
string(const char *str=null);//普通构造函数
string(const string &other);//拷贝构造函数
---string(void);
string &operate=(const string &other);//赋值函数
private:
char * m-data;//用于保存字符串
};
请编写string 的上述4个函数
三.    有关内存的思考题
1.    void getmemory(char *p)
{ p=(char*)mallol(100);
}
void test(void)
{
char * str =null;
getmemory(str);
strcpy(str,”hello,world”);
printf(str);
}
请问运行Test函数会有什么样的结果
2.    char*getmemory(void)
{ char p[]=”hello world”;
return p;
}
void test(void)
{
char *str=null;
str=Getmemory();
printf(str);
} 请问运行Test 函数会有什么样的结果.
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-9-22 07:04 , Processed in 0.071554 second(s), 23 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表