群碩的筆試題分享

才智咖 人氣:1.09W

1、100=9 9 9 9 9 9

群碩的筆試題分享

2、根據pseudo code判斷下列哪個x列印"Text 2"

If (x>4) then print "Text 1"

Else if (x>9) then print "Text 2"

Else print "Text 3")

(1)less than 0,(2)less than 4,(3)between 4 and 9,(4)>9,(5)none

3、填but report:a browser based software crashes when you type "-1" in a inp

ut field called ABC on secong html page after loggong on on WindowXP platfor

m. And this happens every time you try typing "-1" are not sure if any d

atabase servers are being used or not.

┏━━━━━━━━━━━━━━━━

┃ Serverity:┃ ┃Priority:┃ ┃

━━━━━━━━━━━━━━━━━

┃ ━━━━━━━━━━━━━━━━━━━┃

┃ Short Description┃ ┃

┃ ━━━━━━━━━┃━━━━━━━━━┃

┃ Reproducible? ┃ ┃

┃ ━━━━━━━━━┃━━━━━━━━━┃

┃ Recreate steps: ┃ ┃

┃ ━━━━━━━━━┃━━━━━━━━━┃

┃ Attachment: ┃ ┃

━━━━━━━━━━━━━━━━━━━━┃

┃ ━━━━━━━━━━━━━━━━━━━┃

┃ platform tested: ┃ ┃

┃ ━━━━━━━━━━━━━━━━━━━┃

┃ database server: ┃ ┃

┃ ━━━━━━━━━━━━━━━━━━━┃

┃ browser : ┃ ┃

━━━━━━━━━━━━━━━━━━━━┃

4、添加註釋

//

//

//

//

private static final int SHORT_COLUMN_WIDTH=5;

private static final int INT_COLUMN_WIDTH=10;

private static final int LONG_COLUMN_WIDTH=19;

private static final int DOUBLE_COLUMN_WIDTH=23;

……

int decimalDigits=cale();

int widthOfNumber=recision();

int dataType=erValue;

//

//

//

if (decimalDigits==0){

if (widthOfNumber<=SHORT_COLUMN_WIDTH) {dataType=edInt16V

alue;}

else if (widthOfNumber<=INT_COLUMN_WIDTH) {dataType=edInt

32Value;}

else if (widthOfNumber<=LONG_COLUMN_WIDTH) {dataType=edIn

t64Value;}

else if (widthOfNumber<=DOUBLE_COLUMN_WIDTH) {dataType=er

Value;}

else {dataType=erValue;}

5、設計一個演算法判斷一個字串是否是迴文,並寫出程式碼

"A man a plan a canal panama"是會文。

6、定義函式,給出三個引數,從字串inputString中的'下標indexOfChar開始返回noO

fChar個字元。要求找出儘可能多的錯誤情形

7、編一段程式碼,求兩個int的最大公約數

8、給出一段c++程式碼(關於構建器和虛析構器的呼叫問題),要求(1)其輸出,(2)

說明virtual destructor的作用(role)

9、英文閱讀理解,個人感覺非常簡單。

TAGS:筆試 群碩