Five
Six
Seven
Eight
Nine
第1题:
●The 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 the value of a variable and storing into a variable.For the program segment
x=0;y=0;
cobegin
{x=1;y+=x;}
{y=2;x+=3;}
coend
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
(74) A.Ⅰ
B.Ⅰ,Ⅱ
C.Ⅰ,Ⅲ
D.Ⅱ and Ⅲ
第2题:
已有定义:int x=3,y=4,z=5,则表达式!(x+y)+z-1&&y+x/2的值是
A.6
B.0
C.2
D.1
第3题:
A、X+Y服从N(0,1)
B、X+Y不服从正态分布
C、X+Y~X2(2)
D、X+Y也服从正态分布
第4题:
用n个二进制位表示带符号纯整数时,已知[X]补、[Y]补,则当 (1) 时,等式[X]补+[X]补=[X+Y]补成立。
A.-2n≤(X+Y)≤2n-1
B.-2n-1≤(X+Y)<2n-1
C.-2n-1-1≤(X+Y)≤2n-1
D.-2n-1≤(X+Y)<2n
第5题:
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Ⅲ
第6题:
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 Ⅲ
第7题:
等式[x]补+[Y]补=[x+Y]补在满足条件(92)时成立,其中X、Y是用n个二进制位表示的带符号纯整数。
A.-2n≤(X+Y)≤2n-1
B.-2n-1≤(X+Y)<2n-1
C.-2n-1-1≤(X+Y)≤2n-1
D.-2n-1≤(X+Y)<2n
第8题:
以下选项错误的是
A.main()
{ int x,y,z;
x=0;y=x-1;
z=x+y;}
B.main()
{ int x,y,z;
x=0,y=x+1;
z=x+y;}
C.main()
{ int x;int
int y;
x=0,y=x+1;
z=x+y;}
D.main()
{ int x,y,z;
x=0;y=x+1;
z=x+y,}
第9题:
设以下变量均为int类型,则值不等于7的表达式是
A.(x=y=6,x+y,X+1)
B.(x=y=6,x+y,y+1)
C.(x=6,x+1,y=6,x+y)
D.(y=6,y+1,x+y,x+1)
第10题:
执行下列程序: SET TALK OFF STORE 0 TO X,Y DO WHILE X<6 X=X+Y Y=Y+2 ENDDO ?X,Y SET TALK ON RETURN 在屏幕上显示的输出结果是( )。
A.8 8
B.6 8
C.4 6
D.6 6