名企求职笔试面试大全

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

第一篇笔试题目from:http://招聘考题(一)TC2.0环境下的如下程序,执行结果为pleaseinput:scanf:floatingpointformatsnotlinkedAbnormalprogramtermination试解决!#includestdio.h#includestdlib.hmain(){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)=1n8n12F(n)=2n2F(n)=3n=6F(n)=4n=other使用+-*/和sign(n)函数组合出F(n)函数sign(n)=0n=0sign(n)=-1n0sign(n)=1n03、编一个程序求质数的和例如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?*Whyisitthatwhenyouturnonthehotwaterinanyhotel,forexample,thehotwatercomespouringoutalmostinstantaneously?Algorithms*What'sthedifferencebetweenalinkedlistandanarray?*Implementanalgorithmtosortalinkedlist.Whydidyoupickthemethodyoudid?*Implementanalgorithmtosortanarray.Whydidyoupickthemethodyoudid?*Implementstrstr()(orsomeotherstringlibraryfunction).*Reverseastring.Optimizeforspeed.Optimizeforspace.*Countthenumberofsetbitsinanumber.Nowoptimizeforspeed.Nowoptimizeforsize.*Howwouldyoufindacycleinalinkedlist?*Givemeanalgorithmtoshuffleadeckofcards,giventhatthecardsarestoredinanarrayofints.*Writeafunctionthattakesinastringparameterandcheckstoseewhetherornotitisaninteger,andifitisthenreturntheintegervalue.*Writeafunctiontoprintallofthepermutationsofastring.*Implementmalloc.*WriteafunctiontoprinttheFibonaccinumbers.*Writeafunctiontocopytwostrings,AandB.ThelastfewbytesofstringAoverlapthefirstfewbytesofstringB.*Howwouldyouprintoutthedatainabinarytree,lev

1 / 33
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功