這有幾個麵試題目,看看各位能答幾個 :)

這有幾個麵試題目,看看各位能答幾個 :)

1. Object A and B need to communicate with each other. However, object A and B, cannot refer to, or contain each other directly. What way or ways can you think of that would allow object A and B to communicate?

2. Given a very simple microprocessor with no multiply, divide, or subtract instructions what algorithm would you use to implement an integer divide by 7? Assume that the microprocessor and your algorithm will be part of real-time process control system. Explain why you think your algorithm is a good choice for use in a real-time control system.

3. Write code to build an array S from integer array R such that array S contains only one instance of those integers from R that are not evenly divisible by any other integer in R.

4. What class structure would you use for a person scheduling their car for a tune up?

5. In a multi-user database application with no built-in record locking mechanism in the database, how would you ensure that a record does not get updated by two users at the same time?

所有跟帖: 

你可以自己搭啊 -德性- 給 德性 發送悄悄話 (0 bytes) () 01/24/2006 postreply 00:52:01

搭成了更好,你以為老美傻啊? -德性- 給 德性 發送悄悄話 (33 bytes) () 01/24/2006 postreply 04:29:07

try -NotALawyer2- 給 NotALawyer2 發送悄悄話 (209 bytes) () 01/23/2006 postreply 21:33:11

好像都錯了 -德性- 給 德性 發送悄悄話 (0 bytes) () 01/24/2006 postreply 00:46:38

try同誌,答案不中要地 -德性- 給 德性 發送悄悄話 (0 bytes) () 01/24/2006 postreply 04:23:46

有時間限製嗎? -德性- 給 德性 發送悄悄話 (0 bytes) () 01/24/2006 postreply 00:45:19

兩小時 -xingxing1- 給 xingxing1 發送悄悄話 (0 bytes) () 01/24/2006 postreply 08:29:25

回複:兩小時 -德性- 給 德性 發送悄悄話 (63 bytes) () 01/25/2006 postreply 04:35:26

第一題我差點就想到aspect去了,好險 -德性- 給 德性 發送悄悄話 (0 bytes) () 01/24/2006 postreply 00:47:33

第二題第一問shift來shift去應該就夠了 -德性- 給 德性 發送悄悄話 (0 bytes) () 01/24/2006 postreply 00:59:35

shift死丫的!!嘿嘿,就不用別的 -德性- 給 德性 發送悄悄話 (0 bytes) () 01/24/2006 postreply 01:00:40

光用shift擠出來估計就錄取了。 -德性- 給 德性 發送悄悄話 (0 bytes) () 01/24/2006 postreply 01:16:45

8位機還可以狠狠的優化一下。 -德性- 給 德性 發送悄悄話 (0 bytes) () 01/24/2006 postreply 01:03:20

美國麵試這風格啊,下次不怕了。 -德性- 給 德性 發送悄悄話 (0 bytes) () 01/24/2006 postreply 01:04:29

老美還不算欺負人。。哈哈 -德性- 給 德性 發送悄悄話 (0 bytes) () 01/24/2006 postreply 04:26:44

筆式還是口試題? -德性- 給 德性 發送悄悄話 (0 bytes) () 01/24/2006 postreply 01:14:40

我英語還是有很大的親和力的,要是口試我可能去美國碰運氣 -德性- 給 德性 發送悄悄話 (0 bytes) () 01/24/2006 postreply 04:14:36

第5題找到一個合適的地方掐一把。。。 -德性- 給 德性 發送悄悄話 (0 bytes) () 01/24/2006 postreply 04:16:51

請您先登陸,再發跟帖!