单选题Set X = even integers and Set Y = odd integers. Therefore X ∩ Y = ______.Aprime numbersBintegersCempty setDcomposite numbersEwhole numbers

单选题
Set X = even integers and Set Y = odd integers. Therefore X ∩ Y = ______.
A

prime numbers

B

integers

C

empty set

D

composite numbers

E

whole numbers


参考解析

解析:
When two sets have nothing in common, we refer to their intersection as the empty set. There are two appropriate ways to denote the empty set: X∩Y={ } or X∩Y=φ.

相关考题:

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

阅读下列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();}

[说明] 下面是一段java代码,运行结果如图11-8所示。程序代码如下:(1)Java.awt.Graphics;(2)Java.applet.Applet;// ////////////////////////////////////////////// Display y=sin(x)public class J_DrawSin (2) Applet{public void paint(Graphics g){double d, tx;int x, y, x0, y0;d=Math.PI/100; // Set step(Set the unit in x direction)x0=y0=0;(3)(tx=0, x=20; tx<2*Math.PI; tx+=d,x++){y=120-(int)(Math.sin(tx)*50+60);if(x>20)g.drawLine(x0, y0, x, y);x0=x;y0=y;}g.drawstring("y=sin(x)", 10, 70);} //End of method: paint} //End of class: J_HelloApplet<!-----------------------AppletExample.html-------------------><HTML><HEAD><TITLE>An applet Example ---- Hello Applet!</TITLE></HEAD><BODY><(4)CODE="J_DrawSin.class" WIDTH=300 HEIGHT=120></APPLET></BODY></HTML>把所缺代码补充完整。

设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)

【程序】SET TALK OFFCLEARPUBLIC X,YX=5Y=3DO SUB? X,YSET TALK ONRETURNPROCEDURE SUBPRIVATE XX=1X=X*2+1Y=5RETURNX的输出结果为 ______。A.5B.6C.8D.3

有以下程序:include using namespace std;class A{private: int x,y;public: void se 有以下程序: #include <iostream> using namespace std; class A { private: int x,y; public: void set (int i,int j) { x=i; y=j; } int get_y() { return y; } }; class box { private: int length,width; A label; public: void set(int 1,int w, int s,int p) { length=1; width=w; label.set(s,p); } int get_area() { return length*width; } }; int main() { box small; small.set(2,4,1,35); cout<<small.get_area()<<end1; return 0; } 运行后的输出结果是( )。A.8B.4C.35D.70

执行下列程序后,变量y的值是( )。SET TALK OFFCLEARX=2000Do CASECASE x<=1000y=x*0.1CASE x>1000y=x*0.2CASE x>1500y=x*0.3CASE x>2500y—x*0.4ENDCASE?YA.200B.400C.600D.800

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

计算两个变量的和,然后显示其结果:  DECLARE @x int = 10, @y int = 20, @z int SET  @z = @x + @y  Print @z

public void test(int x) {  int odd = x%2;  if (odd) {   System.out.println(“odd);  } else {  System.out.println(“even”);  }  }  Which statement is true?() A、Compilation fails.B、 “odd” will always be output.C、 “even” will always be output.D、 “odd” will be output for odd values of x, and “even” for even values.E、 “even” will be output for add values of x, and “odd” for even values.

给出以下程序的运行结果: 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

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.

下列语句表选项中表述错误的是()。A、RST X0lB、LD  X0lC、SET Y01D、OR  Y10

单选题If a and b are integers and the sum of ab and b is even, which of the following could be true?Ⅰ. a and b are both odd.Ⅱ. a is even and b is odd.Ⅲ. a is odd and b is even.AⅠ onlyBⅡonlyCⅢ onlyDⅠ and ⅡEⅠand Ⅲ

问答题If w+x+y=42, what is the value of wxy?  (1) x and y are consecutive odd integers  (2) w=2x

多选题If x and y are both positive even integers, which of the following expressions must be even? (Select all such expressions.)AxyB(x+1)yCx(y+1)

单选题给出以下程序的运行结果: 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  运行结果为().AY=5BY=25CY=15DY=20

单选题public void test(int x) {  int odd = x%2;  if (odd) {   System.out.println(“odd);  } else {  System.out.println(“even”);  }  }  Which statement is true?()ACompilation fails.B “odd” will always be output.C “even” will always be output.D “odd” will be output for odd values of x, and “even” for even values.E “even” will be output for add values of x, and “odd” for even values.

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

单选题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 ______.A0.5B0.6C0.7D0.8E0.9

问答题计算两个变量的和,然后显示其结果:  DECLARE @x int = 10, @y int = 20, @z int SET  @z = @x + @y  Print @z

问答题x, 2y, and 2z-1 are consecutive integers.

单选题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?AFiveBSixCSevenDEightENine

单选题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.AIBI and IICI and IIIDII and III