By the end of next month we ______ this assignment.A.will finishB.will be finishingC.will
By the end of next month we ______ this assignment.
A.will finish
B.will be finishing
C.will have finished
D.have finished
By the end of next month we ______ this assignment.
A.will finish
B.will be finishing
C.will have finished
D.have finished
The next shareholder's meeting was()at the end of this year.
A. scheduled
B. used
C. made
Dim a(5,5),m as Integer,n as Integer
For m=2 To 4
For n=4 To 5
If m$amp; a(m,n)=m*n
ElSe
a(m,n)=m+n
End If
Next n
Next m
MsgBox a(2,3)+a(3,4)+a(4,5)
运行后的输出结果是()。
A.22 B.32 C.42 D.52
Dim cout(25)As Integer,ch As String
ch=Ucase(Int,utBox("请输入字母字符串"))
For k=1 To i en(ch).
n=ASC(Mid(ch,k,1))-Asc("A")
If n>=0 Then
count(n)=count(n)+1
End If
Next k
m=count(0)
For k=1 To 25
If m<count(k)Then
m=count(k)
End If
Next k
Print m
End Sub
A.0
B.1
C.2
D.3
Private Sub Comand1_Click ()
Dim count (25 ) As Integer, ch As String
ch=U c ase (InputBox (" 请输入字母字符串 " ) )
For k=1 To Len (ch )
n=Asc (Mid (ch,k,1 ) ) -Asc (" A " )
If n>=0 Then
Count (n ) =Count (n ) + 1
End If
Next k
m=count (0 )
For k=1 To 25
If m
m=count (k )
End If
Next k
Print m
End Sub
A ) 0
B ) 1
C ) 2
D ) 3
下面的程序输出100-300之间的素数,阅读程序并填空。 Function sushu(Byval x As Integer) As Boolean Dim i As Integer sushu = False For i = 2 To sqr(x) If x Mod i = 0 Then exit for Next i If i >= sqr(x) Then _____________ End Function Private Sub Command1_Click() Dim m As Integer For m = 100 To 300 If sushu(m) Then Print m; Next m End Sub
A、print i
B、sushu=True
C、sushu=False
D、print m
下面是用冒泡法将5个整数按升序排列,请将程序补充完整。
Sub GASR()
Dim m
m=Array(10, 1, 5, 6, 7)
For i=0 To 3
For j= 【13】
If m(i) >=m(j) Then
【14】
m(i) =m(j)
m(j) =t
End If
Next j
【15】
For i=0 To 4
Print m(i)
Next i
End Sub
Prirate Sub Command1_Click()
Dim count(25)As Integer,ch As String
ch=UCase(InputBox(”请输入字母字符串”))
For k=1 To Len(ch)
n=Asc(Mid(ch,k,1))-Asc(”A”)
If n>=0 Then
count(n)=count(n)+1
End If
Next k
m=count(0)
For k=1 T0 25
IfIn
Ill=count(k)
End If
Next k
Print m
End sub
A.0
B.1
C.2
D.3
执行下面程序后,A(1,3)的值是(),A(2,2)的值是(),A(3,1)的值是()。
Option Explicit
Option Base 0
Private Sub Form_Click()
Dim A(3,3)As Integer,I As Integer
Dim kAs Integer,m As Integer
m=16
For k=6 To 0 Step -1
Ifk >=2 Then
For I=0 To 5-k
A(k-2+I,I)=m
m=m-1
Next I
Else
For I=0 To k
A(k-I,3-I)=m
m=m-1
Next I
End If
Next k
For k=0 To 3
For I=0 To 3
PrintA(k,I);
Next I
Next k
End Sub
单击命令按钮后,下列程序代码的执行结果是______。
Public Sub fun (a As Integer, b As Integer, c As Integer)
Do
a=b+ c
n=n+1
Loop While n > 3
End Sub
Private Sub command1_ click()
Dim m As Integer, n As Integer, i As Integer
For i = 0 To 2: m = n + 1: Next i
For i = 1 To 2: Call fun (m, n, i): Next i
For i = 0 To 3
Print m;
Next i
End Sub
请阅读程序:
Private Sub Form_Click()
m=1
For i=4 To 1 Step-1
Print Str(m);
m=m+1
For j=1 To i
Print”*”;
Next j
Next i
End Sub
程序运行后,单击窗体,则输出结果是()。
A.1**** 2*** 3** 4*
B.4* 3** 2*** 1****
C.**** *** ** *
D.* ** *** ****
在窗体上画1个命令按钮,并编写如下事件过程i
Private Sub Commandl—Click()
Dim a(3,3)
For m=1 T0 3
F0r n=1 To 3
If n=m Or n=4-m Then
a(m,n)=m+n
Else
a(m,n):0
End If
Print a(m,n);
Next n
Prim
Next m
End Sub
运行程序,单击命令按钮,窗体上显示的内容为
A.2 0 0
B.2 0 4
C.2 3 0
D.2 0 0
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!