收集的一些嵌入式软件工程师面试题目_第1页
收集的一些嵌入式软件工程师面试题目_第2页
收集的一些嵌入式软件工程师面试题目_第3页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、将一个字符串逆序2、将一个链表逆序3、计算一个字节里(byte)里面有多少bit被置14、搜索给定的字节(byte)5、在一个字符串中找到可能的最长的子字符串6、字符串转换为整数7、整数转换为字符串威盛什么是平衡二叉树?编写一个删除平衡二叉树的程序?写一个程序,求有向有权图两点之间的最小权?3•根据你的理解,写出Cstring类的构造函数和析构函数?4•使用C语言实现对ini文件的访问,使程序可以对int,double,字符串类进行读写。5.nXn个方格(n为任意整数),定义若两个格有公共边则称两个格相邻。现将个格中的N个格子图黑,使每个格子都与黑格子相邻。试编程,使N最小。l.static变量和static函数各有什么特点?3•描述一下嵌入式基于ROM的运行方式基于ram的运行方式有什么区别。task有几种状态?task有几种通讯方式?C函数允许重入吗?嵌入式操作系统和通用操作系统有什么差别?一面,技术面VxWorks、uc/OS、Palm嵌入式系统操作系统的区别?做嵌入式软件开发和普通桌面软件开发有什么区别?c语言问题,union和struct的区别?sizeof(—大堆变量),如果用这个函数分配内存的大小一定与定义相同吗?解释什么是优先级反转。Canstructuresbepassedtothefunctionsbyvalue?Whycannotarraysbepassedbyvaluestofunctions?Advantagesanddisadvantagesofusingmacroandinlinefunctions?Whathappenswhenrecursionfunctionsaredeclaredinline?Scopeofstaticvariables?Differencebetweenobjectorientedandobjectbasedlanguages?Multipleinheritance-objectscontainhowmanymultiplyinheritedancestor?Whatarethe4differenttypesofinheritancerelationship?Howwouldyoufindoutthenoofinstanceofaclass?Isjavaapureobjectorientedlanguage?Why?Orderofconstructoranddestructorcallincaseofmultipleinheritance?Canuhaveinlinevirtualfunctionsinaclass?Whenyouinheritaclassusingprivatekeywordwhichmembersofbaseclassarevisibletothederivedclass?Whatistheoutputofprintf("\nab\bcd\ref");->ef#definecat(x,y)x##yconcatenatesxtoy.Butcat(cat(1,2),3)doesnotexpandbutgivespreprocessorwarning.Why?Canyouhaveconstantvolatilevariable?Yes,youcanhaveavolatilepointer?++*ipincrementswhat?itincrementswhatippointstoOperationsinvolvingunsignedandsigned一unsignedwillbeconvertedtosigneda+++b->(a++)+bmalloc(sizeof(O))willreturn一validpointermain(){fork();fork();fork();printf("helloworld");}一willprint8times.Arrayofptstofunctions一void(*fptr[10])()Whichwayofwritinginfiniteloopsismoreefficientthanothers?thereare3ways.#error一whatitdoes?Howisfunctionitoa()written?Whotoknowwethersystemusesbigendianorlittleendianformatandhowtoconvertamongthem?Whatisinterruptlatency?Whatisforwardreferencew.r.t.pointersinc?Howisgenericlistmanipulationfunctionwrittenwhichacceptselementsofanykind?Whatisthedifferencebetweenhardreal-timeandsoftreal-timeOS?Whatisinterruptlatency?Howcanyourecuceit?Whatisthedifferncebetweenembeddedsystemsandthesysteminwhichrtosisrunning?Howcanyoudefineastructurewithbitfieldmembers?WhatarethefeaturesdifferentinpSOSandvxWorks?Howdoyouwriteafunctionwhichtakes2arguments-abyteandafieldinthebyteandreturnsthevalueofthefieldinthatbyte?WhatarethedifferentstorageclassesinC?WhatarethedifferentqualifiersinC?WhatarethedifferentBSDandSVR4communicationmechanisms一位资深的嵌入式项目经理曾这样对我说:搞嵌入式要往下走,要搞底层要搞算法,因为它们比较有前途。EmbeddedfirmwareinterviewquestionsWritefunctioninCthatgetsarrayofchars,andsearchforthelongestsequenceofrepeatedly1bits.Itreturnsthethefirstbitplaceinthesequenceandthenumberof1bitsinthesequence.-(a)loopof2A0,2A1,•…,2A7isdonewith1vvjwhen0<=j<=7.(b)Takecareofrememberingthefirstplaceofthebitsequenceyouarecounting.Youhave16bitregisterthatincrementitselfandloopsabouteverysecond.Whentheregisterreach0xffffitwillissueaninteruptandwillrunthefunctionupdate_time().Thereisafunctionunsignedlongget_time()thatreturnsthetime.Youneedtoimplementthetwofunctions.-(a)Youneedtocounteveryinterruptinordertosavethenumberofseconds.(b)Thecounterwillbethe16bitMSB,andtheactualregisterwillbe16bitLSB.(c)Iftheregisterwillbeat~0xfff0,youwillreturnMSBthatisnotcorrect,becauseyouwillreadthecounter,theninterruptwillaccureandincrementbyone.Nowyouhavecounterthatisnotcorrect.(d)Youneedtocheckforthe(c)problem,andifyoucatchtheproblem,youneedtoreadonceagaintheregisterandthecounterbeforeyoureturnthem.Youdependonthefacttheyouhaveaboutanotherseconduntiltheregisterwillloop.对嵌入式初学者有必要解释一下什么是firmware,中文为固件,一般跑在DSP上,是比较底层的东西,也是目前比较热门和有挑战性的嵌入式工种。从下面的一则招聘信息中我们也可以知道Firmware大概干些什么。招聘职位:Firmwareengineer/SeniorFirmwareengineer职位描述:FirmwareEngineerResponsibility:DevelopingoradaptinghardwaredevicedriverDevelopingoradaptingembeddedapplicationsoftwareforVideoCodecImplementingsoftwareonsystem-on-chipsolutionusingacombinationofCandassemblyprogramminglanguages.TuningsoftwareforperformanceRequirements:.SolidskillsdevelopinginCandassemblylanguages,Experiencedevelopinganddebuggingembeddedsystems(ARC,ARM,MIPS,SPARC,...).familiarwithperipheralsandprotocols,suchasI2C,UART,USB,LCD,Ethernet,IDE,SD,TCP/IP,RTP...,KnowledgeofVideoCODECstandardandprinciple,eg:MPEG-1/2/4,H.264ispreferred.goodatEnglish,teamplayer,positivepersonality,andabletoworkunderpressuretomeetdeadlines.BSinElectricalEngineering,ComputerScience,Abilitytolearnandapplynewknowledgequickly职位要求:SeniorFirmwareEngineerResponsibility:Developmentofembeddedsoftwaresystemsforvideoprocessing,involveinallphasesoftheembeddedsoftwaredevelopmentcycleincludingresearch,design,implementation,systemdebug,anddocumentation.Top-levelsystemfirmwareintegration;Systemperformancetrimmingandimprovement;Requirements:Experiencedevelopinganddebuggingembeddedsystems(ARC,ARM,MIPS,SPARC,...),especiallyinaRTOSenvironment(ThreadX,uclinux,MQX).familiarwithperipheralsandprotocols,suchasI2C,UART,USB,LCD,Ethernet,IDE,SD,TCP/IP,RTP..GoodknowledgeofVideoCODECstandardandprinciple,(eg:MPEG-1/2/4,H.264),hands-on.experi

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论