• 2022-06-06
    下面程序的输出为()。INTEGERA(10)DATAA/1,2,3,4,5,6,7,8,9,10/DO10K=1,10M=A(K)+1A(K)=A(10-K+1)+1A(10-K+1)=M10CONTINUEWRITE(*,*)A(5)END
    A: 5
    B: 6
    C: 7
    D: 8
  • C

    举一反三

    内容

    • 0

      下列程序的输出结果是( )。 x=0 k=10 while k>0: k-=1 if k<5: break x+=1 print(x) A: 5 B: 7 C: 9 D: 10

    • 1

      下面语句的输出结果是?range(len('HelloWorld')) A: [1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11] B: 11 C: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] D: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]

    • 2

      The output of the following code is ____.<br/>count = 1; /* initialize count */ while (count &lt;= 10) { printf("%d ",count); count++; /* increment count */ } A: 1 1 1 1 1 1 1 1 … B: 1 2 3 4 5 6 7 8 9 C: 1 2 3 4 5 6 7 8 9 10 D: 1 2 3 4 5 6 7 8 9 10 11

    • 3

      (1) /k/(2) /ʃ/(3) /tʃ/(4) /s/(5)/tr/ (6) /z/(7) /dʒ/ (8) /ŋ/(9) /g/ (10) /m/(11) /θ/ (12) /n/(13) /ð/ (14) /f/

    • 4

      for (int i = 1; i <= 10; i++){ if (i % 5 != 0) continue; Console.WriteLine("{0}", i); }该段程序执行后输出_____。 A: 5 10 B: 1 2 3 4 6 7 8 9 C: 5 D: 1 2 3 4 5 6 7 8 9 10