首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
Which of the following indicate(s)possible values for the variables when the segment finishes execution?(74). Ⅰ. x=1,y=2
Which of the following indicate(s)possible values for the variables when the segment finishes execution?(74). Ⅰ. x=1,y=2
admin
2009-02-15
30
问题
Which of the following indicate(s)possible values for the variables when the segment finishes execution?(74).
Ⅰ. x=1,y=2
Ⅱ. x=1,y=3
Ⅲ. x=4, y=6
选项
A、Ⅰ
B、Ⅰ,Ⅱ
C、Ⅰ, Ⅲ
D、ⅡandⅢ
答案
D
解析
译文:结构
Cobegin
Statement1;
Statement2;
Coend
的含义是语句1和语句2并行执行。结构中的两个原子操作是加载一个变量的值和存储一个变量的值。
【程序段】
x=0;y=0;
cobegin
{x=1;y+=x;}
{y=2;x+=3;}
coend
执行后,变量的值可能是哪个?
先执行第二句再执行第一句,结果是Ⅱ,否则结果是Ⅲ。
转载请注明原文地址:https://jikaoti.com/ti/WGW7FFFM
本试题收录于:
程序员上午基础知识考试题库软考初级分类
0
程序员上午基础知识考试
软考初级
相关试题推荐
认真阅读下列有关Linux操作系统环境下配置一台DHCP服务器的说明信息,回答问题1、问题2、问题3、问题4和问题5。[说明]一台装有Linux操作系统的电脑,要在此电脑上配置一台DHCP服务器,主机名为CIUDHCP,IP地址为192.
IIS6.0安装的硬盘分区最好选用NTFS格式,是因为(1)和(2)。(1)、(2)备选答案:A.可以防止网页中的Applet程序访问硬盘中的文件B.可以针对某个文件或文件夹给不同的用户分配不同的权限C.可以使用系统自带的文件加
阅读以下说明,回答问题1至问题4,将解答填入对应的解答栏内。[说明]某单位网络拓扑结构如图3-1所示。内部服务器和客户机使用私网地址,由路由器实现NAT转换。该单位在互联网上注册了域名test.com,在完成了网络和服务器的部署后,测试服务器与客
请为图2-27拓扑结构中,(1)~(5)空缺处选择对应的设备名称。备选设备为:CMTS、以太网交换机、光收发器、光电转换节点、CableModem。在如图2-27所示的拓扑结构图中,按照理想情况下30%的速率标准,用户小郭从CATV前端中心视
阅读以下技术说明,根据要求回答问题。[说明]某公司内部有13台PC采用路由器(带防火墙功能)宽带接入Internet,公司内部使用的IP地址块为10.5.1.0/24,其网络拓扑结构如图2-17所示。在PC1的DOS命令窗口
综合布线系统由6个子系统组成,将图2-34中(1)~(6)处空缺子系统的名称填写在答题纸对应的解答栏内。为满足公司要求,通常选用什么类型的信息插座?
A computer virus is a computer program that is created to make and spread(71)of itself.
The World Wide Web is the latest evolution of an effort to make information on computers(66)the world available to as many users
TheAssemblyLanguageisoftenusedtodistinguish(73)machine-readableinformationfromtextualhuman-readableinformation.
阅读以下函数说明和C代码,将C程序中(1)~(5)空缺处的内容补充完整。【说明】对给定的字符集合及相应的权值,采用哈夫曼算法构造最优二叉树,并用结构数组存储最优二叉树。例如,给定字符集合{a,b,c,d}及其权值2、7、4、5,可构造如图
随机试题
以下__________不是Access2010中字段的数据类型。
患者,女,30岁。无明显诱因出现劳力性呼吸困难2年,以后反复发生胸闷、气短,有过夜间阵发性呼吸困难。查体:心界向双侧扩大,律不齐,偶有期前收缩,心音低钝,可闻及舒张期奔马律,心尖部可闻及收缩期吹风样杂音,2/6级,柔和,不传导。该患者超声心动图表现错误的是
系统性红斑狼疮患者面部特征性的皮肤损害特点是
公路工程机械台班单价中的不变费用包括( )。
根据合同法律制度的规定,下列选项中,属于《合同法》调整范畴的有()。
下列关于商业银行资本的说法中,不正确的是()
人们常说拉动经济增长的“三驾马车”是指()、消费、出口。
已知下列汇率:问:瑞士法郎兑英镑的1个月远期汇率是多少?
设有如下的程序段:n=0Fori=1To3 Forj=1Toi Fork=jTo3n=n+1 Nextk NextjNexti执行上面的程序段后,n的值为( )。
CulturalDifferencesPeoplefromdifferentculturessometimesdothingsthatmakeeachotheruncomfortable,sometimeswithou
最新回复
(
0
)