全省微软暑假实习生招聘笔试题-考试专题训练
《全省微软暑假实习生招聘笔试题-考试专题训练》由会员分享,可在线阅读,更多相关《全省微软暑假实习生招聘笔试题-考试专题训练(7页珍藏版)》请在装配图网上搜索。
1、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. fastcall2. Whats the output of the following code?(3 Points)cppview plaincopy1. classA2. 3. public:4. virtualvoidf()5. 6. coutA:f()end
2、l;7. 8. voidf()const9. 10. coutA:f()constendl;11. 12. ;13. 14. classB:publicA15. 16. public:17. voidf()18. 19. coutB:f()endl;20. 21. voidf()const22. 23. coutB:f()constf();30. 31. 32. intmain()33. 34. A*a=newB();35. a-f();36. g(a);37. deletea;38. A. B:f()B:f()const B. B:f()A:f()const C. A:f()B:f()con
3、st D.A:f()A:f()const3. 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 type4. About the Thread and Process in Windows, which description(s) is(are) correct:(3 Points)
4、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 Process5. What is the output of the
5、following code?(3 Points)cppview plaincopy1. 2. intx=10;3. inty=10;4. x=x+;5. y=+y;6. printf(%d,%dn,x,y);7. A. 10, 10 B. 10, 11 C. 11, 10 D. 11, 116. For the following Java or C# code(3 Points)csharpview plaincopy1. intmyArray3=2. newint33. newint35,6,2,4. newint56,9,7,8,3,5. newint23,2; What willmy
6、Array322 returns? A. 9 B. 2 C. 6 D. overflow7. Please choose the right statement about const usage:(3 Points) A. const int a; /const integer B. int const a; /const integer C. int const *a; /a pointer which point to const integer D. const int *a; /a const pointer which point to integer E. int const *
7、a; / a const pointer which point to integer8. Given the following code:(3 Points)cppview plaincopy1. #include2. 3. classA4. public:5. longa;6. ;7. 8. classB:publicA9. 10. public:11. longb;12. ;13. 14. voidseta(A*data,intidx)15. 16. dataidx.a=2;17. 18. 19. int_tmain(intargc,_TCHAR*argv)20. 21. Bdata4
8、;22. 23. for(inti=0;i4;+i)24. 25. datai.a=1;26. datai.b=1;27. seta(data,i);28. 29. 30. for(inti=0;i4;+i)31. 32. std:coutdatai.a1), and you found F!=G, this implies that(5 Points) A. There is a compiler error B. X is odd C. X is negative D. F - G = 1 E. G - F = 112. How many rectangles you can find f
9、rom 3*4 grid?(5 Points) A. 18 B. 20 C. 40 D. 60 E. None of above is correct13. One line can split a surface to 2 part, 2 line can split a surface to 4 part. Given 100 lines, no two parallel lines, no tree lines join at same point, how many parts can 100 line split?(5 Points) A. 5051 B. 5053 C. 5510
10、D. 551114. Which of the following sorting algorithm(s) is(are) stable sorting?(5 Points) A. bubble sort B. quick sort C. heap sort D. merge sort E. Selection sort15. Model-View-Controller(MVC) is an architectural pattern that frequently used in web applications. Which of the following statement(s) i
11、s(are) correct:(5 Points) A. Models often represent data and the business logics needed to manipulate the data in the application B. A view is a (visual) representation of its model. It renders the model into a form suitable for interaction, typically a user interface element C. A controller is the
12、link between a user and the system. It accepts input from the user and instructs the model and a view to perform actions based on that input D. The common practice of MVC in web applications is, the model receives GET or POST input from user and decides what to do with it, handing over to controller
13、 and which hand control to views(HTML-generating components) E. None of the above16. we can recover the binary tree if given the output of(5 Points) A. Preorder traversal and inorder traversal B. Preorder traversal and postorder traversal C. Inorder traversal and postorder traversal D. Postorder tra
14、versal17. Given a string with n characters, suppose all the characters are different from each other, how many different substrings do we have?(5 Points) A. n+1 B. n2 C. n(n+1)/2 D. 2n-1E. n!看对substring怎么理解了。如果理解成subsequence就是D。不然是C18. Given the following database table, how many rows will the follo
15、wing SQL statement update?(5 Points) A. 1 B. 2 C. 3 D. 4 E. 519. What is the shortest path between node S and node T, given the graph below? Note: the numbers represent the lengths of the connected nodes.(13 Points) A. 17 B. 18 C. 19 D. 20 E. 2120. Given a set of N balls and one of which is defective (weighs less than others), you are allowed to weigh with a balance 3 times to find the defective. Which of the following are possible N?(13 Points) A. 12 B. 16 C. 20 D. 24 E. 28
- 温馨提示:
1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
2: 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
3.本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。