首页 > 计算机 > 计算机四级 正文

6The construct cobegin Statement1; Statement2; coend means Statement1 and Statement2 are t

时间:2021-05-04 13:34:39 解答: 84 次

6The construct cobegin Statement1; Statement2; coend means Statement1 and Statement2 are to be executed in parallel. The only two atomic actions in this construct are loading thevalue of a variable and storing into a variablE.For the program segment x:=0; y:=O; cobegin begin x:=l; y:=y+x; end; begin y:=2; x:=x+3; end coend Which of the following indicate(s) possible values for the variables when the segment finishes execution? Ⅰ.x=1,y=2 Ⅱ.x=1,y=3 Ⅲ.x=4,y=6

A.Ⅰ

B.Ⅰ and Ⅱ

C.Ⅰ and Ⅲ

D.Ⅱand Ⅲ

正确答案:

D

请充值VIP继续使用(未注册用户支付后会自动注册登录)

×

95元 29元

VIP截止日期:2025-01-01 23:50:39

←请使用支付宝扫码支付

95元 29元

VIP截止日期:2025-01-01 23:50:39

←请使用微信扫码支付