单选题
下列选项中,与VBA语句:Dim New%, sum!等价的是______。
A、
Dim New As Integer,sum As Single
B、
Dim New As Integer,sum As Double
C、
Dim New As Double,sum As Single
D、
Dim New As Double,sum As Integer
【正确答案】
A
【答案解析】
[解析] 题中VBA语句:Dim New%,sum!的功能是定义一个整数New和一个单精度数sum。在VBA数据类型中,符号“%”表示整数,符号“!”表示单精度数,符号“@”表示货币,符号“$”表示字符串。因此与之等价的声明语句为:Dim New As Integer,sum As Single。故选择A选项。
提交答案
关闭