题目内容:
下列程序段的执行结果为 Private Sub Command1_Click()a=InputBox("请输入a值")c="您要查询的是"&IIf(a>0,"天气"," ")&IIf(a<0,"电话号码"," ")&IIf(a=0,"邮编"," ")Text1.Text=c End Sub程序运行后,如果从键盘上输入"16",则在文本框显示的内容是______。
A.您要查询的是天气
B.您要查询的是邮编
C.您要查询的是电话号码
D.False
参考答案:
下列程序段的执行结果为 Private Sub Command1_Click()a=InputBox("请输入a值")c="您要查询的是"&IIf(a>0,"天气"," ")&IIf(a<0,"电话号码"," ")&IIf(a=0,"邮编"," ")Text1.Text=c End Sub程序运行后,如果从键盘上输入"16",则在文本框显示的内容是______。
A.您要查询的是天气
B.您要查询的是邮编
C.您要查询的是电话号码
D.False