• 2022-06-08 问题

    有如下事件程序,运行该程序后输出结果是。 Private Sub Command33_Click() Dim x As Integer, y As Integer x = 1: y = 0 Do Until y <= 25 y = y + x * x x = x + 1 Loop MsgBox "x=" & x & ", y=" & y End Sub

    有如下事件程序,运行该程序后输出结果是。 Private Sub Command33_Click() Dim x As Integer, y As Integer x = 1: y = 0 Do Until y <= 25 y = y + x * x x = x + 1 Loop MsgBox "x=" & x & ", y=" & y End Sub

  • 2022-06-08 问题

    中国大学MOOC: 下面的程序执行完后a,b的值分别为______。 Dim x, y, a, b As Integer x = 12 : y = 8 a = 1 : b = x * y Do While x Mod 2 = 0 And y Mod 2 = 0 x = x 2 y = y 2 a = a * 2 Loop Do While x <> y If x > y Then x = x - y Else y = y - x End If Loop a = a * x b = b a

    中国大学MOOC: 下面的程序执行完后a,b的值分别为______。 Dim x, y, a, b As Integer x = 12 : y = 8 a = 1 : b = x * y Do While x Mod 2 = 0 And y Mod 2 = 0 x = x 2 y = y 2 a = a * 2 Loop Do While x <> y If x > y Then x = x - y Else y = y - x End If Loop a = a * x b = b a

  • 2022-06-08 问题

    编写如下程序: Private Sub Command1_Click() Dim x As Integer, y As Integer x = 1: y = 1 Do y = x * y If y > 10 Then Print x, y Exit Do Else x = x + 3 End If Loop While x <= 10 End Sub 运行程序,输出结果为______

    编写如下程序: Private Sub Command1_Click() Dim x As Integer, y As Integer x = 1: y = 1 Do y = x * y If y > 10 Then Print x, y Exit Do Else x = x + 3 End If Loop While x <= 10 End Sub 运行程序,输出结果为______

  • 2022-06-10 问题

    阅读以下Shell程序,它的输出是_____________ #!/bin/sh echo "ok,nice" loop=0 for str in "hello world" do loop=$(($loop+1)) echo "The $loop loop:$str" done A: ok,nice The 2 loop:hello world B: ok,nice The 1 loop:hello world C: The 1 loop:hello world D: ok,nice

    阅读以下Shell程序,它的输出是_____________ #!/bin/sh echo "ok,nice" loop=0 for str in "hello world" do loop=$(($loop+1)) echo "The $loop loop:$str" done A: ok,nice The 2 loop:hello world B: ok,nice The 1 loop:hello world C: The 1 loop:hello world D: ok,nice

  • 2021-04-14 问题

    【单选题】下面的程序执行完后a,b的值分别为______。 Dim x, y, a, b As Integer x = 12 : y = 8 a = 1 : b = x * y Do While x Mod 2 = 0 And y Mod 2 = 0 x = x 2 y = y 2 a = a * 2 Loop Do While x <> y If x > y Then x = x - y Else y = y - x End If Loop a = a * x b = b a A. 4   24 B. 24   4 C. 4  12 D. 8  24

    【单选题】下面的程序执行完后a,b的值分别为______。 Dim x, y, a, b As Integer x = 12 : y = 8 a = 1 : b = x * y Do While x Mod 2 = 0 And y Mod 2 = 0 x = x 2 y = y 2 a = a * 2 Loop Do While x <> y If x > y Then x = x - y Else y = y - x End If Loop a = a * x b = b a A. 4   24 B. 24   4 C. 4  12 D. 8  24

  • 2022-06-08 问题

    设x和y均为整形变量,则执行程序中的循环后,y的值为 x=1 y=1 Do While y < = 50 If x>=10 Then Exit Do End If If (x Mod 2) = 1 Then x=x+5 End If If x Mod 2 <> 1 Then x=x-3 End If y=y+1 Loop A: 2 B: 4 C: 6 D: 8

    设x和y均为整形变量,则执行程序中的循环后,y的值为 x=1 y=1 Do While y < = 50 If x>=10 Then Exit Do End If If (x Mod 2) = 1 Then x=x+5 End If If x Mod 2 <> 1 Then x=x-3 End If y=y+1 Loop A: 2 B: 4 C: 6 D: 8

  • 2022-06-08 问题

    有如下事件程序,运行该程序后输出结果是_________。 Private Sub Command33_Click() Dim x As Integer, y As Integer x=1:y=0 Do Until y<=25 y=y+x*x x=x+1 Loop MsgBox "x=" & x &",y=" & y End Sub A: x=1,y=0 B: x=4,y=25 C: x=5,y=30 D: 输出其他结果

    有如下事件程序,运行该程序后输出结果是_________。 Private Sub Command33_Click() Dim x As Integer, y As Integer x=1:y=0 Do Until y<=25 y=y+x*x x=x+1 Loop MsgBox "x=" & x &",y=" & y End Sub A: x=1,y=0 B: x=4,y=25 C: x=5,y=30 D: 输出其他结果

  • 2022-06-07 问题

    执行以下程序段的输出x的值为()x=1y=4DoUntily>4x=x*yy=y+1Loop A: 1 B: 4 C: 8 D: 20

    执行以下程序段的输出x的值为()x=1y=4DoUntily>4x=x*yy=y+1Loop A: 1 B: 4 C: 8 D: 20

  • 2022-06-19 问题

    下列程序段的执行结果为______。 x = 0: y = 1 z = 1: n = 0 Do x = x + y + z n = n + 1 Loop While x < 10 Print x; n A: 10 5 B: x n C: 9 5 D: 10 6

    下列程序段的执行结果为______。 x = 0: y = 1 z = 1: n = 0 Do x = x + y + z n = n + 1 Loop While x < 10 Print x; n A: 10 5 B: x n C: 9 5 D: 10 6

  • 2022-06-08 问题

    当变量x=2,y=5时,以下程序的输出结果为____。 Do until y>5 x=x*y y=y+1 loop print x

    当变量x=2,y=5时,以下程序的输出结果为____。 Do until y>5 x=x*y y=y+1 loop print x

  • 1 2 3 4 5 6 7 8 9 10