已知集合P={x|0 ≤x ≤5,x∈Z},Q={y|y=|x2-1|,x∈P},则P∩Q中元素的个数是( ).(A)3.(B)6.(C)8.(D)9.

已知集合P={x|0 ≤x ≤5,x∈Z},Q={y|y=|x2-1|,x∈P},则P∩Q中元素的个数是( ).

(A)3.

(B)6.

(C)8.

(D)9.


相关考题:

设有关键码序为(Q,G,M,Z,A,N,B,P,X,H,Y,S,T,L,K,E),采用二路归并排序法进行排序,下面哪一个序列是第二趟归并后的结果?A.G,Q,M,Z,A,N,B,P,H,X,S,Y,L,T,E,KB.G,M,Q,Z,A,B,N,P,H,S,X,Y,E,K,L,TC.G,M,Q,A,N,B,P,X,H,Y,S,T,L,K,E,ZD.A,B,G,M,N,P,Q,Z,E,H,K,L,S,T,X,Y

设有关键码序列(Q, G, M, Z, A, N, B, P, X, H, Y, S, T, L, K, E),采用二路归并排序法进行排序,下面哪一个序列是第二趟归并后的结果?( )A) G, Q, M, Z, A, N, B, P, H, X, S, Y, L, T, B, KB) G, M, Q, Z, A, B, N, P, H, S, X, Y, E, K, L, TC) G, M, Q, A, N, B, P, X, H, Y, S, T, L, K, E, ZD) A, B, G, M, N, P, Q, Z, E, H, K, L, S, T, X, YA.B.C.D.

以下4个程序中,不能实现两个实参值进行交换的是 ( )。A.void swap (float *p, float *q) { float *t ,a; t = a; t = p; *p = *q; *q = *t; } void main () { float x = 8.0;y = 9.0; swap (x, y); cout<<x<<", "<<y<<B.void swap (float *p, float *q) { float a; a = *p; *p = *q; *q = a; } void main() { float x = 8.0;y = 9.0; swap (x, y); cout<<x<<", "<<y<<end1;C.void swap (float *p, float *q) { float x; x = *p; *p = *q; *q = x; } void main() { float a,b.; *a = 8.0;*b = 9.0; swap (a, b) ;D.void swap (float p, float q) { float a; a = p; p = q; q = a; } void main() { float a = 8.0,b = 9.0; swap (a,b); cout<<x<<", "<<y<<

以下程序的输出结果是include "stdio.h"int *f(int *x,int *y){ if(*x*y) return x; else return y;}main(){ int a=7,b=8, *p,*q,*r ; p=a; q=b; r= f(p,q); printf("%d,%d,%d\n",*p,*q,*r);}

设有关键码序列(Q,C,M,Z,A,N,B,P,X,H,Y,S,T,L,K,E),采用二路归并排序法进行排序,下面哪—个序列是第二趟归并后的结果?A.C,Q,M,Z,A,N,B,P,H,X,S,Y,L,T,E,KB.C,M,Q,Z,A,B,N,P,H,S,X,Y,E,K,L,TC.C,M,Q,A,N,B,P,X,H,Y,S,T,L,K,E,ZD.A,B,C,M,N,P,Q,Z,E,H,K,L,S,T,X,Y

有以下程序:includeincludeusingnamespacestd;classDistance;classpoint{pub 有以下程序: #include <iostream> #include <cmath> using namespace std; class Distance; class point { public: friend class Distance; Point(int a,int B) { x=a; Y=b; } void Print() { cout<<"X= "<<X<<end1; cout<<"Y= "<<Y<<end1; } private: float X,Y; }; class Distance { public: float Dis(Point p,Point q); }; float Distance :: Dis(Point p,Point q) { float result; result=sqrt((p.X-q.X)*(p.X-q.X)+(p.Y-q.Y)*(p.Y-q.Y)); cout<<result<<end1; retUrn result; } int main() { Point p(10,10),q(10,30); Distance d; d.Dis(p,q); return 0; } 运行后的输出结果是( )。A.10B.30C.0D.20

若y2(x)是线性非齐次方程y'+ P(x)y=Q(x)的解,y1(x)是对应的齐次方程y'+ P(x)y=0的解,则下列函数中哪一个是y'+ P(x)y=Q(x)的解?A. y=cy1(x)+y2(x) B. y=y1(x)+c2y2(x)C. y=c[y1(x)+y2(x)] D. y=cy1(x)-y2(x)

已知y1(x)和y2(x)是方程y''+p(x)y'+Q(x)y=0的两个线性无关的特解, Y1(x)和Y2 (x)分别是方程y''+p(x)y'+Q(x)y=R1(x)和y''+p(x)y'+Q(x)y=R2(x)的特解。那么方程y''+p(x)y'+Q(x)y=R1(x)y+R2(x)的通解应是:A. c1y1+c2y2B. c1Y1(x)+c2Y2(x) C. c1y1+c2y2+Y1(x) D. c1y1+c2y2+Y1(x)+Y2(x)

设X~N(μ,4^2),y~N(μ,5^2),令p=P(X≤μ一4),q=P(Y≥μ+5),则().A.p>qB.pC.p=qD.p,q的大小由μ的取值确定

已知y1(X)与y2(x)是方程:y" + P(x)y'+Q(x)y = 0的两个线性无关的特解,y1(x)和y2(x)分别是方程y"+P(x)y'+Q(x)y=R1(x)和y"+p(x)+Q(x)y=R2(x)的特解。那么方程y"+p(x)y'+Q(x)y=R1(x)+R2(x)的通解应是:A. c1y1+c2y2B. c1Y1(x) +c2Y2 (x)C. c1y1+c2y2 +Y1(x)D. c1y1+c2y2 +Y1 (x) +Y2 (x)

设随机变量X与Y相互独立,已知P(X≤1)=p,P(Y≤1)=q,则P(max(X,Y)≤1)等于( ).A.p+qB.pqC.pD.q

若y1(x)是线性非齐次方程y '+ p(x)= Q(x)的解,y1(x)是对应的齐次方程y'+p(x)y=0的解,则下列函数中哪一个是y '+ p(x)y= Q(x)的解?A. y=cy1(x)+y2(x)B. y=y1(x)+c2y2(x)C. y=c[y1 (x)+y2(x)]D.y=c1y(x)-y2(x)

若y2(x)是线性非齐次方程y'+p(x)y=q(x)的解,y1(x)是对应的齐次方程y'+p(x)y=0的解,则下列函数也是y'+p(x)y=q(x) 的解的是( )。A.y=Cy1(x)+y2(x) B. y=y1(x)+Cy2(x)C.y=C[y1(x)+y2(x)] D.y=Cy1(x)-y2(x)

某随机事件最多只有X、Y、Z三种互不相同的结果,关于X、Y、Z发生的概率,下列各项有可能的是( )。A. P(X) =1, P(Y) = -1, P(Z) =1B. P(X) =0.3, P(Y) =0.2,P(Z) =0.5C. P(X) =P(Y) =P(Z) =1D. P(X) >0, P(Y)= -P(X),P(Z) =1

若已有以下定义和语句: #include       int x=4,y=3,*p,*q,*s;  p=x; q=y; s=q; q=NULL;  则下面分别给出的四条语句中,错误的是()A、*q=0;B、s=p;C、*p=x;D、*p=*s;

判断下列公式是否为可合一,若可合一,则求出其最一般合一。 (1)P(a,b),P(x,y) (2)P(f(x),b),P(y,z) (3)P(f(x),y),P(y,f(b)) (4)P(f(y),y,x),P(x,f(a),f(b)) (5)P(x,y),P(y,x)

若y2(x)是线性非齐次方程y′+P(x)y=Q(x)的解,y(x)是对应的齐次方程y′+P(x)y=0的解,则下列函数中哪一个是y′+P(x)y=Q(x)的解()?A、y=cy1(x)+y2(x)B、y=y1(x)+c2y2(x)C、y=c[y1(x)+y2(x)]D、y=c1y(x)-y2(x)

设要将序列(q,h,c,y,p,a,m,s,r,d,f,x)中的关键码按字母升序重新排序,回答。()是以第一个元素为分界元素的快速一趟扫描的结果。A、f,h,c,d,p,a,m,q,r,s,y,xB、p,a,c,s,q,d,f,x,r,h,m,yC、a,d,c,r,f,q,m,s,y,p,h,xD、h,c,q,p,a,m,s,r,d,f,x,yE、h,q,c,y,a,p,m,s,d,r,f,x

已知P{X≤0,Y≤0}=1/3,P{X0}=1/2,P{Y0}=1/3,则P{min(X,Y)≤0}=()

单选题已知p=1,q=3,r=-3,若x=|p-q|,y=|q-r|,z=|r-p|,则下列选项正确的是(  ).Az>x>yBz>y>zCx>y>zDy>z>x

问答题判断下列公式是否为可合一,若可合一,则求出其最一般合一。 (1)P(a,b),P(x,y) (2)P(f(x),b),P(y,z) (3)P(f(x),y),P(y,f(b)) (4)P(f(y),y,x),P(x,f(a),f(b)) (5)P(x,y),P(y,x)

单选题某随机事件最多只有X、Y、Z三种互不相同的结果,关于X、Y、Z发生的概率,下列各项有可能的是(  )。AP(X)=1,P(Y)=-1,P(Z)=1BP(X)=0.3,P(Y)=0.2,P(Z)=0.5CP(X)=P(Y)=P(Z)=1DP(X)>0,P(Y)=-P(X),P(Z)=1

单选题若已有以下定义和语句: #include       int x=4,y=3,*p,*q,*s;  p=x; q=y; s=q; q=NULL;  则下面分别给出的四条语句中,错误的是()A*q=0;Bs=p;C*p=x;D*p=*s;

单选题已知y1(x)与y2(x)是方程y″+P(x)y′+Q(x)y=0的两个线性无关的特解,Y1(x)和Y2(x)分别是是方程y″+P(x)y′+Q(x)y=R1(x)和y″+P(x)y′+Q(x)y=R2(x)的特解。那么方程y″+P(x)y′+Q(x)y=R1(x)+R2(x)的通解应是:()Ac1y1+c2y2Bc1Y1(x)+c2Y2(x)Cc1y1+c2y2+Y1(x)Dc1y1+c2y2+Y1(x)+Y2(x)

单选题设随机变量X与Y相互独立,已知P(X≤1)=p,P(Y≤1)=q,则P(max(X,Y)≤1)等于().Ap+qBpqCpDq

单选题若y2(x)是线性非齐次方程y′+P(x)y=Q(x)的解,y(x)是对应的齐次方程y′+P(x)y=0的解,则下列函数中哪一个是y′+P(x)y=Q(x)的解()?Ay=cy1(x)+y2(x)By=y1(x)+c2y2(x)Cy=c[y1(x)+y2(x)]Dy=c1y(x)-y2(x)

单选题若y2(x)是线性非齐次方程y′+P(z)y=Q(x)的解,y1(x)是对应的齐次方程y′+P(x)y=0的解,则下列函数中哪一个是y′+P(z)y=Q(x)的解?()Ay=cy1(x)+y2(x)By=y1(x)+c2y2(x)Cy=c[y1(x)+y2(x)]Dy=c1y(x)-y2(x)