中软集团笔试题.docx





《中软集团笔试题.docx》由会员分享,可在线阅读,更多相关《中软集团笔试题.docx(4页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、 中软集团笔试题 笔试题目一 一.简答题. 1.避开死锁的方法有哪些? 2.在Sybase数据库中注册用户与数据库用户有什么区分? 3.在MS SQL_Server 数据库中通过什么约束保证数据库的实体完整性 4.内存有哪几种存储组织构造.请分别加以说明 5.JAVA中的Wait() 和notify()方法使用时应留意些什么? 6.用户输入一个整数.系统推断,并输出是负数还是非负数,请设计测试用例. 7.操作系统中的同步和互诉解决了什么问题 8.UNIX 中init 二.编写类String 的构造函数,析构函数和赋值函数 已知类String 的原型为 class string public:
2、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
3、,”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 函数会有什么样的结果. 笔试题目二 问题: Write a function to get the second maximum number in an integer array.(请写程序返回一个数组中第2大的数) int getsecond(int a ) 答案: int getsecond(int a,int nLength) int nMax = -1000, nSec = 0; for(int i = 0 ; i nLength ; i + ) if(nMax ai) nSec = nMax; nMax = ai; else if(ai nSec) nSec = ai; return nSec; 【中软集团笔试题】
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 集团 笔试

限制150内