填空题X和Y分别指两个二进制数运算符号,有规则如下。0X0=0 0X1=1 1X0=1 1X1=0 0Y0=0 0Y1=0 1Y0=0 1Y1=1则X是(),Y是()。
填空题
X和Y分别指两个二进制数运算符号,有规则如下。0X0=0 0X1=1 1X0=1 1X1=0 0Y0=0 0Y1=0 1Y0=0 1Y1=1则X是(),Y是()。
参考解析
解析:
暂无解析
相关考题:
一个二进制源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.2375B.0.3275C.0.5273D.0.5372
( 21 )有如下函数定义:void func ( int a,int & b ) {a++; b++;}若执行代码段:int x=0 ,y=1func ( x,y ) ;则变量 x 和 y 值分别是A ) 0 和 1B ) 1 和 1C ) 0 和 2D ) 1 和 2
( 19 )若 x 和 y 是程序中的两个整型变量,则下列 if 语句中正确的是A ) if(x==0) y=1; else y=2;B ) if(x==0) then y=1 else y=2;C ) if(x==0) y=1 else y=2;D ) if x==0 y=1; else y=2;
某段网站后台程序的流程图如下图所示。其中A,B,C均为二进制数,X,Y,Z的初值均为0,如果预期的结果为X=0、Y=1、Z=1,则正确的测试用例是(10),请从以下备选项中选择正确的测试用例填在答题纸对应的位置。 A.A=1 B=0 C=0和A=1 B=1 C=0B.A=0 B=0 C=0和A=1 B=1 C=1C.A=0 B=0 C=1和A=0 B=1 C=1D.A=1 B=0 C=1和A=0 B=1 C=0
函数定义如下: void fun(int x,int y){x++;y++;} 如果执行代码段: int a=0,b=1; fun(a,b); 则变量a和b的值分别是( )。A.0和1B.0和2C. 1和1D.1和2
与“y=(x0?1:x0?-1:0)”;的功能相同的if 语句是( )。A.if(x0)y=1; else if(x0)y=1; else= y=0;B. x=0)y=1; else if(x0)y=-l; else= y=0;C.y=-l x=O)y=1; else if(x=-0)y=0; else y=-l;D.y=0; if(x=0) if(x=0)y=1; else y=-l;
与“y=(x0?1:x0?-1:0)”;的功能相同的if 语句是( )。A.if(x0)y=1; else if(x0)y=1; else y=0;B.if(x) if(x0)y=1; else if(x0)y=-l; else y=0;C.y=-l if(x) if(xO)y=1; else if(x=-0)y=0; else y=-l;D.y=0; if(x=0) if(x=0)y=1; else y=-l;
与y=(x>0? 1:x0)y=1 else if(x 与y=(x>0? 1:x<0? -1:0);的功能相同的if语句是A.if(x>0)y=1 else if(x<0)y=-1; else y=O;B.if(x) if(x>0)y=1; else if(x<0)y=-1;C.y=-1; if(x) if(x>0)y=1; else if(x==0)y=0; else y=-1;D.y=0; if(x>=0) if(x>0)y=1; else y=-1;
与y=(x>0?1:x0)y=1; else if(x 与y=(x>0?1:x<0?-1:0):的功能相同的if语句是( )A.if(x>0)y=1; else if(x<0)y=-1; else y=0; else y=0;B.if(x) if(x>0)y=1; else if(x<0)y=-1;C.y=-1; if(x) if(x>0)y=1; else if(x==0)y=0; else y=-1;D.y=0; if(x>=0) if(x>0)y=1; else y=-1:
有一函数:以下程序段中不能根据x值正确计算出y值的是A.if(x0)y=1; else if(x= =0)y=0; else y=-1;B.y=0; if(x0)y=1; else if(x0)y=-1;C.y = 0; if (x = 0) if (x0) y = 1; else y = -1;D.if ( x = 0) if ( x0)y = 1; else y = 0; else y = -1;
下面的程序段所表示的数学函数关系是( ) y=-l; if( x!= 0)if(x0)y=l; else y=0 ; 1(x0) 1(x0)A.y= { 0(x= 0)B.y={-l(X=0) 1(X0) 0(X0) o(X 0) -l(X 0)C.y= {-1(x= 0)D.y={ 1(X= 0) 1(X 0) 0(X 0)
以下不能实现符号函数y=sgn(x)的程序段是()。A、if x0 then y=1 else if x=0 then y=0 else y= -1B、if x0 then y=1 else if x0 then y= -1 else y=0C、if x=0 then if x=0 then y=0 else y= -1 else y=1D、if x0 then if x0 then y= -1 else y= 1 else y=0
单选题设两个相互独立的随机变盘X和Y分别服从于N(0,1)和N(1,12),则( ).AP{X+Y≤0}=1/2BP{X+Y≤1}=1/2CP{X-Y≤0}=1/2DP{X-Y≤1}=1/2
单选题以下不能实现符号函数y=sgn(x)的程序段是()。Aif x0 then y=1 else if x=0 then y=0 else y= -1Bif x0 then y=1 else if x0 then y= -1 else y=0Cif x=0 then if x=0 then y=0 else y= -1 else y=1Dif x0 then if x0 then y= -1 else y= 1 else y=0
单选题有如下函数定义:void func(int a,intb)a++;b++;若执行代码段:int x=0;y=1;func(x,y);则变量x和y的值分别是( )。A0和1B1和1C0和2D1和2
多选题下列二进制的算术运算规则中正确的是()。A0/1=0B0+1=0C1+1=2D1×0=1E1-1=0