下列选项中,与 VBA 语句:Dim New%, sum!等价的是

admin2021-09-06  20

问题 下列选项中,与 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选项。
转载请注明原文地址:https://kaotiyun.com/show/1Tvp777K
0

最新回复(0)