1/27
1/9
4/27
2/9
4/9
第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题:
阅读下列程序段:
x = 0
For i = 1 To 4
For j = 1 To i
x = x + 1
Next j, i
执行以上循环后,x 的值为( )。
A、 6
B、 9
C、 10
D、 16
第3题:
有以下程序
void change(int k[ ]){ k[0]=k[5];}
main()
{ int x[10]={1,2,3,4,5,6,7,8,9,10},n=0;
while( n<=4 ) { change( &x[n]) ; n++; }
for(n=0;n<5;n++) printf("%d ",x[n]);
printf("\n");
}
程序运行后输出的结果是
A)6 7 8 9 10
B)1 3 5 7 9
C)1 2 3 4 5
D)6 2 3 4 5
第4题:
用函数的图象求下列方程的解:
(1)x²-3x+2=0 ;(2)-x²-6x-9=0 ;(3)x²+x+2=0 ; (4)1-x-2x²=0 。
第5题:
有以下程序
#include <stdio.h>
void exch(int t[ ])
{ t[0]=t[5]; }
main( )
{ int x[10]={1,2,3,4,5,6,7,8,9,10),i=0;
while(i<=4){ exch(&x[i]); i++; }
for( i=0; 1<5;i++) printf(”%d",x[i]);.
printf( "\n");
}
程序运行后输出的结果是
A) 2 4 6 8 10
B) 1 3 5 7 9
C) 1 2 3 4 5
D) 6 7 8 9 10
第6题:
●由6个字符的7位ASCⅡ编码排列,再加上水平垂直奇偶校验位构成下列矩阵(最后一列为水平奇偶校验位,最后一行为垂直奇偶校验位)。
字符:
3 0 X1 X2 0 0 1 1 0
I 1 0 0 1 0 0 X3 1
+ X4 1 0 1 0 1 1 0
7 0 1 X5 X6 1 1 1 1
D 1 0 0 X7 1 0 X8 0
= 0 X9 1 1 1 X10 1 1
0 0 1 1 1 X11 1 X12
则X1X2X3X4处的比特分别为 (4) ;X5X6X7X8处的比特分别为 (5) ;X9X10X11X12处的比特分别为 (6) 。
(4) A.1010
B.1100
C.1110
D.1111
(5) A.1000
B.1010
C.1100
D.1110
(6) A.1000
B.1001
C.1010
D.1011
第7题:
写出下列线性规划问题的对偶问题:(1)MinZ=2x1+8x2−4x3(1{x1+3x2−3x3≥30−x1+5x2+4x3=804x1+2x2−4x3≤50x1≤0,x2≥0,x3无限制
(2)MinZ=2x1+8x2−4x3(2){x1+3x2−3x3≥30−x1+5x2+4x3=804x1+2x2−4x3≤50x1≤0,x2≥0,x3无限制
第8题:
Acase k of 1,2:x:=4; 3,4,5:x:=3; 8,9,10:x:=1; 6,7:x:=0 end
Bcase k of 1:x:=4; 2,3,4,5:x:=3; 8,9,10:x:=1; 6,7:x:=0 end
Ccase k of 1,2:x:=4; 3,4,5:x:=3; 9,10:x:=1; 6,7,8:x:=0 end
Dcase k of 1,2,3:x:=4; 4,5:x:=3; 8,9,10:x:=1; 6,7:x:=0 end
第9题:
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Ⅲ
第10题:
A.When view V1 is created
B.Each time the REFRESH VIEW v1 statement is executed
C.Each time an SQL statement is executed against view V1
D.Only the first time an SQL statement is executed against view V1