• 2021-04-14 问题

    运行以下程序,单击命令按钮后在窗体上输出内容_________。Private Sub Command1_Click()Dim a() As IntegerDim i As Integer, j As IntegerReDim a(3, 4)For i = 1 To 3For j = 1 To 4a(i, j) = i* 10 + jNext jNext iReDim a(4, 5)Print a(2, 3)End Sub

    运行以下程序,单击命令按钮后在窗体上输出内容_________。Private Sub Command1_Click()Dim a() As IntegerDim i As Integer, j As IntegerReDim a(3, 4)For i = 1 To 3For j = 1 To 4a(i, j) = i* 10 + jNext jNext iReDim a(4, 5)Print a(2, 3)End Sub

  • 2022-05-31 问题

    以下程序的循环次数是( )For j=7 to 23 Step 4 Print jNext j A: 5 B: 6 C: 7 D: 8

    以下程序的循环次数是( )For j=7 to 23 Step 4 Print jNext j A: 5 B: 6 C: 7 D: 8

  • 2022-05-31 问题

    以下第3条语句执行次数为( )FOR I=1 TO 3 FOR J=5 TO 1 STEP -1 PRINT I*JNEXT J,I A: 15 B: 16 C: 17 D: 18

    以下第3条语句执行次数为( )FOR I=1 TO 3 FOR J=5 TO 1 STEP -1 PRINT I*JNEXT J,I A: 15 B: 16 C: 17 D: 18

  • 2022-06-04 问题

    中国大学MOOC: 执行下列程序段后,i和m的值为( )。m = 0For i = 1 To 3 For j = 1 To i m = m + jNext j, i

    中国大学MOOC: 执行下列程序段后,i和m的值为( )。m = 0For i = 1 To 3 For j = 1 To i m = m + jNext j, i

  • 2022-05-31 问题

    执行下列程序段后,x的值为( )。x = 10For i = 1 To 5 For j = 1 To 5 Step 2 x = x - 1 Next jNext i A: -5 B: 5 C: 10 D: 0

    执行下列程序段后,x的值为( )。x = 10For i = 1 To 5 For j = 1 To 5 Step 2 x = x - 1 Next jNext i A: -5 B: 5 C: 10 D: 0

  • 2022-05-31 问题

    运行下列程序段,语句“k = k + 1”的执行次数总共是()。For i = 1 To 10 Step 3 For j = 1 To i k = k + 1 Next jNext i A: 11 B: 12 C: 21 D: 22

    运行下列程序段,语句“k = k + 1”的执行次数总共是()。For i = 1 To 10 Step 3 For j = 1 To i k = k + 1 Next jNext i A: 11 B: 12 C: 21 D: 22

  • 2022-05-31 问题

    假设有以下程序段:For i=1 to 3For j=5 to 1 Step -1Next jNext iPrint i,j则i、j的值分别是( )。 A: 4 0 B: 3 1 C: 4 1 D: 3 0

    假设有以下程序段:For i=1 to 3For j=5 to 1 Step -1Next jNext iPrint i,j则i、j的值分别是( )。 A: 4 0 B: 3 1 C: 4 1 D: 3 0

  • 2022-05-31 问题

    假定有以下程序段n=0for i=1 to 6 step 2 for j=4 to 1 step -1 n=n+1 next jnext i运行完毕后,n的值是______。 A: 0 B: 3 C: 4 D: 12

    假定有以下程序段n=0for i=1 to 6 step 2 for j=4 to 1 step -1 n=n+1 next jnext i运行完毕后,n的值是______。 A: 0 B: 3 C: 4 D: 12

  • 2022-06-06 问题

    下列程序段能分别正确显示1!、2!、3!、4!的值的是______。 A: For i = 1 To 4 n = 1 For j = 1 To i n = n * j MsgBox(n) Next jNext i B: For i = 1 To 4 For j = 1 To i n = 1 n = n * j Next j MsgBox(n)Next i C: n = 1For i = 1 To 4 For j = 1 To 4 n = n * j MsgBox(n) Next jNext i D: n = 1j = 1Do While j <= 4 n = n * j MsgBox(n) j = j + 1Loop

    下列程序段能分别正确显示1!、2!、3!、4!的值的是______。 A: For i = 1 To 4 n = 1 For j = 1 To i n = n * j MsgBox(n) Next jNext i B: For i = 1 To 4 For j = 1 To i n = 1 n = n * j Next j MsgBox(n)Next i C: n = 1For i = 1 To 4 For j = 1 To 4 n = n * j MsgBox(n) Next jNext i D: n = 1j = 1Do While j <= 4 n = n * j MsgBox(n) j = j + 1Loop

  • 2022-06-06 问题

    下列程序段能且只能显示1!、2!、3!、4!的值的是( )。 A: For i = 1 To 4 n = 1 For j = 1 To i n = n * j Next j MsgBox(n)Next i B: For i = 1 To 4 For j = 1 To i n = 1 n = n * j Next j MsgBox(n)Next i C: n = 1For i = 1 To 4 For j = 1 To 4 n = n * j MsgBox(n) Next jNext i D: n = 1j = 1Do While j <= 4 n = n * j j = j + 1LoopMsgBox(n)

    下列程序段能且只能显示1!、2!、3!、4!的值的是( )。 A: For i = 1 To 4 n = 1 For j = 1 To i n = n * j Next j MsgBox(n)Next i B: For i = 1 To 4 For j = 1 To i n = 1 n = n * j Next j MsgBox(n)Next i C: n = 1For i = 1 To 4 For j = 1 To 4 n = n * j MsgBox(n) Next jNext i D: n = 1j = 1Do While j <= 4 n = n * j j = j + 1LoopMsgBox(n)

  • 1