A: Dim
I, j As Integer
B: I=12.34
C: Dim
I As Integer
D: I
As Integer
举一反三
- 以下声明I是整型变量的语句正确的是( ). A: Dim I,j As single B: I=1234 C: Dim I As Integer D: I As Integer
- Dim i, j as integer 表明i和j都是整型变量.
- 如下数组声明语句,哪一个正确( ) A: Dim<br/>a[3,4] as Integer B: Dim<br/>a(3,4) As Integer C: Dim<br/>a(3;4)<br/>as Integer D: Dim<br/>a(3:4)As<br/>Integer
- 下列程序段的执行结果为 _______。 Dim a(3, 5) As Integer Dim i As Integer, j As Integer For i = 1 To 3 For j = 1 To 5 a(i, j) = a(i - 1, j - 1) + (i - 1) * 5 + j Next j Next i Print a(3, 4)
- 下列数组声明语句中,正确的是()。 A: Dim<br/>A[3,4] As Integer B: Dim<br/>A(3,4) As Integer C: Dim<br/>A[3;4] As Integer D: Dim<br/>A(3;4) As Integer
内容
- 0
Java程序中,关于变量的定义,下面哪个语句是的? A: Dim i as Integer B: var i = 0; C: i:Integer; D: int i = 0;
- 1
下列程序中 s = s + j 语句共执行了______次。 Dim s As Integer Dim i As Integer, j As Integer For i = 1 To 10 Step 2 For j = 1 To 5 Step 2 s = s + j Next j Next i Print s
- 2
运行下面的程序,第二行显示结果是___________。 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
- 3
有如下程序代码 Private Sub Command1_Click( ) Dim A(2 To 7) As Integer Dim i As Integer For i = 2 To 7 A(i) = i Next i print A(i - 2) End Sub 以上程序的执行结果是( )。
- 4
下列代码执行的结果是( )。 Private Sub Form_Click() Dim a(5) Dim i as Integer For i = 1 To 5 <br/>a(i) = i + 2 Next i Print a(4) End Sub A: 6 B: 8 C: 24 D: 2