网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
单选题
X= {1, 2, 4} Y= {1, 3, 4}12 If, in the sets above, x is any number in set X and y is any number in set Y, how many different values of x+y are possible?
A

Five

B

Six

C

Seven

D

Eight

E

Nine


参考答案

参考解析
解析:
Given X = {1, 2, 4} and Y= {1, 3, 4}, make a list of all the possible sums x+y: 1+1=2; 2+1=3; 4+1=5; 1+3=4; 2+3=5; 4+3=7; 1+4=5; 2+4=6; 4+4=8 Hence, seven different values of x+y are possible: 2,3,4,5,6,7, and 8.
更多 “单选题X= {1, 2, 4} Y= {1, 3, 4}12 If, in the sets above, x is any number in set X and y is any number in set Y, how many different values of x+y are possible?A FiveB SixC SevenD EightE Nine” 相关考题
考题 设X~N(0,1),Y~N(0,1),且X与Y相互独立,则X+Y服从的分布为() A、X+Y服从N(0,1)B、X+Y不服从正态分布C、X+Y~X2(2)D、X+Y也服从正态分布

考题 以下选项错误的是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;intint y;x=0,y=x+1;z=x+y;}D.main(){ int x,y,z;x=0;y=x+1;z=x+y,}

考题 ●The constructcobeginStatement1;Statement2;coendmeans 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 segmentx=0;y=0;cobegin{x=1;y+=x;}{y=2;x+=3;}coendWhich 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 Ⅲ

考题 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=6A.ⅠB.Ⅰ and ⅡC.Ⅰ and ⅢD.Ⅱand Ⅲ

考题 已有定义:int x=3,y=4,z=5,则表达式!(x+y)+z-1y+x/2的值是A.6B.0C.2D.1

考题 等式[x]补+[Y]补=[x+Y]补在满足条件(92)时成立,其中X、Y是用n个二进制位表示的带符号纯整数。A.-2n≤(X+Y)≤2n-1B.-2n-1≤(X+Y)<2n-1C.-2n-1-1≤(X+Y)≤2n-1D.-2n-1≤(X+Y)<2n

考题 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=6A.ⅠB.Ⅰ,ⅡC.Ⅰ, ⅢD.ⅡandⅢ

考题 设以下变量均为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)

考题 用n个二进制位表示带符号纯整数时,已知[X]补、[Y]补,则当 (1) 时,等式[X]补+[X]补=[X+Y]补成立。A.-2n≤(X+Y)≤2n-1B.-2n-1≤(X+Y)<2n-1C.-2n-1-1≤(X+Y)≤2n-1D.-2n-1≤(X+Y)<2n

考题 执行下列程序: 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 8B.6 8C.4 6D.6 6

考题 窗体上有两个文本框Text1、Text2以及一个命令按钮Comanand1,编写下列程序: Dim y As Integer Private Sub Command1_Click() Dim x As Integer x=2 Text1.Text = p2(p1(x), y) Text2.Text = p1(x) End Sub Private Function p1(x As Integer) As Integer x=x+y:y=x+y p1=x+y End Function Private Function p2(x As Integer, y As Integer) As Integer p2=2*x+y End Function 当单击1次和单击2次命令按钮后,文本框Text1和Text2内的值分别为( )。A.2 4 2 4B.2 4 4 8C.4 4 8 8D.10 10 58 58

考题 窗体上有Text1、Text2两个文本框及一个命令按钮Command1,编写下列程序 Dim y As Integer Private Sub Command1_Click() Dim x As Integer X=2 Text1.Text=Fun2(Fun1(x),y) Text2.Text=Fun1(x) End Sub Private Function Fun1(x As Integer)As Integer x=x+y:y=x+y Fun1=x+y End Function Private Function Fun2(x As Integer,y As Integer)As Integer Fun2=2*x+y End Function 当单击1次和单击2次命令按钮后,文本框Textl和Text2内的值分别是A.2 4 2 4B.2 4 4 8C.10 10 58 58D.4 4 8 8

考题 已知-1 已知-1<x+y<4且2<x-y<3,则z=2x-3y的取值范围是 .(答案用区间表示)

考题 设定两药X和Y的作用强度均为1,则 A.1(X)+1(Y)>1.5(X+Y) B.1(X)+1(Y)>2(X+Y) C.1(X)+1(Y)D.1(X)+1(Y)E.1(X)+1(Y)≈2(X+Y)拮抗

考题 仔细阅读下面程序,请给出运行结果( )。#include#includeint f1(int x){return x*x;}int f2(int x){return x*x*x;}main( ){int x=3,y1,y2,y3,y4;int(*f)( );f=f1;y1=(*f)(x);y2=f1(x);f=f2;y3=f(x);y4=f2(x);printf(“y1=%d,y2=%d,y3=%d,y4=%d\n”,y1,y2,y3,y4);}A.y1=9,y2=9,y3=27,y4=27 B.y1=3,y2=9,y3=27,y4=9 C.y1=3,y2=3,y3=9,y4=9 D.y1=3,y2=9,y3=9,y4=27

考题 下列( )项是在D={(x,y)|x2+y2≤1,x≥0,y≥0)上的连续函数f(x,y),且f(x,y)=3(x+y)+16xy。 A.f(x,y)=3(x+y)+32xy B.f(x,y)=3(x+y)-32xy C.f(x,y)=3(x+y)-16xy D.f(x,y)=3(x+y)+16xy

考题 过点(-1,0,1)且与平面x+y+4z+19=0平行的平面方程为( )。 A. x+y + 4z-3 = 0 B. 2x + y+z-3 = 0 C. x+2y+z-19=0 D. x+2y+4z-9=0

考题 若有int x=3,y=4,z=5; ,则表达式 !(x+y)+z-1  y+z/2的值是()

考题 1. public class X implements Runnable(  2. private int x;  3. private int y;  4.    5. public static void main(String[]args)  6. X that = new X();  7. (new Thread(that)).start();  8. (new Thread(that)).start();  9. )  10.    11. public void run()  (  12. for (;;)  (  13. x++; 14. y++;  15. System.out.printIn(“x=” + x + “, y = ” + y);  16.     ) 17. ) What is the result?()A、 Errors at lines 7 and 8 cause compilation to fail.B、 The program prints pairs of values for x and y that might not always be the same on the same line (for example, “x=2, y=1”).C、 The program prints pairs of values for x and y that are always the same on the same line (for example, “x=1, y=1”. In addition, each value appears twice (for example, “x=1, y=1” followed by “x=1, y=1”).D、 The program prints pairs of values for x and y that are always the same on the same line (for example, “x=1, y=1”. In addition, each value appears only for once (for example, “x=1, y=1” followed by “x=2, y=2”).

考题 变量x的值为3,y的值为4,执行下列哪个语句后,可输出表达式:3+4=7()。A、Print"x+y=";x+yB、Printx;"+";y;"=";x+yC、Printx;"+";"y";"=x+y"D、Printx;"+";"y=";x+y

考题 设两个随机变量X与Y相互独立且同分布,P{X=-1}=P{Y=-1}=1/2,P{X=1}=P{Y=1}=1/2,则下列各式成立的是()A、P{X=Y}=1/2B、P{X=Y}=1C、P{X+Y=0}=1/4D、P{XY=1}=1/4

考题 单选题If x-y = 3 and x+y = 5, what is the value of y?A -4B -2C -1D 1E 2

考题 单选题设两个相互独立的随机变盘X和Y分别服从于N(0,1)和N(1,12),则(  ).A P{X+Y≤0}=1/2B P{X+Y≤1}=1/2C P{X-Y≤0}=1/2D P{X-Y≤1}=1/2

考题 单选题Which of the following choices could be equal to set Z ifX = {2, 5, 6, 7, 9} and Y = {2, 5, 7}X ∪ Y ∪ Z = {1, 2, 3, 4, 5, 6, 7, 8, 9}X ∩ Z = {2, 6}Y ∩ Z = {2}A Z= {1, 4, 8}B Z= {1, 3, 8}C Z= {1, 3, 4, 8}D Z= {1, 2, 3, 4, 6, 8}E Z= {1, 2, 3, 5, 6, 8}

考题 单选题设两个随机变量X与Y独立同分布,P{X=-1}=P{Y=-1}=1/2,P{X=1}=P{Y=1}=1/2,则下列式子中成立的是(  )。A P{X=Y}=1/2B P{X=Y}=1C P{X+Y=0}=1/4D P{XY=1}=1/4

考题 单选题X = {-4,-2, 1,3}, Y= {-1,4,5}. If x is a number from set X, and y is a number from set Y. The probability that x + y is positive is closest to ______.A 0.5B 0.6C 0.7D 0.8E 0.9

考题 单选题设函数y=y(x)由方程y=f(x2+y2)+f(x+y)所确定,且y(0)=2,其中f是可导函数,f′(2)=1/2,f′(4)=1,则dy/dx|x=0=(  )。A -1/2B -1/4C -1/7D -1/9