这有几个面试题目,看看各位能答几个 :)

这有几个面试题目,看看各位能答几个 :)

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

请您先登陆,再发跟帖!