• 2022-10-24 问题

    下面哪些定义是类型正确的? A: f :: (Integer, Integer) - Floatf (x,y) =x / y B: f :: (Integer, Integer) - Floatf (x,y) = (fromInteger x) / (fromInteger y) C: f :: (Integer, Integer) - Floatf (x,y) = 3*x + y D: f :: (Integer, Integer) - Integerf (x, y) = 3*x + y

    下面哪些定义是类型正确的? A: f :: (Integer, Integer) - Floatf (x,y) =x / y B: f :: (Integer, Integer) - Floatf (x,y) = (fromInteger x) / (fromInteger y) C: f :: (Integer, Integer) - Floatf (x,y) = 3*x + y D: f :: (Integer, Integer) - Integerf (x, y) = 3*x + y

  • 2021-04-14 问题

    Sub s1(ByVal x As Integer, ByVal y As Integer) Dim t As Integer t = x: x = y: y = t End Sub Sub s2(x As Integer, y As Integer) Dim t As Integer t = x: x = y: y = t End Sub 则以下说法中正确的是( )。

    Sub s1(ByVal x As Integer, ByVal y As Integer) Dim t As Integer t = x: x = y: y = t End Sub Sub s2(x As Integer, y As Integer) Dim t As Integer t = x: x = y: y = t End Sub 则以下说法中正确的是( )。

  • 2022-06-25 问题

    假定有一个模块,在其中定义一个公共变量,正确的是________。 A: Dim x as Integer B: Public Dim x as Integer C: Dim Public x as Integer D: Public x as Integer

    假定有一个模块,在其中定义一个公共变量,正确的是________。 A: Dim x as Integer B: Public Dim x as Integer C: Dim Public x as Integer D: Public x as Integer

  • 2022-06-16 问题

    执行下列程序段后,text1中显示的结果是( ) Dim x As Integer, a As Integer, b As Integer, c As Integer x = 625 a = x \ 100 b = x \ 10 Mod 10 c = x Mod 10 Text1.Value = a + b + c

    执行下列程序段后,text1中显示的结果是( ) Dim x As Integer, a As Integer, b As Integer, c As Integer x = 625 a = x \ 100 b = x \ 10 Mod 10 c = x Mod 10 Text1.Value = a + b + c

  • 2022-06-19 问题

    在VB中,使用变量前一般应对变量进行定义。以下变量定义语句错误的是()。 A: Dim  x As Integer B: Dim  x As Integer,y As Single C: Var  x,y:Integer D: Dim  x As Integer,y As Integer

    在VB中,使用变量前一般应对变量进行定义。以下变量定义语句错误的是()。 A: Dim  x As Integer B: Dim  x As Integer,y As Single C: Var  x,y:Integer D: Dim  x As Integer,y As Integer

  • 2022-06-26 问题

    要在窗体Form1中定义一个可以在窗体Form2中使用的整型变量X,可在Form1窗体的通用部分输入语句( )。 A: Dim X As Integer B: Static X As Integer C: Private X As Integer D: Public X As Integer

    要在窗体Form1中定义一个可以在窗体Form2中使用的整型变量X,可在Form1窗体的通用部分输入语句( )。 A: Dim X As Integer B: Static X As Integer C: Private X As Integer D: Public X As Integer

  • 2022-07-23 问题

    中国大学MOOC: 选择下列输入的运行结果fc[x_Integer]:=2x ;{fc[11],fc[12.34],fc[{{1,1},{-1,-2}}]}

    中国大学MOOC: 选择下列输入的运行结果fc[x_Integer]:=2x ;{fc[11],fc[12.34],fc[{{1,1},{-1,-2}}]}

  • 2021-04-14 问题

    窗体上有标签(Label1、Label2)和命令按钮(Command1),编写如下事件过程: Private x As Integer: Private Sub Command1_Click(): Dim x As Integer, y As Integer: x = 5: y = 3: proc x, y: Label1.Caption = x: Label2.Caption = y: End Sub: Private Sub proc(ByVal a As Integer, b As Integer): x = a + b: b = b * b: End Sub:运行后,单击按钮,Label1和Label2将分别显示

    窗体上有标签(Label1、Label2)和命令按钮(Command1),编写如下事件过程: Private x As Integer: Private Sub Command1_Click(): Dim x As Integer, y As Integer: x = 5: y = 3: proc x, y: Label1.Caption = x: Label2.Caption = y: End Sub: Private Sub proc(ByVal a As Integer, b As Integer): x = a + b: b = b * b: End Sub:运行后,单击按钮,Label1和Label2将分别显示

  • 2021-04-14 问题

    运行下面的程序,第二行显示结果是___________。 Private Sub Form_Click() Dim A As Integer Dim i As Integer A = 5 For i = 1 To 9 Call sub1(i, A) Print i, A Next i End Sub Private Sub sub1(x As Integer, y As Integer) Static N As Integer Dim I As Integer For I = 3 To 1 Step -1 N = N + x x = x + 2 Next I y = y + N End Sub

    运行下面的程序,第二行显示结果是___________。 Private Sub Form_Click() Dim A As Integer Dim i As Integer A = 5 For i = 1 To 9 Call sub1(i, A) Print i, A Next i End Sub Private Sub sub1(x As Integer, y As Integer) Static N As Integer Dim I As Integer For I = 3 To 1 Step -1 N = N + x x = x + 2 Next I y = y + N End Sub

  • 2021-04-14 问题

    下列代码执行后,窗体上显示( )。 Dim x As Integer, y As Integer x = 50: y = 30 If x > y Then x = x - y Else y = y x If x < y Then x = x 20 Form1.Print x, y

    下列代码执行后,窗体上显示( )。 Dim x As Integer, y As Integer x = 50: y = 30 If x > y Then x = x - y Else y = y x If x < y Then x = x 20 Form1.Print x, y

  • 1 2 3 4 5 6 7 8 9 10