在窗体上画一个命令按钮,然后编写如下事件过程。该程序运行后,单击命令按钮,在输入对话框中分别输入321和456,则输出结果为【 】。
Private Sub Command1_Click()
a=InputBox("请输入一个整数")
b=InputBox("请再输入一个整数")
Print a+b
End Sub
第1题:
在窗体上画一个命令按钮,然后编写如下事件过程:
Private Sub Command1_Click( )
a=Val(1nputBox(“请输入一个整数”))
b=Val(1nputBox(“请输入一个整数”))
Print a+b
End Sub
程序运行后,单击命令按钮,在输入对话框中分别输入12和34,输出结果为【 】
第2题:
在窗体上有个命令按钮,然后编写如下事件过程
程序运行后,单击命令按钮,先后在两个输入框中分别输入”1”和”5”,则输出结果为
A.1
B.51
C.6
D.15
第3题:
在窗体上画一个命令按钮,然后编写如下时间过程( )。程序运行后,单击命令按钮,先后在两个输入对话框中分别输入456和123,则输出结果是
A. 579
B. 123
C. 456
D. 123456
第4题:
在窗体上画一个命令按钮,然后编写如下事件过程: Private Sub Commandl_Click() a:InputBox("Enter the First Integer") b:InputBox("Enter the Second Inteeer") Print b+a End Sub 程序运行后,单击命令按钮,先后在两个输入对话框中分别输入456和123,则输出结果是 ( )
A.579
B.123
C.456
D.123456
第5题:
在窗体上画一个命令按钮,然后编写如下事件过程: Private Sub Command1_Click() a=InputBox("请输入一个整数") b=InputBox("请输入一个整数") Print a+b End Sub 程序运行后,单击命令按钮,在输入对话框中分别输入37和18,输出结果为
A.3718
B.55
C.0
D.a+b
第6题:
在窗体上画一个命令按钮,然后编写如下事件过程:Private Sub Command1_ Click ( ) x = InputBox("Enter the First integer") y = InputBox("Enter the Second integer") Print y +xEnd Sub程序运行后,单击命令按钮,先后在两个输入对话框中分别输入456和123,则输出结果是 ______。
A.579
B.123
C.456
D.123456
第7题:
在窗体上画一个命令按钮,然后编写如下事件过程:
Private Sub Command1 Click()
a= Val(InputBox(“请输入一个整数”))
b=Val(InputBox(“请输入一个整数”))
Print a+b
End Sub
程序运行后,单击命令按钮,在输入对话框中分别输入12和34,输出结果为 ______。
第8题:
在窗体上画一个命令按钮,然后编写如下事件过程:
private sub command1_click()
dima,basinteger
a=Val(inputbox("EntertheFirstinteger"))
b=Val(inputbox("EntertheSecondinteger"))
Printb+a
end sub
程序运行后,单击命令按钮,先后在两个输入对话框中分别输入456和111,则输出结果是( )
A.456
B.111
C.567
D.111456
第9题:
在窗体上画一个命令按钮,然后编写如下事件过程:
PrivateSubcommand1_click()
DimaAsString,bAsString
a=InputBox("EntertheFirstinteger")
b=InputBox("EntertheSecondinteger")
Printb+a
EndSub程序运行后,单击命令按钮,先后在两个输入对话框中分别输入456和111,则输出结果
是( )
A.456
B.111
C.567
D.111456