笔试题目集锦

上传人:xzh****18 文档编号:34582212 上传时间:2018-02-25 格式:DOC 页数:38 大小:199.50KB
返回 下载 相关 举报
笔试题目集锦_第1页
第1页 / 共38页
笔试题目集锦_第2页
第2页 / 共38页
笔试题目集锦_第3页
第3页 / 共38页
笔试题目集锦_第4页
第4页 / 共38页
笔试题目集锦_第5页
第5页 / 共38页
点击查看更多>>
资源描述

《笔试题目集锦》由会员分享,可在线阅读,更多相关《笔试题目集锦(38页珍藏版)》请在金锄头文库上搜索。

1、笔试题目集锦(以下文章为网络收藏)Intel 今年笔试题第一道是一个编译器优化的题目。条件大致说在 ZF 为 0 或者不为 0 的情况下,分别有两条移位指令可以移进去。然后出了两个小题,要你优化。第二道是 N 个人围成一圈报数,报到某一个数的就出局,问你最后剩下来的那个人的号码。编程题。第三道大致如下:以下两个程序哪个的 performance 高,并解释为什么。a)extern int foo(void);int main()int i;for(i=0;istruct Aint i;char j;char * ptr;long Array100;char b2;char * c;#defin

2、e PRINT_ME (char *)&(struct A *)0)-c)void main()printf(%dn, PRINT_ME); Intel EE 的 IQ 测试题 有 10 堆苹果,每一堆 10 个其中一堆每个 240g其它每堆都是 250g/个有一把称请你只称一次把那一堆 240 的苹果找出来 Intel 的虚拟函数指针那道题#include class CBasepublic:virtual void foo() coutc;补充一下1、何时调用拷贝构造函数 (根据一个 object 创建另一个 object,clone)2、构造函数是否有返回类型3、一个 4word(wor

3、d=4bytes)的 cache,问以下程序段 cache 命中率(a)for( int i=0; i: : struct bit: : int a:3;: : int b:2;: : int c:3;: : ;: : int main(int argc, char* argv): : bit s;: : char *c = (char*): : *c = 0x99;: : cout a.c long temp255;b.c extern *temp;2a.c long temp255;b.c extern temp256;3a.c long temp255;b.c extern temp;2

4、, 在第一个声明处编译出了奇怪的错误,为什么? #include #include myfun1.h#include myfun2.hint myInt1;int myInt2; 3, printf(0x%x, ( 请问打印了什么?4, #define offset(s,c) 同 intel 的题.5, 汇编,用 ax,bx,cx,dx, 求 1000*1000/30(四舍五入), 结果放在 ax 中.6, 编最优化 Bubble(int *pIntArray,int L),要求: 交换元素不能用临时变量,如果有序,需要最优.7, 1,2,3,4,5,6,7,8,9 从栈里出来的可能性. (略

5、)8, 求一个 struct 的 sizeof.(略)这两题没太大难度.招聘考题(一) TC2.0 环境下的如下程序, 执行结果为 please input: scanf : floating point formats not linked Abnormal program termination 试解决! #include stdio.h #include stdlib.h main() float *a; a = (float *)malloc(10*sizeof(float); printf(Please input: ); scanf(%f, /* &a0 也不行 */ printf

6、(What you have input is %f, *a); getch(); free(a); re:招聘考题一道 tc2.0 中用 scanf 输入数组的值不能使用浮点型。 只要一用就会出现题目中的错误。 据说这是一个没有解决的 BUG。 要解决这个问题可以使用一个变量充当“中间人”传送数据。 其实方法很多的。 微软试题微软,软件业的巨人,是每个的特别是年轻软件开发人的梦想之地,微软的面试是非常严格的,录取比例大约是 60 有中选一人,相信可爱的梦想家们肯定急切的想知道怎么样才能幸运的成为 1/60! 微软面试试题可分为(1)迷语, (2)算法, (3)应用程序, (4)智力等等, 本

7、文为迷语篇现取部分试题内容: 1.为什么下水道的盖子是圆的? 2.美国有多少辆汽车? 3.你让工人为你工作七天,回报是一根金条。这个金一平分成相连的 7 段,你必须在每天结束的时候给他们一段金条如果只许你两次把金条弄断,你如果给你的工人付费? 4.有一辆火车以每小时 15 公里的速度离开洛杉矶直奔纽约,另一辆火车以第小时 20公里的速度从纽约开往洛杉矶。如果有一只鸟,以外 30 公里每小时的速度和两辆火车现时启动,比洛杉叽出发,碰到另辆车后返回,依次在两辆火车来回的飞行,只到两面辆火车相遇,请问,这只小鸟习行了多长距离? 5.你有两个罐子,50 个红色弹球,50 个蓝色弹球,随机选出一个罐子,

8、随机选取出一个弹球放入罐子,怎么给红色弹球最大的选中机会?在你的计划中,得到红球的准确几率是多少? 6.想象你在镜子前,请问,为什么镜子中的影像可以颠倒左右,却不能颠倒上下? 7.你有四人装药丸的罐子,每个药丸都有一定的重量,被污染的药丸是没被污染的重量+1.只称量一次,如何判断哪个罐子的药被污染了? 8.如果你有无穷多的水,一个 3 夸脱的和一个 5 夸脱的提桶,你如何准确称出 4 夸脱的水? 9.你有一桶果冻,其中有黄色,绿色,红色三种, ,闭上眼睛选出同样颜色的两个,抓取同种颜色的两个。抓取多少个就可以确定你肯定有两个同一颜色的果冻? 10.将汽车钥匙插入车门,向哪个方向旋转就可以打开车

9、锁? 11.如果要你能去掉 50 个州的任何一个,那你去掉哪一个,为什么?Riddles * Why is a manhole cover round?* How many cars are there in the USA?* Youve got someone working for you for seven days and a gold bar to pay them. The gold bar is segmented into seven connected pieces. You must give them a piece of gold at the end of ever

10、y day. If you are only allowed to make two breaks in the gold bar, how do you pay your worker? * One train leaves Los Angeles at 15mph heading for New York. Another train leaves from New York at 20mph heading for Los Angeles on the same track. If a bird, flying at 25mph, leaves from Los Angeles at t

11、he same time as the train and flies back and forth between the two trains until they collide, how far will the bird have traveled?* You have two jars, 50 red marbles and 50 blue marbles. A jar will be picked at random, and then a marble will be picked from the jar. Placing all of the marbles in the

12、jars, how can you maximize the chances of a red marble being picked? What are the exact odds of getting a red marble using your scheme?* Imagine you are standing in front of a mirror, facing it. Raise your left hand. Raise your right hand. Look at your reflection. When you raise your left hand your

13、reflection raises what appears to be his right hand. But when you tilt your head up, your reflection does too, and does not appear to tilt his/her head down. Why is it that the mirror appears to reverse left and right, but not up and down? * You have 4 jars of pills. Each pill is a certain weight, e

14、xcept for contaminated pills contained in one jar, where each pill is weight + 1. How could you tell which jar had the contaminated pills in just one measurement?* If you had an infinite supply of water and a 5 quart and 3 quart pail, how would you measure exactly 4 quarts?* You have a bucket of jel

15、ly beans. Some are red, some are blue, and some green. With your eyes closed, pick out 2 of a like color. How many do you have to grab to be sure you have 2 of the same?* Which way should the key turn in a car door to unlock it?* If you could remove any of the 50 states, which state would it be and why? 数学篇1、1000!有几位数,为什么 2、F(n)=1 n8 n0 3、编一个程序求质数的和例如 F(7)=1+3+5+7+11+13+17=58 智力题 只有 5 分钟,超过 5 分钟就放弃,因为你绝对不会被微软招聘. 这是微软招聘时的智力测试!超过 5 分钟,淘汰! 1 烧一根不均匀的绳需用一个小时,如何用它来判断半个小时? 2 。 。 。 。 。 。 。 。 。 请仅用一笔画四根直线,将上图 9 各点全部连接。 3 对一批编号为 1100 全部开关朝上(开)的灯进行以下操作: 凡是 1 的倍数反方向拨一次开关;2 的倍数反方向又拨一次开关;3

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 中学教育 > 试题/考题 > 高中试题/考题

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号