已知P{X≤0,Y≤0}=1/3,P{X>0}=1/2,P{Y>0}=1/3,则P{min(X,Y)≤0}=()
第1题:
一个二进制源X发出符号集为{-1,1},经过离散无记忆信道传输,由于信道中噪音的存在,接收端Y收到符号集为{-1,1,0}。已知P(x=-1)=1/4,P(x=1)=3/4,P(y=-1|x=-1)=4/5,P(y=0|x=-1)=1/5,P(y=1|x=1)=3/4,P(y=0|x=1)=1/4,求条件熵H(Y|X)()
A.0.2375
B.0.3275
C.0.5273
D.0.5372
第2题:
若有以下程序段: #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.1
B.4
C.5
D.2
第3题:
A、P(X+Y≤0)=1/2
B、P(X-Y≤0)=1/2
C、P(X+Y≤1)=1/2
D、P(X-Y≤1)=1/2
第4题:
以下程序的输出结果是 ______。 struct HAR {int x,y;struct HAR*p;}h[2]; main() { h[0],x=1;h[0].y=2; h[1]x=3;h[1].y=4; h[0].p、&h[1];h[1]..p=h; printf("%d%d\n",(h[0].p)->x,(h[1].p)->y; }
A.12
B.23
C.14
D.32
第5题:
以下程序的输出结果是______。 struct HAR {int x,y;struct HAR *p;}h[2] main() { h[0].x=1;h[0].y=2 h[1].x=3;h[1].y=4 h[0].p=&h[1];h[1].p=h printf("%d%d\n",()h[0].p)->x,(h[1].p->y); }
A.12
B.23
C.14
D.32
第6题:
随机变量X,Y相互独立,且分布列分别为P{X=0}=1/3;P{X=1}=2/3。P{Y=0}=1/3,P{Y=1}=2/3。则以下正确的是
A、P{X=Y}=5/9
B、P{X=Y}=1
C、X=Y
D、均不正确
第7题:
有以下程序: #include <stdio.h> main() { int a[] = {2,4,6,8,10} ,y =0,x, * p; p =&a[1]; for(x=1;x<3;x++)y+ =p[x]; printf( "% d \n" , y); }程序运行后的输出结果是( )。
A.10
B.11
C.14
D.15
第8题:
int y=1, x, *p, a[ ]={2,4,6,8,10}; p=&a[1]; for(x=0;x<3;x++) y + = * (p + x); printf("%d\n",y); 程序的输出结果y的值是__________ 。
第9题:
以下程序的输出结果是______。 structHAR {int x,y;structHAR*p;}; main() { h[0].x=1;h [0].y=2; h[1].x=3;h[1].y=4; h[0].p=&h[1].p=h; printf("%d%d\n",(h[0].p->y)); }
A.12
B.23
C.14
D.32
第10题:
若有以下程序段; #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.1
B.4
C.5
D.2