![](https://static.youtibao.com/asksite/comm/h5/images/m_q_title.png)
在 VB 中,下列常量定义语句中,语法正确的是()
A.ONST a=10
B.ONST const=10
C.ONST x:=10
D.ONST y as 10
![](https://static.youtibao.com/asksite/comm/h5/images/m_q_a.png)
A、ONST a=10
![](https://static.youtibao.com/asksite/comm/h5/images/solist_ts.png)
A.ONST a=10
B.ONST const=10
C.ONST x:=10
D.ONST y as 10
A、ONST a=10
A.im a=15 As Integer
B.onst PI As Single=3.14
C.im a As Integer=15
D.onst PI=3.14 As single
A.Label1.Caption = "s = x * y
B.Label1.Caption = "s = " + Str(x * y)
C.Label1.Caption = "s = " (x + y)* 2
D.Label1.Caption = "s = " + Val(x * y)
下列关于变量的说法中,正确的是()。
A.在复合语句中定义的变量也是局部变量,它的生存期在本复合语句执行完毕即告结束
B.在一定范围内,整型变量和字符型变量可以相互赋值,如:int a;char s='a';a=s是可以的
C.全局变量的有效范围是从该变量的定义位置开始到本工程结束
D.{char a;a=878*101;cout<<a;},本复合语句输出的值为:88678
A.字符串常量包括双引号本身
B.用一对双引号括起来的字符串称为字符串常量
C.数值型常量类似于数学中的常数
D.在VB中的常量有数值型常量、字符串常量等