第1题:
{0、2、1、4、3、9、5、8、6、7}是以数组形式存储的最小堆,删除堆顶元素0后的结果是()
A.{2、1、4、3、9、5、8、6、7}
B.{1、2、5、4、3、9、8、6、7}
C.{2、3、1、4、7、9、5、8、6}
D.{1、2、5、4、3、9、7、8、6}
第2题:
下面程序段是计算()公式的。s=0:t=1Fori=1To10t=t*is=s+tNexti
A.s=1+2+3+4+5+6+7+8+9+10
B.s=1*2*3*4*5*6*7*8*9*10
C.s=1!+2!+3!+4!+5!+6!+7!+8!+9!+10!
D.s=1+2*3+3*4+4*5+5*6+6*7+7*8+8*9+9*10
第3题:
计算。
7/8-5/6= 2/9+1/2= 6/7-2/3= 3/10+1/4=
3/7+1/9= 1/3-1/5= 1/6+1/4= 5/7-1/5=
7/8-5/6=1/24 2/9+1/2=13/18 6/7-2/3=4/21 3/10+1/4=11/20
3/7+1/9=34/63 1/3-1/5=2/15 1/6+1/4=5/12 5/7-1/5=18/35
第4题:
有以下程序:程序运行后的输出结果是( )。
A.1,2,3,4,5,6,7,8,9,10,
B.1,2,7,6,3,4,5,8,9,10,
C.1,2,7,6,5,4,3,8,9,10,
D.1,2,9,8,7,6,5,4,3,l0,
第5题:
有以下程序:程序运行后的输出结果是( )。
A.1,2,3,4,5,6,7,8,9,10,
B.10,9,8,7,6,5,4,3,2,1,
C.2,3,1,6,8,7,5,4,10,9,
D.10,9,8,7,6,1,2,3,4,5,
第6题:
Let R and S be the relation respectively: Relation R: A B C Relation S: B C D 1 2 3 2 3 4 6 7 8 2 3 5 The number of tuplesthat the result of the expression R ∞ S (Here is the natural join of relations R and S) is
A.3
B.4
C.6
D.9
第7题:
Let R and S be the relation respectively: Relation R:A B C Relation S:B C D 1 2 3 2 3 4 6 7 8 2 3 5 9 7 8 7 8 1 The number of tuples that the result of the expression R ∞ S( Here is the natural join of relations R and S)is(69).
A.1
B.4
C.7
D.10
第8题:
计算。
3/7+4/5= 5/12+5/8= 7/9+6/7= 1-2/7-3/7= 1/4+1/6+3/4= 1/2-1/6=
3/7+4/5=43/35 5/12+5/8=25/24 7/9+6/7=103/63
1-2/7-3/7=2/7 1/4+1/6+3/4=7/6 1/2-1/6=1/3
第9题:
当执行下面的语句定义一维数组a后,此数组的所有元素为 ( ) inta[10];
A.a[1],a[2],a[3],a[4],a[5],a[6],a[8],a[9],a[10],a[10]
B.a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9]
C.a[0],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],a[10]
D.a[1],a[2],a [3],a[4],a [5],a [9],a [7],a [8],a [9],a [10],a [11]
第10题:
A.1、2、3、7、9
B.2、3、4、5、8、9
C.1、3、4、5、6、7、8、9
D.1、2、3、4、5、6、9
E.3、4、5、6、7、8、9