转载请标明出处,原文地址:http://blog.csdn.net/hackbuteer1/article/details/12190807
1、Which statement(s) is(are) correct about thread and process?Select all that apply.(5 Points)
A、Threads share the same address space of the parent process;Processes share the same address space of the parent process.
B、Changes to the main thread(cancellation,priority change,etc.) may affect the behavior of the other threads of the process; Changes to the parent process does not affect child processes.
C、Multiple threads mar cause deadlock,while multiple processes won't cause deadlock.
D、Threads can directly communicate with other threads of its process; Processes must use inter-process communication to communicate with sibling processes.
E、None of the above.

2、Which statement(s) below regarding TCP(Transmission Control Protocol) is(are) correct? Select all that apply.(5 Points)
A、TCP provides a way for applications to send encapsulated IP datagrams and send them without having to establish a connection.
B、TCP supports multicasting.
C、Port numbers below 1024 are called well-known ports and are reserved for standard services. For example,port 21 is reserved for FTP protocol, and port 25 is for SMTP protocol.
D、TCP handles package loss reliably.
E、None of the above.

3、Initialize integer i as 0, what's the value of i after the following operation?(5 Points)

i += i > 0 ? i++ : i --;

A、-2
B、-1
C、0
D、1
E、2

4、Which of the follwing sequence(s) could not be a postorder tree walk result of a binary search tree?(5 Points)
A、1,2,3,4,5
B、3,5,1,4,2
C、1,2,5,4,3
D、5,4,3,2,1

5、When a dll is loaded into memory, which part(s) can be shared between processes?(5 Points)
A、code segment
B、static variable
C、global variable
D、external difinitions and references for linking
E、BSS segment

6、How many times is f() called when calculating f(10)?(5 Points)

int f(int x)
{if(x <= 2)return 1;return f(x - 2) + f(x - 4) + 1;
}

A、14
B、18
C、20
D、24
E、None of the above.

7、Asume you have an object to describe customer data:(5 Points)
{
  ID(7 digit numeric)
  Family Name(string)
  Account Balance(currency)
}
If you have 500,000 Chinese customers records represented by instances of this object type , what set of data structures is best to get fast retrieval of customers (1) get IDs from Name and (2) get Name from ID?
A、(1) Tree with Hash(100 bucket) at leaves(2) Tree with linked list at leaves.
B、(1) Tree with linked list at leaves(2) Array.
C、(1) Tree with linked list at leaves(2) Hash(10,000 buckets)
D、(1) Sort linked list(2) Array.

8、Let's assume one type of cancer may be mis-diagnosed in the examination. 5 out of 100 people with this cancer will be diagnosed as not having it , and 1 out of 100 people without this cancer will be diagnosed as having it. We know the chance of getting this cancer is around 0.1%. One person was examined and diagnosed of having this cancer, which of the following value if the closest to the chance of is really having it?(5 Points)
A、90%
B、50%
C、30%
D、10%

9、In which case(s) would you use an outer join?(5 Points)
A、The table being joined have NOT NULL columns.
B、The table being joined have only matched data.
C、The columns being joined have NULL values.
D、The table being joined have only unmatched data.
E、The table being joined have both matched and unmatched data.

10、As shown in the graph , start from node B , traverse the nodes on a Depth-First Search(DFS) algorithm , which is(are) the possible traversa sequence(s)? Select all that apply.(5 Points)

A、BADECF
B、BADEFC
C、BCAFDE
D、BCFDEA
E、BFDECA

11、The best time complexity of quick sort algorithm is:(5 Points)
A、O(lgn)
B、O(n)
C、O(nlgn)
D、O(n*n)

12、Which of the following method(s) CANNOT be used for Text-encryption:(5 Points)
A、MD5
B、RSA
C、RC4
D、DES
MD5是不可逆加密,不能够用来加密文本,DES和RC4是对称加密,RSA是不正确称加密,都能够用于文本加密。
13、To speed up data access , we build cache system. In one system , The L1 cache access time is 5 ns , the L2 cache access time is 50 ns and the memory access time is 400 ns. The L1 cache miss rate is 50% , the L2 cache miss rate is 10%. The average data access time of this system is:(5 Points)
A、5
B、30
C、45
D、50
E、55

14、Which is(are) valid function pointer declaration(s) below ? Select all that apply.(5 Points)
A、void* f(int);
B、int (*f)();
C、void (*f(int , void(*)(int)))(int);
D、void (*(*f)(int))();

15、Which of the following method(s) could be used to optimize the speed of a program ? (5 Points)
A、Improve memory access pattern to decrease cache misses.
B、Use special instructions(e.g. vector instructions) to replace compiler generated assembly code.
C、Change an algorithm from recursive implementation to iterative implementation.
D、Loop unwinding.

16、Which regular expression(s) matches the sentence "www.microsoft.com" ? (5 Points)
A、^\w+\.\w+\.\w+$
B、[w]{0,3}.[a-z]*.[a-z]+
C、.[c-w.]{3,10}[.][c-w.][.][a]|.+
D、[w][w][w][microsoft]+[com]+
E、\w*

17、In the image below , if the function is designed to multiply two positive numbers which line number in the image contains the biggest functional bug(assume no overflow)? (5 Points)

A、Line 1
B、Line 2
C、Line 3
D、Line 4
E、Line 5

18、Which of the following can be referred to as attack method(s)? Select all that apply.(5 Points)
A、Vulnerability scan
B、SQL Injection
C、Drive-by downloading
D、Brute force

19、A table CANNOT have one or more of the following index configurations.(5 Points)
A、No indexes
B、A clustered index
C、clustered index and many non-clustered indexes
D、Many clustered index

20、Which of the following is(are) true about providing security to database servers ? Select all that apply.(5 Points)
A、Do not host a database server on the same server as your web server
B、Do not host a database server on a server based system
C、Do not use blank password for SA account
D、Employ a centralized administration model

第二部分測试时间为60分钟,满分50分。请务必在回答问题前细致阅读变成题目。您能够选用C、C++、C#或者Java 当中不论什么一种编程语言,而且保证您的代码能够正确编译和有正确的结果。另外,请一定要注意您的代码的质量。
21、Given a singly linked list L: (L0 , L1 , L2...Ln-1 , Ln). Write a program to reorder it so that it becomes(L0 , Ln , L1 , Ln-1 , L2 , Ln-2...).

struct Node
{int val_;Node* next;
};

Notes:
1、Space Complexity should be O(1) 
2、Only the ".next" field of a node is modifiable.
代码:

//转载请标明出处,原文地址:http://blog.csdn.net/hackbuteer1/article/details/12190807
struct Node
{  int val_;  Node* next;
};
Node* reverse_list(Node* phead)   //链表反转
{Node *temp ,*curr , *pre , *reverse_head;pre = NULL;curr = phead;while(curr->next){temp = curr->next;curr->next = pre;pre = curr;curr = temp;}curr->next = pre;reverse_head = curr;return reverse_head;
}Node* Merge(Node* slow , Node* fast)
{if(fast == NULL)return slow;if(slow == NULL)return fast;Node *head , *result;result = NULL;int i = 0;while(slow && fast){if(0 == i){if(NULL == result){head = result = slow;slow = slow->next;}else{result->next = slow;slow = slow->next;result = result->next;}}else{if(NULL == result){head = result = fast;fast = fast->next;}else{result->next = fast;fast = fast->next;result = result->next;}}i ^= 1;}//whileif(slow){result->next = slow;}if(fast){result->next = fast;}return head;
}Node* reorder_list(Node* phead)
{Node *r_head , *slow , *fast;r_head = slow = fast = phead;while(fast->next != NULL && fast->next->next != NULL){slow = slow->next;fast = fast->next->next;}if(slow->next == NULL)return r_head;fast = slow->next;slow->next = NULL;slow = phead;fast = reverse_list(fast);      //链表的后半部分反转r_head = Merge(slow , fast);    //链表归并return r_head;
}

转载请标明出处,原文地址:http://blog.csdn.net/hackbuteer1/article/details/12190807










转载请标明出处处,原文地址:http://blog.csdn.net/hackbuteer1/article/details/12190807

转载于:https://www.cnblogs.com/yxwkf/p/3855101.html

微软2014校园招聘笔试试题相关推荐

  1. 微软2014校园招聘笔试题

  2. 微软2013校园招聘笔试试题及详细解答

    版权所有,转载请注明出处,谢谢! http://blog.csdn.net/walkinginthewind/article/details/8770201 (不定项选择题) 1. Which of ...

  3. 腾讯2014校园招聘笔试试题

    试卷类型:软件开发A1 考试时长:120分钟 一 不定项选择题(共25题,每题4分,共100分,少选.错选.多选均不得分) 1 已知一棵二叉树,如果先序遍历的节点顺序是:ADCEFGHB,中序遍历是: ...

  4. 百度2014校园招聘笔试面试汇总

    目 录 1. 百度笔试 2 1.1百度2014校园招聘笔试题(成都站,软件研发岗) 2 1.2  2013百度校园招聘-机器学习和数据挖掘工程师-笔试题 7 1.3  百度2014校园招聘 技术研发题 ...

  5. 浦发银行计算机笔试题库,2018浦发银行校园招聘笔试试题库

    原标题:2018浦发银行校园招聘笔试试题库 银行招聘网(http://www.jinrongren.net/)提醒:2018浦发银行校园招聘公告已经发布啦,共招聘2152人,公告中明确表明柜员岗专科以 ...

  6. 淘宝2011春季校园招聘笔试试题(答案+个人解析版)

    淘宝2011春季校园招聘笔试试题(答案+个人解析版) 星期五晚上淘宝面试试题,我给出自己的答案,不一定正确,仅供参考. 选择题: 1.       这题是有关网络的题,由于计算机网络开始学,以前也没怎 ...

  7. 暴风影音2014校园招聘笔试题目-技术D卷

    /*暴风影音2014校园招聘笔试题目-技术D卷.6. m*n的网格从左上角A点走到右下角B点,每次可走一格,只能往右或下走.输出有多少种走法和所有路线数. */ #include <cstrin ...

  8. 阿里巴巴集团2014校园招聘笔试题(9月22北京)

    阿里巴巴集团2014校园招聘笔试题 (9月22北京) (答案仅是个人见解,欢迎补充更正,谢谢) 第一部分 单选题(前10题,每题2分:后10题,每题3分.选对得满分,选错倒扣1分,不选得0分) 1.一 ...

  9. 阿里巴巴集团2014校园招聘笔试题------9-22北京 研发工程师

    转自 http://blog.sina.com.cn/s/blog_6f83fdb40101eyzw.html 阿里巴巴集团2014校园招聘笔试题---研发工程师 (9月22北京) (答案仅是个人 ...

最新文章

  1. R语言caret包构建xgboost模型实战:特征工程(连续数据离散化、因子化、无用特征删除)、配置模型参数(随机超参数寻优、10折交叉验证)并训练模型
  2. 未来,所有的企业级SaaS应用都将依托于容器
  3. 计算机组成原理 输入输出系统,计算机组成原理(第七章输入输出系统
  4. linux下crontab实现定时服务详解
  5. 从C语言的角度重构数据结构系列(九)-数据结构哈希表分糖果
  6. 计算机基础应用模拟试题,计算机基础应用模拟试题5
  7. 邮宝打印面单尺寸调整_摆脱束缚,自由轻松!无线打印奥利给(上)
  8. PCB相关的基础知识
  9. 避开10个面试大坑,接offer成功率提升至99%
  10. 图论 —— 网络流 —— 费用流 —— MCMF 算法
  11. sybase数据库配置经验交流
  12. 【elasticsearch】elasticsearch 熔断器
  13. MYSQL中什么是规范化_数据库设计 - 什么是规范化(或规范化)?
  14. win10+Ubuntu16.04双系统安装——史上最稳总结,排除一切花里花哨
  15. Qemu-ARM-Ubuntu 实验一 环境设定
  16. 写一个彩票程序:30选7。
  17. JavaScript快速入门-基础
  18. python扩展模块开发
  19. [树莓派][GPIO][风扇][断点直播]树莓派4B加装风扇并实现风力和CPU温度控制
  20. 求两个数的最大公约数和最小公倍数

热门文章

  1. python编写赛车游戏单机版_使用Python中OrderedDict模拟一个简单的竞速游戏排名
  2. python数据库框架_Python数据库及ORM框架对比选择
  3. ssh服务器拒绝证书,使用SSH.NET以密钥文件连接到SFTP(权限被拒绝(publickey))...
  4. 电大计算机应用,(2016年电大)电大全国计算机应用考试网考.doc
  5. qfdw.xyz sq.php,GitHub - STORMSQ/sqphp: 練習用框架,使用PHP搭建
  6. vs2015开发c语言 简书,微软符号服务器_NT_SYMBOL_PATH给VS调试带来的隐藏坑
  7. android fragment activity 交互,Android基础之Fragment与Activity交互详解
  8. QT:(1)QT下载地址
  9. Linux下代码运行不了?看这里设置环境变量
  10. 强化学习(八) - 深度Q学习(Deep Q-learning, DQL,DQN)原理及相关实例