语句“Print 5\5 * 5”的输出结果是( )。
A: MsgBox vbOKOnly, "Error"
B: MsgBox "Error", vbOKOnly
C: MsgBox(VbOkOnly,"Error")
D: MsgBox ("Error",VbOkOnly)
A: MsgBox vbOKOnly, "Error"
B: MsgBox "Error", vbOKOnly
C: MsgBox(VbOkOnly,"Error")
D: MsgBox ("Error",VbOkOnly)
C
举一反三
- 以下程序的输出结果是:a =10b =1try:c=b//(b/a)print(except (IOError ,ZeroDivisionError):print( " calculation error" )else:print(" no error" )} A: calculation error B: no error C: 9.0 D: 9.0no error
- if you buy a 100-square-meter house, the area that the developer finally delivered is 5 square meters less, then the correct one in the error description of the actual area is ( ). A: the absolute error is 0.05 B: The relative error is 0.05 C: the absolute error is -5 square meters D: The relative error is -0.05
- 下列命令中不能在信息框中输出“VB”的是 A: MsgBox "VB" B: x=MsgBox("VB") C: MsgBox("VB") D: Call MsgBox "VB"
- MsgBox函数与MsgBox语句的区别就是有返回值
- 下列不属于VBA提供的On Error语句形式为()。 A: On Error Goto标号 B: On Error Then 标号 C: On Error Resume Next D: On Error Goto 0
内容
- 0
下列是全局变量的是()。 A: @error B: @@error C: !error D: error()
- 1
如果A为整数且|A|>=10,则打印“OK”,否则打印“Error”,表示这个条件的单行格式If语句是( )。 A: If Int(A)=A And Sqr(A)>=10 Then Print "OK" Else Print "Error" B: If Fix(=a And Abs(>=10 Then Print "OK" E1se Print "Error" C: If Iht(A)=A And(A>=10,A<=-10)Then Print "OK" Else Print "Error" D: If Fix(A)=A And A>=10,And A<=-10 Then Print "OK" Else Print "Error"
- 2
VBA中不能进行错误处理的语句是( )。 A: On Error Got0标号 B: On Error Then标号 C: On Error Resume Next D: On Error Got0 0
- 3
执行语句:BVal=MsgBox("continue",vbAbortRetry...展学习2.5中MsgBox函数相关内容。
- 4
VBA中用于关闭错误处理的语句是____。 A: On Error GoTo ErrHandler B: On Error Rseume Next C: On Error GoTo 标号 D: On Error GoTo 0