| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1376 人关注过本帖
标题:求救!哪位好人周二之前能帮我做好啊~~~~谢谢!
只看楼主 加入收藏
xbnbb008
Rank: 1
等 级:新手上路
帖 子:21
专家分:0
注 册:2007-5-10
收藏
 问题点数:0 回复次数:12 
求救!哪位好人周二之前能帮我做好啊~~~~谢谢!
The following 9 questions are to test your conceptual understanding of computer science.  There are no standard answers to these questions; and there is no score system to grade your performance.   So don’t worry about the score.  Feel free to express your technical opinions and creativity, as you deem appropriate.  Through this set of Q&A, we mainly intend to know more about your thinking pattern and ability to conceptualize and to reason.

The test will be 45~60 minutes.  Please try to answer in English and type up your answers in MS Word.  Please be as concise and clear in your answers as possible.  If you have difficulty expressing in English at times, you can use Chinese to substitute.  

Interview Questions:

1. C++ related (10 point)
class A {
public:
void a();
virtual void b();
}

class B : public A {
void a();
void b();
}

main(){
A * v1 = new B();
v1->a();
v1->b();
}

For v1->a(), which function is called a::a() or b::a()? And why?

For v1->b(), which function is called a::b() or b::b()? And why?


2. Data structure related(10 point)
You have to deal with a large data set {large quantity of objects with the same data type} and need to perform insert/access/delete/modify operations on these objects frequently, what data structure is most suitable to hold the data set and why?


3. VC compiler related(10 point)
How to debug a DLL or OCX using VC?

 4. Windows Message related(10 point)
What is the difference between a window message and a call back function?
When should one use a user defined window message and when should one use a call back function?


5. COM/DCOM related(10 point)
Can you use an OCX without putting it on a form?  And How? {Which interface do you use to connect the OCX events to the message handlers?}

6. Thread related(10 point)
What is multi-thread environment?
How to achieve data integrity in multi-thread environment and why it is important to do so?
What is a deadlock?


7. GUI related(10 point)
What does it mean by thread-safe GUI and how to make a GUI component thread-safe?


8. Networking Related(10 point)
What is the difference between TCP and UDP?  What is the implementation difference?

What is multicast?  Which protocol does multicast use, TCP or UDP?  Why use multicast?  Can you add/remove destination address on the fly (dynamically) to a multicast socket?



9. Problem Solving Related(20 point)
1. Here is the situation:
I.    There is an incoming streaming of data thru TCP/IP in raw format
II.    You need to process these data into a user defined format
III.    There are clients that randomly connect/disconnect to/from you
IV.    You need to relay the processed data to all the clients connecting to you
V.    You need to have a GUI showing how much data is processed and which client is connected.

Draw a simple design diagram showing:
    How to achieve the above and specify what data type is used
    If thread is used, show where thread-safe techniques should be implemented
    Explain what kind of networking protocol/techniques is used at different places and why choose such implementation

Explain why and how you come up with this design and what the pros and cons are.






























10.The two topic below are program, you can do it at home. After you finishing it, please send it to chimi@ Thanks!

a. Using C++ to implement a simple hash table class to store thousands of string data.  The class should provide the methods at least for Add, Remove, Set and Get.
You need to provide a test stub program to validate your design.  
(90 minutes- 120 minutes. Please work this out on your PC.).
 
      










 
 
b. There are two players to play a game with 4x4 positions. Each player can take one position for his turn. The winner is the first one to take all of four positions in one line.  
The figure shows three winning cases.  
Let’s design a simple application using C++ to make the judgment which player wins a game.
(45 minutes. Please work this out on your PC.).
搜索更多相关主题的帖子: 好人 
2008-09-14 10:49
blueboy82006
Rank: 5Rank: 5
来 自:幻想世界
等 级:贵宾
威 望:16
帖 子:1227
专家分:57
注 册:2007-7-23
收藏
得分:0 
There are no standard answers to these questions; and there is no score system to grade your performance.   So don’t worry about the score.


2008-09-14 11:37
YCVSCY
Rank: 1
等 级:新手上路
帖 子:45
专家分:0
注 册:2008-7-11
收藏
得分:0 
I only can answer to the frist question!
2008-09-14 20:27
joker39
Rank: 1
等 级:新手上路
威 望:1
帖 子:78
专家分:0
注 册:2007-9-6
收藏
得分:0 
the 2nd question:  Linklist structure will be better cuz we need to use the data frenquently.if using array structure,it may cause moving the whole array memories even we jus need to delete one data. Although using array will be easier,it performances worse!
2008-09-14 22:05
忘记喧嚣
Rank: 1
等 级:新手上路
帖 子:146
专家分:0
注 册:2007-10-7
收藏
得分:0 
不知道对错哈
1.
For v1->a(), which function is called a::a() or b::a()? And why?
a::a()  因为a()不是虚函数,所以他根据指针本身的本身的类型调用函数
是静态联编
For v1->b(), which function is called a::b() or b::b()? And why?
b::b() 与上面不同,因为b()是虚函数,调用以指针所指对象的类型调用
是动态联编
2008-09-15 12:35
忘记喧嚣
Rank: 1
等 级:新手上路
帖 子:146
专家分:0
注 册:2007-10-7
收藏
得分:0 
2.list

因为你要要存放相同数据类型 我们可以选择 数组 后者是链表 来存放

但是要删除,和添加新元素,以C++1.0来看 选择链表明显比数组好很多。

因为数据量很大,数组删除 和插入元素要相应的移动很多元素 效率太低

而这里不用表现数组查找优于链表的功能 所以选用list (英语就自己翻译吧)
2008-09-15 12:40
忘记喧嚣
Rank: 1
等 级:新手上路
帖 子:146
专家分:0
注 册:2007-10-7
收藏
得分:0 
4. 我想 他想问的是  消息处理函数 和回调函数的区别,而不是消息和回调函数的区别,如果我理解错了。你跳过这个回答,3题我也不会
 
callback   只能由系统函数调用, 消息处理函数是回调函数的一个子集。
回调函数就相关于系统预留下来的一个用户接口,比如说:要完成一个功能,系统已经做了大部分的事情,但是有些与具体应用有关的部分,系统事先是不知道的,于是留了一个接口给你,你只需要按系统中定义的规格,把自己的具体应用部分写进去,系统会自己调用这个接口,也就是说,在你的代码中,你不需要直接调用回调函数,但是里面的代码是会起作用的
2008-09-15 12:48
忘记喧嚣
Rank: 1
等 级:新手上路
帖 子:146
专家分:0
注 册:2007-10-7
收藏
得分:0 
5 控件
6 多线程  希望后面高人赐教  6的第一个问题什么是多线程机制 自己翻书就知道了
2008-09-15 12:52
忘记喧嚣
Rank: 1
等 级:新手上路
帖 子:146
专家分:0
注 册:2007-10-7
收藏
得分:0 
8。TCP and UDP

哈哈还考网络。 TCP 是面向连接  UDP 就是无连接咯。。。。以前网络课老师说过 。。。

然后问什么是广播。。书上有的吧
2008-09-15 12:54
忘记喧嚣
Rank: 1
等 级:新手上路
帖 子:146
专家分:0
注 册:2007-10-7
收藏
得分:0 
。。。网络编程。。。
2008-09-15 12:56
快速回复:求救!哪位好人周二之前能帮我做好啊~~~~谢谢!
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.061881 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved