德尔福笔试软件类docWord文档下载推荐.docx

上传人:b****5 文档编号:19949706 上传时间:2023-01-12 格式:DOCX 页数:25 大小:17.04KB
下载 相关 举报
德尔福笔试软件类docWord文档下载推荐.docx_第1页
第1页 / 共25页
德尔福笔试软件类docWord文档下载推荐.docx_第2页
第2页 / 共25页
德尔福笔试软件类docWord文档下载推荐.docx_第3页
第3页 / 共25页
德尔福笔试软件类docWord文档下载推荐.docx_第4页
第4页 / 共25页
德尔福笔试软件类docWord文档下载推荐.docx_第5页
第5页 / 共25页
点击查看更多>>
下载资源
资源描述

德尔福笔试软件类docWord文档下载推荐.docx

《德尔福笔试软件类docWord文档下载推荐.docx》由会员分享,可在线阅读,更多相关《德尔福笔试软件类docWord文档下载推荐.docx(25页珍藏版)》请在冰豆网上搜索。

德尔福笔试软件类docWord文档下载推荐.docx

3.Whatarethevaluesofa,b,andcafterthefollowinginstructions:

inta=5,b=7,c;

c=a+++b;

4,Whatdothefollowingdeclarationsmean?

a)constinta;

b)intconsta;

c)constint*a;

d)int*consta;

e)intconst*aconst;

5.Whichofthefollowingstatementsdescribetheuseofthekeyword static?

a)Withinthebodyofafunction:

Astaticvariablemaintainsitsvalue betweenfunctionrevocations

b)Withinamodule:

Astaticvariableisaccessiblebyallfunctions withinthatmodule

c)Withinamodule:

Astaticfunctioncanonlybecalledbyother functionswithinthatmodule

6.Embeddedsystemsalwaysrequiretheusertomanipulatebitsin registersorvariables.Givenanintegervariablea,writetwocodefragments.

Thefirstshouldsetbit5ofa.Thesecondshnuldclearbit5ofa.Inboth cases,the remainingbitsshouldbeunmodified.

7.Whatdoesthefollowingfunctionreturn?

charfoo(void)

{

unsignedinta=6;

ihtb=-20;

charc;

(a+b>

6)?

(c=1):

(c=0);

returnc;

}

8.WhatvaluesareprintedwhenthefollowingCprogramisexecuted?

inti=8;

voidmain(void)

9.WhatwillbetheoutputofthefollowingCcode?

main()

intk,num=30;

k=(num>

5?

(num<

=10?

100:

200):

500);

printf("

%d"

k);

10.WhatwillthefollowingCcodedo?

int*ptr;

ptr=(int*)Ox67a9;

ptr=Oxaa55;

11.WhatwillbetheoutputofthefollowCcode?

defineproduct(x)(x*x)main()

inti=3,j,k;

j=product(i++);

k=product(++i);

%d%d"

j,k);

.SimplifythefollowingBooleanexpression!

((i==)||(j>

15))

13.Howmanyflip-flopcircuitsareneededtodivideby16?

14.Provides3propertiesthatmakeanOS,aRTOS?

15.Whatispre-emption?

16.AssumetheBCregistervalueis8538H,andtheDEregister valueis62A5H.FindthevalueofregisterBCafterthefollowing assemblyoperations:

MOVA,C

SUBE

MOVC,A

MOVA,B

SBBD

MOVB,A

17.IntheAssemblycodeshownbelow

LOOP:

MVIC,78H

DCRC

JNZLOOP

HLT

HowmanytimesistheDCRCOperationexecuted?

18.Describethemostefficientway(intermofexecutiontime andcodesize)todivideanumberby4inassemblylanguage

2020-01-04

b)Withinamodule:

18.Describethemostefficientway(intermofexecutiontime andcodesize)todivideanumberby4inassem

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 表格模板 > 表格类模板

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1