暂无图片
暂无图片
暂无图片
暂无图片
暂无图片
微软.4.6暑期实习笔试题.docx
224
7页
0次
2021-02-22
40墨值下载
微软
2013
暑假实习生笔试题
1. Which of the following calling convention(s) support(s) supportvariable-length
parameter(e.g. printf)?(3 Points)
A. cdecl
B. stdcall
C. pascal
D. fastcall
2. What's the output of the following code?(3 Points)
[cpp] view plain copy
1. class A
2. {
3. public:
4. virtual void f()
5. {
6. cout<<"A::f()"<<endl;
7. }
8. void f() const
9. {
10. cout<<"A::f() const"<<endl;
11. }
12. };
13.
14. class B: public A
15. {
16. public:
17. void f()
18. {
19. cout<<"B::f()"<<endl;
20. }
21. void f() const
22. {
23. cout<<"B::f() const"<<endl;
24. }
25. };
26.
27. void g(const A* a)
28. {
29. a->f();
30. }
31.
32. int main()
33. {
34. A* a = new B();
35. a->f();
36. g(a);
37. delete a ;
38. }
A. B::f()B::f()const
B. B::f()A::f()const
C. A::f()B::f()const
D. A::f()A::f()const
3. What is the difference between a linked list and an array?(3 Points)
A. Search complexity when both are sorted
B. Dynamically add/remove
C. Random access efficiency
D. Data storage type
4. About the Thread and Process in Windows, which description(s) is(are) correct:
(3 Points)
A. One application in OS must have one Process, but not a necessary to have one
Thread
B. The Process could have its own Stack but the thread only could share the Stack of
its parent Process
C. Thread must belongs to a Process
D. Thread could change its belonging Process
5. What is the output of the following code?(3 Points)
[cpp] view plain copy
1. {
2. int x = 10 ;
3. int y = 10 ;
4. x = x++ ;
5. y = ++y ;
6. printf("%d, %d\n",x,y);
7. }
A. 10, 10
B. 10, 11
C. 11, 10
D. 11, 11
6. For the following Java or C# code(3 Points)
[csharp] view plain copy
1. int [][] myArray3 =
2. new int[3][]{
3. new int[3]{5,6,2},
4. new int[5]{6,9,7,8,3},
5. new int[2]{3,2}};
What will myArray3[2][2]
of 7
40墨值下载
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文档的来源(墨天轮),文档链接,文档作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论

关注
最新上传
暂无内容,敬请期待...
下载排行榜
Top250 周榜 月榜