2025年C招聘求职综合笔试试题集锦大全_第1页
2025年C招聘求职综合笔试试题集锦大全_第2页
2025年C招聘求职综合笔试试题集锦大全_第3页
2025年C招聘求职综合笔试试题集锦大全_第4页
2025年C招聘求职综合笔试试题集锦大全_第5页
已阅读5页,还剩1页未读 继续免费阅读

下载本文档

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

文档简介

C++求职笔试题汇总.txt永远像孩子同样好奇,像年轻人同样变化,像中年人同样耐心,像

老年人同样睿智。我的腰闪了,惹祸的不是青春,而是压力。。。。。。当女人不再痴缠,不再耍

赖,不再喜怒无常,也就不再爱了。华为笔试题

1.请你分别画出OSI的七层网络构造图和TCP/IP的五层构造图。

2.请你详细地解释一•下IP协议的定义,在哪个层上面?重要有什么作用?TCP与UDP

呢?

3.请问互换机和路由器各自的实现原理是什么?分别在哪个层次上面实现的?

4.请问C++的类和C里面的struct有什么区别?

5.请讲一讲析构函数和虚函数的使用方法和作用。

6.全局变量和局部变量有什么区别?是怎么实现的?操作系统和编译器是怎么懂得的?

7.8086是多少位的系统?在数据总线上是怎么实现的?

联想笔试题

1.设计函数intatoi(char*s)。

2.inti=(j=4,k=8,1=16,m=32);printf(rt%dw,i);输出是多少?

3.解释局部变量、全局变量和静态变量的含义。

4.解释堆和栈的区苑。

5.论述含参数的宏与函数的优缺陷

普天C++笔试题

1.实现双向链表删除一种节点P,在节点P后插入一种节点,写出这两个函数。

2.写一种函数,将其中的\t都转换成4个空格。

3.Windows程序的入口是哪里?写出Windows消息机制的流程。

4.怎样定义和实现一种类的组员函数为回调函数?

5.C++里面是不是所有的动作都是main。引起的?假如不是,请举例。

6.C++里面怎样申明constvoidf(void)函数为C程序中的库函数?

7.下列哪两个是等问的

intb;

Aconstint*a=&b;

Bconst*inta=&b;

Cconstint*consta=&b;

I)intconst*consta=&b;

8.内联函数在编译时与否做参数类型检查?

voidg(base&b){

b.play;

)

voidmain(){

sons;

g(s);

return;

)

1.HowdoyoucodeaninfiniteloopinC?

2.Volatile:

(1)Whatdoesthekeywordvolatilemean?Giveanexample

(2)Canaparameterbebothconstandvolatile?Giveanexample

(3)Canapointerbevolatile?Giveanexample

3.Whatarethevaluesofa,b,andcafterthefollowinginstructions:

inta=5,b=7,c;

c=a+++b;

4.Whatdothefollowingdeclarationsmean?

(1)constinta;

(2)intconsta;

(3)constint*a;

(4)int*consta;

(5)intconst*aconst;

5.Whichofthefollowingstatementsdescribetheuseofthekeywordstatic?

(1)Withinthebodyofafunction:Asteiticvariablemaintainsitsvaluebetween

functionrevocations

(2)Withinamodule:Astaticvariableisaccessiblebyallfunctionswithin

thatmodule

(3)Withinamodule:Astaticfundioncanon1ybecalledbyotherfunctions

withinthatmodule

6.Embeddedsystemsalwaysrequiretheusertomanipulatebitsinregistersor

varicibles.Givenanintegervariablea,writetwocodefragments.

Thefirstshouldsetbit5ofa.Thesecondshnuldclearbit5ofa.Inbothcases,

theremainingbitsshotIdbeunmodified.

7.Whatdoesthefollowingfunctionreturn?

charfoo(void)

unsignedinta=6;

ihtb=-20;

charc;

(a+b>6)?(c=l):(c=0);

returnc;

)

8.WhatwillbetheoutputofthefollowingCcode?

main()

intk,num=30;

k=(num>5?(num<=10?100:200):500);

printf("%d”,k);

)

9.WhatwillthefollowingCcodedo?

int*ptr;

ptr=(int*)0x67a9;

*ptr=0xaa55;

10.WhatwillbetheoutputofthefollowCcode?

#defineproduct(x)(x*x)

main()

inti=3,j,k;

j=product(i++);

k=product(++i);

printfCM%d%d”,j,k);

)

11.SimplifythefollowingBooleanexpression

!((i==12)||(j>15))

12.Howmanyflip-flopcircuitsareneededtodivideby16?

13.Provides3propertiesthatmakeanOS,aRTOS?

14.Whatispre-emption?

15.AssumetheBCregistervalueis8538H,andtheDEregistervalueis62A5H.Find

thevalueofregisterBCafterthefollowingassemblyoperations:

MOVA,C

SUBE

MOVC,A

MOVA,B

SBBD

MOVB,A

16.IntheAssemblycodeshownbelow

LOOP:MVIC,78H

DCRC

JNZLOOP

I1LT

HowmanytimesistheDCRCOperationexecuted?

17.Describethemostefficientway(intermofexecutiontimeandcodesize)

todivideanumberby4inassemblylanguage

18.whatvalueisstoredinminthefollowingassemblylanguagecodefragment

ifn=7?

LDAA#n

LABEL1:CMPA#5

BHIL3

BEQL2

DECA

BRALI

LABEL2:CLRA

LABEL3:STAA#m

19.Whatisthestateofaprocessifaresourceisnotavaitable?

definea365*24*60*60

20.Usingthe#definestatement,howwouldyoudeclareamanifestconstantthat

returnsthenumberofsecondsinayear?Disregardleapyearsinyouranswer.

2.Insertasequencefokeys(24,49,13,20,59,23,90,35)intoadatastructure,

whichhasnokeysinitially.Depictthedatastructureaftertheseinsertions,if

itis:

*aheaptree

*anAVLtree

3.*WhatisasynchronousI/Obus?

*WhatisanasnchronousI/Obus?

*ComparetheadvantagesanddisadvantagesofsynchronousandasynchronousI/O

bus.

4.Explainthefollowingterminology:

*Baudrate

*Handshaking

*MemorymappedI/O

5.Expkiinthekeyissuesinsupportingareal-timeoperationsystemforembedded

system.

6.Explainthemappingofvisualaddressestorealaddressesunderpagingby

*directmapping

*associativemapping

*combineddirect/cssociatedmapping

7.Pleaseexplainwhatis“write-back”and"write-through”,anddiscussthe

advcintageanddisadvantageaboutthesetwomethods.

8.Explaintheconceptandbenefitofthreads

9.Whatishardwareinterrupt?Whatissoftwareinterrupt?Whatisexception?

Pleasetellmeallyouknowaboutinterrupt.

10.Writearecursivefunctionthattestswetherastringisapalindrone.A

palindromeissstringsuchas“abeba"or“otto"thatreadsthesameinboth

directions.Ifyoucanwritethisfunctionrecursively,youcanwriteaniterative

versionofthisfunctioninstead.

11.什么是进程(Process)和线程(Thread)?有何区别?

12.MFC和SDK有何区别?

13.I即是什么?有何作用?

14.Windows操作系统下顾客模式和内核模式下编程有何区别?

15.驱动程序的BUFF豕能swap到磁盘上去吗?为何?

16.试编写3个函数实现

(1)建立一种双向链表

(2)插入一种节点

(3)删除一种节点

17.简述Hardwareinterrupt和software中断的区别,简述其应用。

18.试编写一种函数,计算一种字符串中A的个数。

19.画出其对应流程图并编写••种函数实现•种整数到二进制数的转换,如输入6,输

出110o

20.

(1)编写一种递归函数,删除一种目录。

(2)编写一种非递归函数,删除一种目录。

并比较其性能。

广东北电面试题目

英文笔试题

1.Tranlation(Mancatory)

CDMAvendorshaveworkedhardtogiveCDMAroamingcapabilitiesvicthe

developmentofRUIM-essentially,aSIMcardforCDMAhandsetscurrentlybeing

deployedinChinafornewCDMAoperatorChinaUnicom.KoreancellcoKTFdemonstrated

earlierthisyeartheabilitytoroambetweenGSMandCDMAusingsuch

cards.However,onlythecardcontainingtheuser'sservicedatacanroam-nottheCDMA

handsetortheuser'snumber(exceptviacal1forwarding).

2.Programming(Mandatory)

Linkedlist

a.Implementalinkedlistforintegers,whichsupportstheinsertafter(insert

anodeafteraspecifiednode)andremoveafter(removethenodeafteraspecified

node)methods;

b.Implementamethodtosortthelinkedlisttodescendingorder.

3.Debugging(Mandatory)

a.Foreachofthefollowingrecursivemethods,enterYintheanswerboxif

thomethodterminators(assumei=5),OtherwiseenterN.

staticintf(inti){

returnf(i-l)*f(i-1);

温馨提示

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

评论

0/150

提交评论