• 2021-04-14 问题

    以下程序的输出结果是( )。 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); }

    以下程序的输出结果是( )。 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); }

  • 2021-04-14 问题

    【单选题】分段函数: ,下面程序段中正确的是__________。 A. If x < 0 Then y = 0 If x < 1 Then y = 1 If x < 2 Then y = 2 If x >= 2 Then y = 3 B. If x >= 2 Then y = 3 If x >= 1 Then y = 2 If x > 0 Then y = 1 If x < 0 Then y = 0 C. If x < 0 Then y = 0 ElseIf x > 0 Then y = 1 ElseIf x > 1 Then y = 2 Else y = 3 End If D. If x > =2 Then y = 3 ElseIf x > =1 Then y = 2 ElseIf x > =0 Then y = 1 Else y = 0 End If

    【单选题】分段函数: ,下面程序段中正确的是__________。 A. If x < 0 Then y = 0 If x < 1 Then y = 1 If x < 2 Then y = 2 If x >= 2 Then y = 3 B. If x >= 2 Then y = 3 If x >= 1 Then y = 2 If x > 0 Then y = 1 If x < 0 Then y = 0 C. If x < 0 Then y = 0 ElseIf x > 0 Then y = 1 ElseIf x > 1 Then y = 2 Else y = 3 End If D. If x > =2 Then y = 3 ElseIf x > =1 Then y = 2 ElseIf x > =0 Then y = 1 Else y = 0 End If

  • 2022-06-04 问题

    下面程序段中正确的是( )。 A: If x<0 Then y=0 If x<1 Then y=1 If x<2 Then y=2 If x>=2 Then y=3 B: If x>=2 Then y=3 If x>1 Then y=2 If x>=0Then y=1 If x>0 Then y=0 C: If x<0 Then y=0 Else If>=0Then y=1 Else y=3 End If D: If x>=2 Then y=3 Else If>=1 Then y=2 Else y=0 End If

    下面程序段中正确的是( )。 A: If x<0 Then y=0 If x<1 Then y=1 If x<2 Then y=2 If x>=2 Then y=3 B: If x>=2 Then y=3 If x>1 Then y=2 If x>=0Then y=1 If x>0 Then y=0 C: If x<0 Then y=0 Else If>=0Then y=1 Else y=3 End If D: If x>=2 Then y=3 Else If>=1 Then y=2 Else y=0 End If

  • 2022-06-07 问题

    下面哪段语句不会报错? A: x = ones(1,4);nh = 0:2;h = (nh+1)* ones(1,3);n=0:5;y=conv(x,h);stem(n,y); B: x = [1 2 3];h = ones(1,5);n=0:7;y=conv(x,h);stem(n,y); C: x = ones(1,5);nh = 0:2;h = (nh+1).* ones(1,3);n=0:6;y=conv(x,h);stem(n,y);

    下面哪段语句不会报错? A: x = ones(1,4);nh = 0:2;h = (nh+1)* ones(1,3);n=0:5;y=conv(x,h);stem(n,y); B: x = [1 2 3];h = ones(1,5);n=0:7;y=conv(x,h);stem(n,y); C: x = ones(1,5);nh = 0:2;h = (nh+1).* ones(1,3);n=0:6;y=conv(x,h);stem(n,y);

  • 2022-06-07 问题

    下面哪段语句不会报错? A: x = [1 2 3];h = ones(1,5);n=0:7;y=conv(x,h);stem(n,y); B: x = ones(1,4);nh =0:2;h = (nh+1) ones(1,3);n=0:5;y=conv(x,h);stem(n,y); C: x = ones(1,5);nh =0:2;h = (nh+1). ones(1,3);n=0:6;y=conv(x,h);stem(n,y);

    下面哪段语句不会报错? A: x = [1 2 3];h = ones(1,5);n=0:7;y=conv(x,h);stem(n,y); B: x = ones(1,4);nh =0:2;h = (nh+1) ones(1,3);n=0:5;y=conv(x,h);stem(n,y); C: x = ones(1,5);nh =0:2;h = (nh+1). ones(1,3);n=0:6;y=conv(x,h);stem(n,y);

  • 2022-06-14 问题

    下列波函数符号错误的是( ) A: Y (1, 0, 0); B: Y (2, 0, 0); C: Y (1, 1, 0); D: Y (3, 0, 0)。

    下列波函数符号错误的是( ) A: Y (1, 0, 0); B: Y (2, 0, 0); C: Y (1, 1, 0); D: Y (3, 0, 0)。

  • 2022-06-18 问题

    当x为大于1的奇数时,执行下面的语句后y的值为0的是______。 A: if (x%2 == 1) y = 1 ; else y = 0 ; B: if (x/2 ) y = 1 ; else y = 0 ; C: if (x%2 != 0) y = 1 ; else y = 0 ; D: if ( x%2 == 0 ) y = 1 ; else y = 0 ;

    当x为大于1的奇数时,执行下面的语句后y的值为0的是______。 A: if (x%2 == 1) y = 1 ; else y = 0 ; B: if (x/2 ) y = 1 ; else y = 0 ; C: if (x%2 != 0) y = 1 ; else y = 0 ; D: if ( x%2 == 0 ) y = 1 ; else y = 0 ;

  • 2022-06-19 问题

    设区域D={(x,y)|-1≤x≤1,-2≤y≤2),() A: 0 B: 2 C: 4 D: 8

    设区域D={(x,y)|-1≤x≤1,-2≤y≤2),() A: 0 B: 2 C: 4 D: 8

  • 2022-06-03 问题

    分段函数:[img=206x91]18037123bea18f3.png[/img],下面程序段中正确的是__________。 A: If x < 0 Then y = 0If x < 1 Then y = 1If x < 2 Then y = 2If x >= 2 Then y = 3 B: If x > =2 Then y = 3ElseIf x > =1 Then y = 2ElseIf x > =0 Then y = 1Else y = 0End If C: If x >= 2 Then y = 3If x >= 1 Then y = 2If x > 0 Then y = 1If x < 0 Then y = 0 D: If x < 0 Then y = 0ElseIf x > 0 Then y = 1ElseIf x > 1 Then y = 2Else y = 3End If E: If x < 0 Then y = 0If 0 <= x <1 Then y = 1If 1 <= x < 2 Then y = 2If x >= 2 Then y = 3

    分段函数:[img=206x91]18037123bea18f3.png[/img],下面程序段中正确的是__________。 A: If x < 0 Then y = 0If x < 1 Then y = 1If x < 2 Then y = 2If x >= 2 Then y = 3 B: If x > =2 Then y = 3ElseIf x > =1 Then y = 2ElseIf x > =0 Then y = 1Else y = 0End If C: If x >= 2 Then y = 3If x >= 1 Then y = 2If x > 0 Then y = 1If x < 0 Then y = 0 D: If x < 0 Then y = 0ElseIf x > 0 Then y = 1ElseIf x > 1 Then y = 2Else y = 3End If E: If x < 0 Then y = 0If 0 <= x <1 Then y = 1If 1 <= x < 2 Then y = 2If x >= 2 Then y = 3

  • 2022-05-27 问题

    9. $y=\log_x 2$的反函数为 A: $y=2^{1/x},x &gt;0$ B: $y=2^{x},x &gt;0$ C: $y=2^{1/x}, x \neq 0$ D: $y=2^{1/x},x &gt;0, x \neq 1$

    9. $y=\log_x 2$的反函数为 A: $y=2^{1/x},x &gt;0$ B: $y=2^{x},x &gt;0$ C: $y=2^{1/x}, x \neq 0$ D: $y=2^{1/x},x &gt;0, x \neq 1$

  • 1 2 3 4 5 6 7 8 9 10