• 2022-06-28
    ​设#define P(x) x/x执行语句cout <A: 1
    B: 0
    C: 25
    D: 15
  • C

    内容

    • 0

      设X~P(λ),且P{X=1}=P{X=0},则P{X=3}= A: 1/(2e) B: 1/(3e) C: 1/(6e)

    • 1

      ‎ 以下if语句书写正确的是( )。‏ A: if ( x = 0; ) cout << x ; else cout<< -x; B: if ( x > 0 ) { x = x + 1; cout << x ;} else cout <<-x; C: if ( x > 0 ); { x = x + 1; cout << x ;} D: if ( x > 0 ) { x = x + 1; cout << x} ;

    • 2

      设随机变量X服从正态分布N(1,22),则有()。 A: P(X>1)=P(X<1) B: P(X>2)=P(X<2) C: P(X<1)=P(X<1)+P(X>-1) D: P(X>1)=P(X>1)4-P(X<-1)E(0<X≤3)=P(-1<X≤2)

    • 3

      智慧职教: 3.3.18. 设随机变量X~N(2,16),求(1)P{X<5},(2) P{-3<X<5},(3)P{X>5},(4) P{-2<X≤6}。

    • 4

      以下程序的输出结果是 main() {int a[]={2,4,6,8,10},y=1,x,*p; p=&a[1]; for(x=0;x<3;x++) y+=*(p+x); printf("%d\n",y); }