【单选题】【消耗次数:1】
设有说明intx=0,y=2;则执行if(x=0)y=1+x;elsey=x-1;后,变量y的值是(   )
-1
0
1
2
参考答案:
复制
纠错
相关题目
【单选题】 已知x0,y0,且x+y=8,则(1+x)(1+y)的最大值为(  )
①  25
②  16
③  36
④  9
【判断题】 设随机变量X,Y相互独立,EX=0,EY=1,DX=1,则E[X(X+Y-2)]=0
①  正确
②  错误
【单选题】 设X,Y独立同分布P(X=-1)=P(Y=-1)=1/2,P(X=1)=P(Y=1)=1/2则
①  X=Y
②  P(X=Y)=0
③  P(X=Y)=1/2
④  P(X=Y)=1
【判断题】 若X~N(0,2),Y~N(2,1),X,Y独立,则X-Y~N(-2,1).
①  正确
②  错误
【判断题】 设随机变量X,Y相互独立,EX=0,EY=1,DX=1,则E[X(X+Y-2)]=1
①  正确
②  错误
【单选题】 若随机变量X,Y相互独立,EX=EY=0,DX=DY=1,则E(X+Y+1)2=
①  2
②  3
③  1/3
④  1
【单选题】 执行下面程序后,运行结果是 #includevoid main( ) { int x=41,y=1; if (x%3==0 x%7==0) { y+=x;printf(y=%d\n} else {y=x;printf(y=%d} }
①  y=41
②  y=43
③  y=42
④  y=1
【单选题】 以下程序段的运行结果是( )。 for(y=1;y) y=((x=3*y,x+1),x-1); printf(x=%d,y=%d,x,y);
①  x=27,y=27
②  x=12,y=13
③  x=15,y=14
④  x=y=27
【判断题】 设 Ri 是 X 上的二元关系, 对于 x∈X 定义集合Ri(x)={y|xRiy}. 如果 X={-4, -3, -2, -1, 0, 1, 2, 3, 4}, 且令R2={|x, y∈Xùy-1y+2},则R2(-1) ={ -2, -1}.
①  正确
②  错误
【简答题】 设 Ri 是 X 上的二元关系, 对于 x∈X 定义集合Ri(x)={y|xRiy}. 如果 X={-4, -3, -2, -1, 0, 1, 2, 3, 4}, 且令R2={|x, y∈Xùy-1y+2},则R2(-1) =[填空1]
随机题目
【单选题】 When we breathe, the oxygen in the air ____ with our blood and gives us life.
①  fills
②  goes
③  takes in
④  mixes
【单选题】 The disabled children need many things, but____, they need love.
①  first of all
②  above all
③  after all
④  all in all
【单选题】 Only by shouting at the top of his voice ____.
①  he was able to make himself hear
②  he was able to make himself heard
③  was he able to make himself heard
④  was he able to make himself hear
【单选题】 He won’t____ to bring me my umbrella unless I tell him again.
①  forget
②  remind
③  remember
④  realize
【单选题】 Many people prefer large cars, ___ large cars are safer than small ones.
①  think
②  to think
③  having thought
④  thinking
【单选题】 David watched her car until it ________ from view.
①  remainded
②  dalayed
③  grew
④  disappeared
【单选题】 When I got up this morning, I felt the temperature had ____.
①  sunk
②  reduced
③  dropped
④  lowed
【单选题】 The reason why the car was stopped was ____.
①  that the road was slippery
②  due to the slippery road
③  because the road was slippery
④  because of the slippery road
【单选题】 —WillyougoshoppingtogetherwithusthisSunday,Jenny?—Yes,____.
①  I do
②  I’d like to
③  I’d love to do
④  D. I’m busy
【判断题】 域名解析是将主机名映射为IP地址的过程。
①  正确
②  错误