亚洲国产日韩欧美在线a乱码,国产精品路线1路线2路线,亚洲视频一区,精品国产自,www狠狠,国产情侣激情在线视频免费看,亚洲成年网站在线观看

中軟集團(tuán)筆試題

時(shí)間:2020-12-20 10:31:00 筆試題目 我要投稿

中軟集團(tuán)筆試題

  中軟集團(tuán)筆試題目

中軟集團(tuán)筆試題

  筆試題目一

  一.簡(jiǎn)答題.

  1.避免死鎖的方法有哪些?

  2.在Sybase數(shù)據(jù)庫(kù)中注冊(cè)用戶與數(shù)據(jù)庫(kù)用戶有什么區(qū)別?

  3.在MS SQL_Server 數(shù)據(jù)庫(kù)中通過(guò)什么約束保證數(shù)據(jù)庫(kù)的實(shí)體完整性

  4.內(nèi)存有哪幾種存儲(chǔ)組織結(jié)構(gòu).請(qǐng)分別加以說(shuō)明

  5.JAVA中的Wait() 和notify()方法使用時(shí)應(yīng)注意些什么?

  6.用戶輸入一個(gè)整數(shù).系統(tǒng)判斷,并輸出是負(fù)數(shù)還是非負(fù)數(shù),請(qǐng)?jiān)O(shè)計(jì)測(cè)試用例.

  7.操作系統(tǒng)中的同步和互訴解決了什么問(wèn)題

  8.UNIX 中init

  二.編寫類String 的構(gòu)造函數(shù),析構(gòu)函數(shù)和賦值函數(shù)

  已知類String 的`原型為

  class string

  {

  public:

  string(const char *str=null);//普通構(gòu)造函數(shù)

  string(const string &other);//拷貝構(gòu)造函數(shù)

  ---string(void);

  string &operate=(const string &other);//賦值函數(shù)

  private:

  char * m-data;//用于保存字符串

  };

  請(qǐng)編寫string 的上述4個(gè)函數(shù)

  三.有關(guān)內(nèi)存的思考題

  1.void getmemory(char *p)

  { p=(char*)mallol(100);

  }

  void test(void)

  {

  char * str =null;

  getmemory(str);

  strcpy(str,”hello,world”);

  printf(str);

  }

  請(qǐng)問(wèn)運(yùn)行Test函數(shù)會(huì)有什么樣的結(jié)果

  2.char*getmemory(void)

  { char p[]=”hello world”;

  return p;

  }

  void test(void)

  {

  char *str=null;

  str=Getmemory();

  printf(str);

  }

  請(qǐng)問(wèn)運(yùn)行Test 函數(shù)會(huì)有什么樣的結(jié)果.

  筆試題目二

  問(wèn)題:

  Write a function to get the second maximum number in an integer array.(請(qǐng)寫程序返回一個(gè)數(shù)組中第2大的數(shù))

  int getsecond(int a [])

  答案:

  int getsecond(int a[],int nLength)

  {

  int nMax = -1000, nSec = 0;

  for(int i = 0 ; i < nLength ; i ++ )

  {

  if(nMax < a[i])

  {

  nSec = nMax;

  nMax = a[i];

  }

  else

  {

  if(a[i] > nSec)

  nSec = a[i];

  }

  }

  return nSec;

  }

【中軟集團(tuán)筆試題】相關(guān)文章:

2016中軟集團(tuán)筆試題目12-21

中軟融鑫筆試題分享07-18

軟素質(zhì)筆試題01-17

硬筆書法和軟筆書法的差別09-24

軟測(cè)筆試題目08-30

軟測(cè)筆試題目10-15

軟測(cè)筆試題目04-25

中軟離職證明范本12-01

中科軟筆試題和面試題12-05