如果您无法下载资料,请参考说明:
1、部分资料下载需要金币,请确保您的账户上有足够的金币
2、已购买过的文档,再次下载不重复扣费
3、资料包下载后请先用软件解压,在使用对应软件打开
德尔福笔试软件类德尔福笔试(软件类)德尔福软件方向的笔试题1.HowdoyoucodeaninfiniteloopinC?2.Volatile:a)Whatdoesthekeywordvolatilemean?Giveanexampleb)Canaparameterbebothconstandvolatile?Giveanexamplec)Canapointerbevolatile?Giveanexample3.Whatarethevaluesofa,b,andcafterthefollowinginstructions:inta=5,b=7,c;c=ab;4,Whatdothefollowingdeclarationsmean?a)constinta;b)intconsta;c)constint*a;d)int*consta;e)intconst*aconst;5.Whichofthefollowingstatementsdescribetheuseofthekeywordstatic?a)Withinthebodyofafunction:Astaticvariablemaintainsitsvaluebetweenfunctionrevocationsb)Withinamodule:Astaticvariableisaccessiblebyallfunctionswithinthatmodulec)Withinamodule:Astaticfunctioncanonlybecalledbyotherfunctionswithinthatmodule6.Embeddedsystemsalwaysrequiretheusertomanipulatebitsinregistersorvariables.Givenanintegervariablea,writetwocodefragments.Thefirstshouldsetbit5ofa.Thesecondshnuldclearbit5ofa.Inbothcases,theremainingbitsshouldbeunmodified.7.Whatdoesthefollowingfunctionreturn?charfoo(void){unsignedinta=6;ihtb=-20;charc;(ab6)?(c=1):(c=0);returnc;}8.WhatvaluesareprintedwhenthefollowingCprogramisexecuted?inti=8;voidmain(void)(9.WhatwillbetheoutputofthefollowingCcode?main(){intk,num=30;k=(num5?(num=10?100:200):500);printf(%d,k);}10.WhatwillthefollowingCcodedo?int*ptr;ptr=(int*)Ox67a9;11.WhatwillbetheoutputofthefollowCcode?defineproduct(x)(x*x)main(){inti=3,j,k;j=product(i);k=product(i);printf(%d%d,j,k);}12.SimplifythefollowingBooleanexpression!((i==12)||(j15))13.Howmanyflip-flopcircuitsareneededtodivideby16?14.Provides3propertiesthatmakeanOS,aRTOS?15.Whatispre-emption?16.AssumetheBCregistervalueis8538H,andtheDEregistervalueis62A5H.FindthevalueofregisterBCafterthefollowingassemblyoperations:MOVA,CSUBEMOVC,AMOVA,BSBBDMOVB,A17.IntheAssemblycodeshownbelowLOOP:MVIC,78HDCRCJNZLOOPHLTHowmanytimesistheDCRCOperationexecuted?18.Describethemostefficientway(intermofexecutiontimeandcodesize)todivideanumberby4inassemblylanguage19.whatvalueisstoredinminthefollowingassemblylanguagecodefragmentifn=7?LDAA#nLABEL1:CMPA#5BHIL3