标题: 求救!哪位好人周二之前能帮我做好啊~~~~谢谢! [打印本页] 作者: √wo 时间: 2009-11-4 02:02 标题: 求救!哪位好人周二之前能帮我做好啊~~~~谢谢! 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?