以下程序的功能是求"x ^ 2 + 5"表达式的值,其中x的值由文本框Text0输入,运算的结果由文本框Text1输出。Private Sub Command0_Click() Dim x As Integer Dim y As Long Me.Text0 = x y = x * x + 5Me.Text1 = yEnd Sub运行上述程序时,出现了错误,错误的语句是
A: Dim x As Integer
B: Me.Text0 = x
C: Me.Text1 = y
D: Dim y As Long
A: Dim x As Integer
B: Me.Text0 = x
C: Me.Text1 = y
D: Dim y As Long
举一反三
- 以下程序的功能是求"x ^ 2 + 5"表达式的值,其中x的值由文本框Text0输入,运算的结果由文本框Text1输出。Private Sub Command0_Click() Dim x As Integer Dim y As Long Me.Text0 = x y = x * x + 5Me.Text1 = yEnd Sub运行上述程序时,出现了错误,错误的语句是 A: Dim x As Integer B: Me.Text0 = x C: Me.Text1 = y D: Dim y As Long
- 由文本框 Text1 输出。Private Sub Command0_Click() Dim x As Integer Dim y As Long Me.Text0 = x y = x ^ 3 * 5Me.Text1 = yEnd Sub运行上述程序时,会有错误。错误的语句是 A: Dim x As Integer B: Me.Text0 = x C: Me.Text1 = y D: Dim y As Long
- 以下程序的功能是求“x^3*5”表达式的值,其中x的值由文本框Text0输入,运算的结果由文本框Text1输出。 Private Sub Command0_Click() Dim x As Integer Dim y As Long Me.Text0=x y=x^3*5 Me.Text1=y End Sub 运行上述程序时,会有错误。错误的语句是 A: Dim x As Integer B: Me.Text0=x C: Me.Text1=y D: Dim y As Long
- 以下程序的功能是求“x^3-5”表达式的值,其中X的值由文本框Text0输入,运算的结果由文本框Text3输出。 Private Sub Command0_Click() Dim x As Integer Dim y As Long Me.Text0=x y=x^3-5 Me.Text3=y End Sub 上述程序有错误。错误的语句是______。 A: Dim x As Integer B: Me.Text0=x C: Me.Text3=y D: Dim y As Long
- 有如下事件程序,运行该程序后输出结果是。 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