单项选择题

在窗体上画一个名为Command 1的命令按钮,然后编写如下程序: Option Base 1 Private Sub Command1_Click() Dim Arr Arr=Array(1, 2, 3, 4, 5) j=1 For i=5 To 1 Step -1 S=S+Arr(i)*j j=j*10 Next Print S End Sub 程序运行后,单击命令按钮,输出结果为( )。

A.54321
B.123
C.12345
D.345
<上一题 目录 下一题>
热门 试题

单项选择题
在E盘当前目录文件夹下建立一个名为“Student.txt”的随机文件,要求用InputBox函数输入5个学生的姓名(StuName)、年级(StuGrade)和年龄(StuAge)。在程序中有以下记录类型和窗体的事件过程,请选择正确的语句完成程序( )。 Private Type student StuName As String*10 StuGrade As string*10 StuAgc As Integer End Type Private Sub Form_Click() Dim s As student Open c: student.txt For Random As #1 Len=Len(s) For i=1 To 1 s.StuName=InputBox( 请输入姓名 ) s.StuGrade=Input. Box( 请输入年级号 ) s.StuAge=Val(InputBox( 请输入年龄 )) Next i Close #1 End Sub
A.Print #1,s
B.Print#1,i
C.Put#1,,s
D.Put#1,,i
单项选择题
下列数据结构中,属于非线性的是( )。
A.线性表
B.队列
C.树
D.栈
相关试题
  • 下列程序的功能是:找出给定的12个数中最...
  • 窗体中有图片框(Picture1)和计时器(Tim...
  • 下列程序的功能是:弹出一个对话框询问用户...
  • 如果要通过程序代码来一次性删除列表框中所...
  • 设当前日期为2007年12月27日,星期...