系列之四:D类

问答题4 9 6 2 3 4 7 8 2 1 9 6 4 3 2  Multiply by 7 the number of odd numbers which are immediately followed by an even number in the list above. What is the answer?

题目
问答题
4 9 6 2 3 4 7 8 2 1 9 6 4 3 2  Multiply by 7 the number of odd numbers which are immediately followed by an even number in the list above. What is the answer?
如果没有搜索结果,请直接 联系老师 获取答案。
如果没有搜索结果,请直接 联系老师 获取答案。
相似问题和答案

第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}


正确答案:D

第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


正确答案:C

第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,


正确答案:C
本题重点考查的是函数的调用。程序中sort函数的作用是将指定的数由大到小排序。被调函数”sort(aa+2,5);”中的实参aa+2是指aa[2]的地址,将其传给了形参a[],使得形参中a[0]的值为主函数中aa[2]的值,即3;实参中的5传给形参中的n,在sort函数中起着限制循环次数的作用,即使得参加排序的只有5个数,从aa[2]到aa[6],所以本题输出的结果是1,2,7,6,5,4,3,8,9,10,。

第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,


正确答案:A
本题考查的是结构体成员的引用。在主函数main中定义了一个整型变量i和一个结构体变量s。f函数中,定义了一个结构体类型的指针P,外层循环变量i表示数组的第i个元素,内层循环变量j表示数组的第i+1个元素,调用f函数,通过指针变量P来引用结构体成员。执行if语句,当P一>a[i]>P一>a[j]时进行互换,其作用就是从小到大行排序,最后将排序后的元素输出:l,2,3,4,5,6,7,8,9,10,。

第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


正确答案:B

第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


正确答案:B
解析:译文:关系R和S分别是R:ABC,关系S:BCD。表达式R∞S(这里是R、S的自然连接)的结果的元组个数为4。

第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]


正确答案:B

第10题:

IT服务工程师需填写的文档有以下那些类别?(1)故障解决(2)在线支持(3)健康检查(4)补丁安装(5)值守服务(6)安装配置服务(7)软件支持服务(8)系统状况评估(9)性能优化( )

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


正确答案:C

更多相关问题