微软笔试面试大全.docx

上传人:b****5 文档编号:3023032 上传时间:2022-11-17 格式:DOCX 页数:41 大小:56.38KB
下载 相关 举报
微软笔试面试大全.docx_第1页
第1页 / 共41页
微软笔试面试大全.docx_第2页
第2页 / 共41页
微软笔试面试大全.docx_第3页
第3页 / 共41页
微软笔试面试大全.docx_第4页
第4页 / 共41页
微软笔试面试大全.docx_第5页
第5页 / 共41页
点击查看更多>>
下载资源
资源描述

微软笔试面试大全.docx

《微软笔试面试大全.docx》由会员分享,可在线阅读,更多相关《微软笔试面试大全.docx(41页珍藏版)》请在冰豆网上搜索。

微软笔试面试大全.docx

微软笔试面试大全

第一篇笔试题目

招聘考题

(一)

TC2.0环境下的如下程序,执行结果为

pleaseinput:

scanf:

floatingpointformatsnotlinked

Abnormalprogramtermination

试解决!

#include"stdio.h"

#include"stdlib.h"

main()

{

float*a;

a=(float*)malloc(10*sizeof(float));

printf("

Pleaseinput:

");

scanf("%f",&a[0]);/*&a[0]也不行*/

printf("

Whatyouhaveinputis%f

",*a);

getch();

free(a);

}

re:

招聘考题一道

tc2.0中用scanf输入数组的值不能使用浮点型。

只要一用就会出现题目中的错误。

据说这是一个没有解决的BUG。

要解决这个问题可以使用一个变量充当“中间人”传送数据。

其实方法很多的。

微软试题

微软,软件业的巨人,是每个的特别是年轻软件开发人的梦想之地,微软的面试是非常严格的,录取比例大约是60有中选一人,相信可爱的梦想家们肯定急切的想知道怎么样才能幸运的成为1/60!

  微软面试试题可分为

(1)迷语,

(2)算法,(3)应用程序,(4)智力等等,

本文为迷语篇

  现取部分试题内容:

  

  1.为什么下水道的盖子是圆的?

  2.美国有多少辆汽车?

  3.你让工人为你工作七天,回报是一根金条。

这个金一平分成相连的7段,你必须在每天结束的时候给他们一段金条如果只许你两次把金条弄断,你如果给你的工人付费?

  4.有一辆火车以每小时15公里的速度离开洛杉矶直奔纽约,另一辆火车以第小时20公里的速度从纽约开往洛杉矶。

如果有一只鸟,以外30公里每小时的速度和两辆火车现时启动,比洛杉叽出发,碰到另辆车后返回,依次在两辆火车来回的飞行,只到两面辆火车相遇,请问,这只小鸟习行了多长距离?

  5.你有两个罐子,50个红色弹球,50个蓝色弹球,随机选出一个罐子,随机选取出一个弹球放入罐子,怎么给红色弹球最大的选中机会?

在你的计划中,得到红球的准确几率是多少?

  6.想象你在镜子前,请问,为什么镜子中的影像可以颠倒左右,却不能颠倒上下?

  7.你有四人装药丸的罐子,每个药丸都有一定的重量,被污染的药丸是没被污染的重量+1.只称量一次,如何判断哪个罐子的药被污染了?

  8.如果你有无穷多的水,一个3夸脱的和一个5夸脱的提桶,你如何准确称出4夸脱的水?

  9.你有一桶果冻,其中有黄色,绿色,红色三种,,闭上眼睛选出同样颜色的两个,抓取同种颜色的两个。

抓取多少个就可以确定你肯定有两个同一颜色的果冻?

  10.将汽车钥匙插入车门,向哪个方向旋转就可以打开车锁?

11.如果要你能去掉50个州的任何一个,那你去掉哪一个,为什么?

Riddles

*Whyisamanholecoverround?

*HowmanycarsarethereintheUSA?

*You'vegotsomeoneworkingforyouforsevendaysandagoldbartopaythem.Thegoldbarissegmentedintosevenconnectedpieces.Youmustgivethemapieceofgoldattheendofeveryday.Ifyouareonlyallowedtomaketwobreaksinthegoldbar,howdoyoupayyourworker?

*OnetrainleavesLosAngelesat15mphheadingforNewYork.AnothertrainleavesfromNewYorkat20mphheadingforLosAngelesonthesametrack.Ifabird,flyingat25mph,leavesfromLosAngelesatthesametimeasthetrainandfliesbackandforthbetweenthetwotrainsuntiltheycollide,howfarwillthebirdhavetraveled?

*Youhavetwojars,50redmarblesand50bluemarbles.Ajarwillbepickedatrandom,andthenamarblewillbepickedfromthejar.Placingallofthemarblesinthejars,howcanyoumaximizethechancesofaredmarblebeingpicked?

Whataretheexactoddsofgettingaredmarbleusingyourscheme?

*Imagineyouarestandinginfrontofamirror,facingit.Raiseyourlefthand.Raiseyourrighthand.Lookatyourreflection.Whenyouraiseyourlefthandyourreflectionraiseswhatappearstobehisrighthand.Butwhenyoutiltyourheadup,yourreflectiondoestoo,anddoesnotappeartotilthis/herheaddown.Whyisitthatthemirrorappearstoreverseleftandright,butnotupanddown?

*Youhave4jarsofpills.Eachpillisacertainweight,exceptforcontaminatedpillscontainedinonejar,whereeachpillisweight+1.Howcouldyoutellwhichjarhadthecontaminatedpillsinjustonemeasurement?

*Ifyouhadaninfinitesupplyofwateranda5quartand3quartpail,howwouldyoumeasureexactly4quarts?

*Youhaveabucketofjellybeans.Somearered,someareblue,andsomegreen.Withyoureyesclosed,pickout2ofalikecolor.Howmanydoyouhavetograbtobesureyouhave2ofthesame?

*Whichwayshouldthekeyturninacardoortounlockit?

*Ifyoucouldremoveanyofthe50states,whichstatewoulditbeandwhy?

数学篇

1、1000!

有几位数,为什么

2、F(n)=1n>8n<12

F(n)=2n<2

F(n)=3n=6

F(n)=4n=other

使用+-*/和sign(n)函数组合出F(n)函数

sign(n)=0n=0

sign(n)=-1n<0

sign(n)=1n>0

3、编一个程序求质数的和例如F(7)=1+3+5+7+11+13+17=58

智力题

只有5分钟,超过5分钟就放弃,因为你绝对不会被微软招聘.这是微软招聘时的智力测试!

!

!

!

超过5分钟,淘汰!

!

!

!

1烧一根不均匀的绳需用一个小时,如何用它来判断半个小时?

2

请仅用一笔画四根直线,将上图9各点全部连接。

3对一批编号为1~100全部开关朝上(开)的灯进行以下操作:

凡是1的倍数反方向拨一次开关;2的倍数反方向又拨一次开关;3的倍数反方向又拨一次开关。

问:

最后为关熄状态的灯的编号。

Applications

*Howcancomputertechnologybeintegratedinanelevatorsystemforahundredstoryofficebuilding?

*Howdoyouoptimizeforavailability?

Howwouldvariationoftrafficoveratypicalworkweekorfloorortimeofdayaffectthis?

*HowwouldyouredesignanATM?

*Supposewewantedtorunamicrowaveovenfromthecomputer.Whatkindofsoftwarewouldyouwritetodothis?

*Howwouldyoudesignacoffee-machineforanautomobile.

Thinkers

*HowareM&Msmade?

*Ifyouhadtolearnanewcomputerlanguage,howwouldyougoaboutdoingit?

*IfMStoldyouwewerewillingtoinvest$5millioninastartupofyourchoice,whatbusinesswouldyoustart?

Why?

*Ifyoucouldgatherallofthecomputermanufacturersintheworldtogetherintooneroomandthentellthemonethingthattheywouldbecompelledtodo,whatwoulditbe?

*Explainascenariofortestingasaltshaker.

*Ifyouaregoingtoreceiveanawardin5years,whatisitforandwhoistheaudience?

*HowwouldyouexplainhowtouseMicrosoftExceltoyourgrandma?

*Whyisitthatwhenyouturn

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 高中教育 > 语文

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1