




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
第页共页摩托罗拉moto笔试题摩托罗拉moto笔试题通讯考的都是根底知识,但是不是通讯专业的一般都要靠摸的,计算机考的比拟有深度,主要是c和c++;类的继承关系(初始化顺序);二*树的先序、中序、后序,知道其中两个,推导剩下的一个;i++和++i问题,摩托罗拉moto笔试题。例如:inti=1;intj;j=(++i)+(++i)+(++i)+(++i);//j=15inti=1;intj;j=(++i)+(++i)+(i++)+(i++)+(++i);//j=16moto面试中英语口语很重要,技术面试一开场就是用英语的,后来不行了,只好用中文。第二面的那个人力资的主管就是全英文了,一路面下来不吐一个汉字。二面的时候主要就是聊天了,问问你的爱好,和同学关系什么的`,主要是看口语,以及你个人的性格。moto待遇6000+770。干满三年一次性发6000*20%的住房公积金//计算字符串长度的函数intstrlen_mod(char*str){intcount=0;while(str[count]!=‘\0′){++count;}returncount;}//将字符串反转输出的函数voidprint_reverse(char*str){size_tsize=strlen(str);intsize2=strlen_mod(str);printf(“Thelengthof%sis%d###%d\n”,str,size,size2);inti;chartemp=‘‘;for(i=0;i<size/2;i++){printf(“%d\n”,i);temp=str[i];str[i]=str[size-1-i];str[size-1-i]=temp;}printf(“Reversestring:%s\n”,str);}Whatwillprintout?输出结果是?main{char*p1=“name”;char*p2;p2=(char*)malloc(20);memset(p2,0,20);//while(*p2++=*p1++);printf(“%sn”,p2);}Answer:emptystring.Whatwillbeprintedastheresultoftheoperationbelow:main{intx=20,y=35;x=y+++x++;y=++y+++x;printf(“%d%dn”,x,y);}Answer:5794Whatwillbeprintedastheresultoftheoperationbelow:main{intx=5;printf(“%d,%d,%dn”,x,x<<2,x》》2);}Answer:5,20,1Whatwillbeprintedastheresultoftheoperationbelow:#defineswap(a,b)a=a+b;b=a-b;a=a-b;voidmain{intx=5,y=10;swap(x,y);printf(“%d%dn”,x,y);swap2(x,y);printf(“%d%dn”,x,y);}intswap2(inta,intb){inttemp;temp=a;b=a;a=temp;return0;}Answer:10,510,5Whatwillbeprintedastheresultoftheoperationbelow:main{char*ptr=”CiscoSystems”;*ptr++;printf(“%sn”,ptr);ptr++;printf(“%sn”,ptr);}Answer:CiscoSystemsiscosystemsWhatwillbeprintedastheresultoftheoperationbelow:main{chars1[]=“Cisco”;chars2[]=“systems”;printf(“%s”,s1);}Answer:CiscoWhatwillbeprintedastheresultoftheoperationbelow:main{char*p1;char*p2;p1=(char*)malloc(25);p2=(char*)malloc(25);strcpy(p1,”Cisco”);strcpy(p2,“systems”);strcat(p1,p2);printf(“%s”,p1);}Answer:CiscosystemsThefollowingvariableisavailableinfile1.c,whocanaccessit?:staticintaverage;Answer:allthefunctionsinthefile1.ccanaccessthevariable.WHatwillbetheresultofthefollowingcode?#defineTRUE0//somecodewhile(TRUE){//somecode}Answer:ThiswillnotgointotheloopasTRUEisdefinedas0.Whatwillbeprintedastheresultoftheoperationbelow:intx;intmodifyvalue{return(x+=10);}intchangevalue(intx){return(x+=1);}voidmain{intx=10;x++;changevalue(x);x++;modifyvalue;printf(“Firstoutput:%dn”,x);x++;changevalue(x);printf(“Secondoutput:%dn”,x);modifyvalue;printf(“Thirdoutput:%dn”,x);}Answer:12,13,13Whatwillbeprintedastheresultoftheoperationbelow:main{intx=10,y=15;x=x++;y=++y;printf(“%d%dn”,x,y);}Answer:11,16Whatwillbeprintedastheresult
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 【正版授权】 IEC 60335-2-78:2021+AMD1:2025 CSV EN Household and similar electrical appliances - Safety - Part 2-78: Particular requirements for outdoor barbecues
- 个人股份转让协议书
- 劳务合同到期不续签
- 信息管理系统建设及维护合同
- 石油钻井服务合同
- 房屋委托租赁居间服务合同
- 大型挖掘机买卖合同
- 综合办公服务合同
- 双11策划活动方案模板
- 公司内部借款协议
- 贵州省教育科学规划课题申请书
- 火针疗法课件
- 学校行政领导夜间值班制度
- 托莱西单抗注射液 (CXSS2200059)说明书
- 合同移交登记表
- 南方医科大学深圳医院核技术利用扩建项目项目环境影响报告表
- C++面向对象的程序设计课件
- 保险产说会(养老主题)课件
- 风景园林工程初步设计文件编制深度规定
- 六年级心理健康导学案-10真正的朋友 |大象版
- 大专建筑工程毕业论文6000字
评论
0/150
提交评论