单项选择题
下述程序执行后,输出结果是( )。
For n = 3 To 1 Step-1
x$ = String$(n, "#")
Print x$
Next n
A.1#
2#
3#
B.###
##
C.#
##
###
D.3#
2#
1#
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
设在工程中定义了如下类型: Type stutype ino As Integer strname As String*20 strsex As String* 1 smark As Single End Type在窗体上正确使用这个类型的是下列哪个操作( )。
A.Sub Commandl_Click0
Dim student As Stutype
With student
.ino = 12
. strname = smith
.strsex =
.smark = 89
End With
End Sub
B.Sub Commandl_Click0
Dim student As Stutype
With student
.ino = 12
.strname = "smith"
.strscx = "男"
.smark = 89
End With
End Sub
C.Sub Commandl_Click0
Dim student As Stutype
With Stutype
ino = 12
.strname = "smith"
.strsex = "男"
.smark = 89
End With
End Sub
D.Sub Command1 _Click()
Dim student As Stutype
With student
.ino = 12
.strname = "smith"
.strsex = "男"
.smark = 89
End student
End Sub
点击查看答案&解析
单项选择题
Visual Basic应用程序中,下列关于过程的说法正确的是( )。
A.过程的定义可以嵌套,但过程的调用不能嵌套
B.过程的定义不可以嵌套,但过程的调用可以嵌套
C.过程的定义和调用都可以嵌套
D.过程的定义和调用都不能嵌套
点击查看答案&解析
相关试题
在窗体上画一个名称为“Command1”、标题...
在窗体上画两个文本框Text1和Text2,一个...
下列程序段的执行结果为( )。 Dim A(...
在一个窗体上添加一个命令按钮控件,名为Co...
在窗体上放置一个命令按钮Command1,并编...