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

题目内容 (请给出正确答案)
单选题
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.5

B

0.6

C

0.7

D

0.8

E

0.9


参考答案

参考解析
解析:
Split the problem into four cases, one for each possible value of x. Then add each possible value of y (-1, 4, 5). x=-4, y=-5, 0, 1; x=-2, y=-3, 2, 3; x=1, y=0, 5, 6; x=3, y=2, 7, 8. There are 12 answers to (x + y). Eight of these are greater than 0. The probability that the sums of x and y are positive (greater than zero) is 8/12=0.66, which is closest to 0. 7.
更多 “单选题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” 相关考题
考题 SET TALK OFFSTORE O TO X,YD0 WHILE.T.X=X+1Y=Y+XIF X=5EXITENDIFENDDO?X,YRETURN当程序执行到?x,Y命令时,X,Y的值分别是【 】、【 】。

考题 给出以下程序: SET TALK OFF X=0 Y=0 DO WHILE X<100 X=X+1 IF INT(X/2)=X/2 LOOP ELSE Y=Y+X ENDIF ENDDO ?"Y=",Y RETURN 运行结果为 ______。A.Y=500B.Y=1500C.Y=2000D.Y=2500

考题 若有以下程序段:include using namespace std;int main (){ int a[]={1,4,5}; int *p 若有以下程序段: #include <iostream> using namespace std; int main () { int a[]={1,4,5}; int *p=a[0],x=6, y,z; for (y=0; y<3; y++) z= ( (* (p+y) <x) ? *(p+y) :x); cout<<z<<end1; return 0; } 程序运行后的输出结果是( )。A.1B.4C.5D.2

考题 阅读下列C++程序和程序说明,将应填入(n)处的字句写在对应栏内。【说明】Point是平面坐标系上的点类,Line是从Point派生出来的直线类。include <iostream.h>class Point{public:Point (int x, int y) ;Point (Point p) ;~Point();void set (double x, double y) ;void print();private:double X,Y;};Point::Point (int x, int y) //Point 构造函数{X=x; Y=y; }Point::Point ( (1) ) //Point 拷贝构造函数{X=p.X; Y=p.Y;}void Point::set (double x, double y){X=x; Y=y; }void Point::print(){cout<<' ('<<X<<","<<Y<<") "<<endl; }Point::~Point(){cout<<"Point 的析构函数被调用! "<<endl;class Line: public Point{public:Line (int x, int y, int k) ;Line (Line s) ;~Line();void set (double x, double y, double k)void print();private:double K;};(2)//Line 构造函数实现{ K=k;}(3)//Line 拷贝构造函数实现{K=s.K;}void Line::set (double x, double y, double k){ (4);K=k;}void Line::print(){cout<<" 直线经过点";(5);cout<<"斜率为: k="<<K<<endl;}Line: :~Line(){cout<<"Line 析构函数被调用! "<<endl;}void main(){Line 11 (1,1,2) ;11 .print();Linel2 (11) ;12.set (3,2,1) ;12.print();}

考题 设X="abcd",Y="ab",在SET EXACT ON的状态下,下列表达式值为假的是A..NOT.(X==Y)。OR.(Y$"XYZ")B..NOT.(X$"XYZ").AND.(X Y)C..NOT.(X Y)D..NOT.(X>=Y)

考题 若有以下程序段;includeusing namespace std;int main(){ int a[]={1,4,5}; int *p=a[0],x=6,y,z; for(y=0;y<3;y++) z=((*(p+y)<x) ? *(p+y):x); cout<<z<<end1; return 0; } 程序运行后的输出结果是( )。A.1B.4C.5D.2

考题 执行下列程序: 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

考题 【程序】SET TALK OFFSTORE 0 TO X,YDO WHILE X<20X=X+YY=Y+2 IF Y=4 EXIT ENDIFENDDO? X,YSET TALK ONRETURNX的输出结果为 ______。A.20B.21C.22D.10

考题 要从教师表中查询与教师“陈静”职称相同的教师名,应使用的SQL语句是 ______。A. SELECT姓名FROM教师表WHERE职称=“陈静”B.SELECT X.姓名FROM教师表AS X,教师表AS Y; WHERE X.职称=Y.职称WHERE Y.姓名=“陈静”C. SELECT姓名FROM教师表WHERE职称=(SELECT职称FROM教师表; AND姓名=“陈静”)D.SELECT姓名FROM教师表WHERE职称=(SELECT职称FROM教师表; WHERE姓名=“陈静”)

考题 The sense relation of the following pair of sentences (see X and Y) is__________. X?Mary has been to Japan. Y. Mary has been to Asia.A.X entails Y B.X presupposes Y C.X is inconsistent with Y D.X is synonymous with Y

考题 曲线y=x3+2x在点(1,3)处的法线方程是()A.5x+y-8=0 B.5x-y-2=0 C.x+5y-16=0 D.x-5y+14=0

考题 曲线y=3x+1在点(1,3)处的切线方程为( )。 A、y=2x+1 B、r=4x-1 C、y=4x+2 D、y=3x

考题 过点(2,-3,1)且平行于向量a=(2,-1,3)和b=(-1,1,-2)的平面方程是( ).A.-x+y+z-4=0 B.x-y-z-4=0 C.x+y+z=0 D.x+y-z+2=0

考题 如果输入的数据是2,3,4,则下面程序的输出应为() PROGRAM SAM(INPUT,OUTPUT); VAR i,x,y:integer; BEGIN FOR i:=1 TO 3 DO BEGIN Read(x); y:=sqr(x)END; Writeln(‘x=’,x,‘y=’,y)END.A、x=2 y=4 x=3 y=9 x=4 y=16B、x=4 y=16 x=4 y=16 x=4 y=16C、x=4 y=16D、x=2 y=4 x=2 y=4 x=2 y=4

考题 给出以下程序的运行结果: SET TALK OFF X=0 Y=0  DO WHILE X10  X=X+1 IF INT(X/2)=X/2   LOOP ELSE  Y=Y+X  ENDIF  ENDDO  ?″Y=″,Y  RETURN  运行结果为().A、Y=5B、Y=25C、Y=15D、Y=20

考题 对于随机变量X,Y满足D(X)=0.3,D(Y)=0.2,cov(X,Y)=0.1,则D(X+Y)=()A、0.5B、0.6C、0.7D、1

考题 Javascript中,以下代码运行后变量y的值是:() var x = [typeof x, typeof y][1]; var y = typeof typeof x;A、"number"B、"string"C、"undefined"D、"object"

考题 public class SyncTest {  private int x;  private int y;  public synchronized void setX (int i) (x=1;)  public synchronized void setY (int i) (y=1;)  public synchronized void setXY(int 1)(set X(i); setY(i);)  public synchronized Boolean check() (return x !=y;)  }  Under which conditions will check () return true when called from a different class?A、 Check() can never return true.B、 Check() can return true when setXY is called by multiple threads.C、 Check() can return true when multiple threads call setX and setY separately.D、 Check() can only return true if SyncTest is changed to allow x and y to be set separately.

考题 单选题While logged into the console, a system administrator would like to change the server’s primary IP address from X.X.X.X to Y.Y.Y.Y. What would be the best way to perform this task?()A Use smit chinetB Use smit mktcpipC Issue ifconfig -a Y.Y.Y.YD Edit the /etc/hosts file with the new IP information

考题 单选题Set X = even integers and Set Y = odd integers. Therefore X ∩ Y = ______.A prime numbersB integersC empty setD composite numbersE whole numbers

考题 单选题给出以下程序的运行结果: SET TALK OFF X=0 Y=0  DO WHILE X10  X=X+1 IF INT(X/2)=X/2   LOOP ELSE  Y=Y+X  ENDIF  ENDDO  ?″Y=″,Y  RETURN  运行结果为().A Y=5B Y=25C Y=15D Y=20

考题 单选题如果输入的数据是2,3,4,则下面程序的输出应为() PROGRAM SAM(INPUT,OUTPUT); VAR i,x,y:integer; BEGIN FOR i:=1 TO 3 DO BEGIN Read(x); y:=sqr(x)END; Writeln(‘x=’,x,‘y=’,y)END.A x=2 y=4 x=3 y=9 x=4 y=16B x=4 y=16 x=4 y=16 x=4 y=16C x=4 y=16D x=2 y=4 x=2 y=4 x=2 y=4

考题 单选题If x and y are positive numbers greater than 1, and wx/y+w =1 then w= ______.A (x-1)/(y-1)B y/(x-1)C (x+1)/yD (x-y)/(x+y)E y/(x+1)

考题 单选题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

考题 单选题已知函数的全微分df(x,y)=(3x2+4xy-y2+1)dx+(2x2-2xy+3y2-1)dy,则f(x,y)等于(  )。A x3+2x2y-xy2+y3+x-y+CB x3-2x2y+xy2-y3+x-y+CC x3+2x2y-xy2+y3-x+y+CD x3+2xy2-xy2+y3+x-y+C

考题 单选题public class SyncTest {  private int x;   private int y;   public synchronized void setX (int i) (x=1;)   public synchronized void setY (int i) (y=1;)   public synchronized void setXY(int 1)(set X(i); setY(i);)   public synchronized Boolean check() (return x !=y;)   }   Under which conditions will check () return true when called from a different class?A  Check() can never return true.B  Check() can return true when setXY is called by multiple threads.C  Check() can return true when multiple threads call setX and setY separately.D  Check() can only return true if SyncTest is changed to allow x and y to be set separately.

考题 单选题x, y, and z are positive integers. Which of the following lists all the possible ways for x + y + z to be an odd number?I. One of the numbers is odd.II. Two of the numbers are odd.III. Three of the numbers are odd.A IB I and IIC I and IIID II and III