在窗体上画一个名称为Command1的命令按钮,然后编写下列事件过程: Private Sub Command1Click() C=1234 c1=Trim(Str(c)) For i=1 To 4 Print Next End Sub 程序运行后,单击命令按钮,要求在窗体上显示下列内容:1 12 123 1234 则在横线处应填入的内容为( )。
A. Right(c1,i)
B. Left(c1,i)
C. Mid(c1,i,1)
D. Mid(c1,i,i)
查看答案
假定有下列程序段 For i=1 TO 3 For j=5 TO 1 Step-1 Print i*j Next j Next i 则语句Print i*j的执行次数是( )。
A. 15
B. 16
C. 17
D. 18
假定通过复制、粘贴操作建立了一个命令按钮数组Command1,下列说法中错误自是( )。
A. 数组中每个命令按钮的名称(Name属性)均为Command1
B. 若未做修改,数组中每个命令按钮的大小都一样
C. 数组中各个命令按钮使用同一个Click事件过程
D. 数组中每个命令按钮的Index属性值都相同
The history of the American people is, (76) , the history of the movement of the American people. They moved from the colonies of the East Coast to the open space of the (77) . They moved from the country and the farm to the city. (78) , Americans have been moving from the cities to the suburbs.Pioneer Americans began (79) from the East Coast to the West 250 years ago. They moved west for many reasons. (80) reason was that they could obtain (81) open space and land (82) farming. Americans liked large open spaces, and they liked the freedom and independence to (83) the land in their own way. Some of the land became farms. Important minerals were discovered in some areas, so some of the land became (84) . Other large areas became cattle ranches. There seemed to be enough land for everybody. But it was a diffieuh (85) of endless work and hardship. 77().
A. West
B. South
C. North
D. East
窗体上有一个名称为Command1的命令按钮,其单击事件过程及有关函数过程如下: Private Sub Command1 Click() Dim n As Integer n=add(5,10) Print n End Sub Function add(v1 As Integer,v2 As Integer,Optiona1 v3)As Integer If Not IsMissing(v3)Then add=v1+v2+v3 Else add=v1+v2 End If End Function 运行程序,单击命令按钮,以下叙述中正确的是( )。
A. 程序不能正常运行,因为函数add的参数定义有错
B. 程序不能正常运行,因为函数定义与函数调用语句的参数个数不匹配
C. 程序能正常运行,结果是在窗体上显示15
D. 程序能正常运行,结果是在窗体上显示510v3