问题
单项选择题
在窗体上画一个命令按钮,然后编写如下事件过程: 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
答案
参考答案:D
解析: 因为InputBox函数的返回值类型为字符串类型,故题中a的值应为字符串“456”,b的值为字符串“123'’。然后执行语句Print b+a即将两字符串连接,故输出结果应为123456。