• 2022-06-16 问题

    以下程序的输出结果是【 】。 class Program { public static void Main(string&#91;&#93; args) { int&#91;&#93; a = new int&#91;3&#93; { 1, 2, 3 }; for (int i = 0; i < 3; i++) Console.Write("{0} ", a[i]); Console.WriteLine(); int&#91;&#93; b = a; for (int i = 0; i < 3; i++) b[i] = 2 * b[i]; for (int i = 0; i < 3; i++) Console.Write("{0} ", a[i]); Console.WriteLine(); Console.Read(); } }[/i][/i][/i][/i]

    以下程序的输出结果是【 】。 class Program { public static void Main(string&#91;&#93; args) { int&#91;&#93; a = new int&#91;3&#93; { 1, 2, 3 }; for (int i = 0; i < 3; i++) Console.Write("{0} ", a[i]); Console.WriteLine(); int&#91;&#93; b = a; for (int i = 0; i < 3; i++) b[i] = 2 * b[i]; for (int i = 0; i < 3; i++) Console.Write("{0} ", a[i]); Console.WriteLine(); Console.Read(); } }[/i][/i][/i][/i]

  • 2022-06-06 问题

    以下程序的输出结果是 main() { int i, k, a&#91;10&#93;, p&#91;3&#93;; k=5; for (i=0;i<10;i++) a&#91;i &#93;=i; for (i=0;i<3;i++) p&#91;i &#93;=a&#91;i *(i+1)&#93;; for (i=0;i<3;i++) k+=p[i] *2; printf("%d ",k); }[/i]

    以下程序的输出结果是 main() { int i, k, a&#91;10&#93;, p&#91;3&#93;; k=5; for (i=0;i<10;i++) a&#91;i &#93;=i; for (i=0;i<3;i++) p&#91;i &#93;=a&#91;i *(i+1)&#93;; for (i=0;i<3;i++) k+=p[i] *2; printf("%d ",k); }[/i]

  • 2022-06-07 问题

    unsigned short array&#91;&#93;={1,2,3,4,5,6,7}; int i = 3; *(array + i) = ?

    unsigned short array&#91;&#93;={1,2,3,4,5,6,7}; int i = 3; *(array + i) = ?

  • 2022-06-15 问题

    下面代码的输出结果是: 。ls = &#91;&#91;1,3,6&#93;,&#91;4,6,3&#93;,&#91;2,8,5&#93;&#93;sum1,sum2 = 0,0for i in range(3):sum1 = sum1 + ls[i][i]sum2 = sum2 + ls[i]&#91;2-i&#93;print("sum1={},sum2={}".format(sum1,sum2))[/i][/i][/i]

    下面代码的输出结果是: 。ls = &#91;&#91;1,3,6&#93;,&#91;4,6,3&#93;,&#91;2,8,5&#93;&#93;sum1,sum2 = 0,0for i in range(3):sum1 = sum1 + ls[i][i]sum2 = sum2 + ls[i]&#91;2-i&#93;print("sum1={},sum2={}".format(sum1,sum2))[/i][/i][/i]

  • 2022-06-01 问题

    x = &#91; i for i in range(0, 10, 3) &#93; x中包含3.

    x = &#91; i for i in range(0, 10, 3) &#93; x中包含3.

  • 2022-06-18 问题

    以下程序的输出结果是。 main()[br][/br] {intm&#91;&#93;={1,4,7}; inti; for(i=0;i&#91;3;i++)< span=""&#93; {printf("%d",m[i]);} }[/i]

    以下程序的输出结果是。 main()[br][/br] {intm&#91;&#93;={1,4,7}; inti; for(i=0;i&#91;3;i++)< span=""&#93; {printf("%d",m[i]);} }[/i]

  • 2022-06-01 问题

    已知 vec=&#91;&#91;1,2&#93;,&#91;3,4&#93;&#93;,则表达式[[row[i] for row in vec&#93; for i in range(len(vec&#91;0&#93;))&#93;的值为( )[/i]

    已知 vec=&#91;&#91;1,2&#93;,&#91;3,4&#93;&#93;,则表达式[[row[i] for row in vec&#93; for i in range(len(vec&#91;0&#93;))&#93;的值为( )[/i]

  • 2022-06-07 问题

    阅读下面程序:inti;intx&#91;4&#93;&#91;4&#93;={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16};for(i=0;i<;4;i++)printf("%3d",x[i]&#91;3-i&#93;);下列选项中哪一项是正确的输出结果()[/i] A: 15913 B: 161116 C: 471013 D: 481216

    阅读下面程序:inti;intx&#91;4&#93;&#91;4&#93;={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16};for(i=0;i<;4;i++)printf("%3d",x[i]&#91;3-i&#93;);下列选项中哪一项是正确的输出结果()[/i] A: 15913 B: 161116 C: 471013 D: 481216

  • 2022-06-06 问题

    constlength=4;constnumbers=&#91;&#93;;vari;for(i=0;i A: 3 B: C: 4 D: 5

    constlength=4;constnumbers=&#91;&#93;;vari;for(i=0;i A: 3 B: C: 4 D: 5

  • 2022-06-03 问题

    以下程序段的运行结果是( )。 int a&#91;&#93;={1,2,3,4},i,j; j=1; for(i=3;i>=0;i--) {a[i]=a[i]*j; j=j*3; } for(i=0;i<4;i++) printf("%d [/i][/i]

    以下程序段的运行结果是( )。 int a&#91;&#93;={1,2,3,4},i,j; j=1; for(i=3;i>=0;i--) {a[i]=a[i]*j; j=j*3; } for(i=0;i<4;i++) printf("%d [/i][/i]

  • 1 2 3 4 5 6 7 8 9 10