单选题If x= a/3+b/32+c/33, when a, b, and c are each equal to 0 or 1, then x could be each of the following EXCEPT ______.A 1/27B 1/9C 4/27D 2/9E 4/9

题目
单选题
If x= a/3+b/32+c/33, when a, b, and c are each equal to 0 or 1, then x could be each of the following EXCEPT ______.
A

1/27

B

1/9

C

4/27

D

2/9

E

4/9

参考答案和解析
正确答案: C
解析: 将a,b,c,分别赋值0,1代入计算可知,本题选D项。
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

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


正确答案:D
【解析】译文:结构
Cobegin
Statement1;
Statement2;
Coend
的含义是语句1和语句2并行执行。结构中的两个原子操作是加载一个变量的值和存储一个变量的值。
【程序段】
x=0;y=0;
cobegin
{x=1;y+=x;}
{y=2;x+=3;}
coend
执行后,变量的值可能是哪个?
先执行第二句再执行第一句,结果是II,否则结果是III。

第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


正确答案:C

第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


正确答案:A
答案 A
解析 : 子函数 void change(int k[]) {k[0]=k[5]}; 表示用一维数组中的第 6 个元素替换第 1 个元素 。 因此主函数的 4 次循环 , 都是用数组中 , 当前指针所指元素后的第 6 个元素替换该元素 ,因此本题的答案为 A 。此时数组中的元素是 “ 6,7,8,9,10 , 6,7,8,9,10 ” 。

第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


正确答案:D
【答案】D
【知识点】数组作为参数进行的函数调用
【解析】第一次调用将x[0]的地址作为了形参数组t的首址,使得x[0]的值变成了6。第二次调用将x[1]的地址作为了形参数组t的首址,使得x[1]的值变成了7。第三次调用将x[2]的地址作为了形参数组t的首址,使得x[2]的值变成了8。第四次调用将x[3]的地址作为了形参数组t的首址,使得x[3]的值变成了9。第五次调用将x[4]的地址作为了形参数组t的首址,使得x[4]的值变成了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


正确答案:C,A,D
【解析】在水平垂直奇/偶校验(方阵校验)中,最后一列为水平奇偶校验位,最后一行为垂直奇偶校验位。对于字符"+",其水平奇偶校验位为0,而垂直奇偶校验位为0,所以X4=0。由此也可以得出方阵校验中,水平奇偶校验和垂直奇偶校验均采用偶校验。根据这个结论,可以判断X3=1,所以X8=0,X7=0,X6=0,X5=1,X2=1,X1=1,X9=1,X10=0,X11=1,X12=1。此题的关键在于判断校验的奇偶性。

第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无限制


参考答案:(1)MaxW=2x1+8x2−4x3(1{x1+3x2−3x330−x1+5x2+4x3=804x1+2x2−4x3≤50x1≤0,x20,x3无限制(2)MaxW=30y1+80y2+50y3(2){y1−y2+4y323y1+5y2+2y3≤8−y1+4y2−4y3=−4y10,y2无限制,y3≤0

第8题:

设k为整型变量,且有以下程序段: if(k0) then if k>5 then if k2 then x:=3 else x:=4 用case语句改写上述程序,执行效果一样的是( )。

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


正确答案:B

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


正确答案:D
解析:译文:结构CobeginStatement1;Statement2;Coend的含义是语句1和语句2并行执行。结构中的两个原子操作是加载一个变量的值和存储一个变量的值。【程序段】x=0;y=0;cobegin{x=1;y+=x;}{y=2;x+=3;}coend执行后,变量的值可能是哪个?先执行第二句再执行第一句,结果是Ⅱ,否则结果是Ⅲ。

第10题:

A view is created with the following statement:CREATE VIEW v1 AS SELECT col1, col2, col3 FROM t1 WHERE col4 > 1000 ; When will DB2 access the data from table T1 for view V1?()

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


参考答案:C

更多相关问题