首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
为了声明一个长度为128个字符的定长字符串变量StrD,以下语句中正确的是( )。
为了声明一个长度为128个字符的定长字符串变量StrD,以下语句中正确的是( )。
admin
2019-06-20
31
问题
为了声明一个长度为128个字符的定长字符串变量StrD,以下语句中正确的是( )。
选项
A、Dim StrD As String
B、Dim StrD As String(128)
C、Dim StrD As String[128]
D、Dim StrD As String*128
答案
D
解析
有定长和不定长的字符串变量。默认情况下,定义的字符串变量属于不定长的,字符串长度可以改变,比如:Dim str As String。如果声明一个定长字符串变量,形如Dim str As String *字符个数。故D选项正确。
转载请注明原文地址:https://kaotiyun.com/show/EuUp777K
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
在窗体模块的声明部分声明变量时,不能使用的关键字是
以下合法的VB变量名是
VB中,若没有显式声明变量的数据类型,则默认的类型是
为了声明一个长度为128个字符的定长字符串变量StrD,以下语句中正确的是
已知a=6,b=15,c=23,则语句PrintSgn(a+bMod6-c\a)&a+b的输出结果为
要计算x的平方根并放入变量y,正确的语句是
执行以下程序段aS="VisualBasicProgramming":b$="C++"c$=UCase(Left$(a$,7))&b$&Right$(a$,12)变量c$的值为
设窗体文件中有下面的事件过程:PrivateSubCommand1_Click()Dimsa%=100PrintaEndSub其中变量a和s的数据类型分别是
随机试题
采用整体滑动轴承的主轴的测量方法可在车床、磨床上进行,也可在V形块上进行。()
在Windows中,可以通过“控制面板”进行文件属性的设置。
用失笑散及大剂量红花,降香治疗胸痹心痛的是
作统计图,应注意
长期工作的设备,机房温度一般保持在()之间。
丙公司在知悉甲公司对乙公司的授权已经到期的情况下,与乙公司签订了购销合同,由于乙公司最后未能交货,给丙公司造成了巨大损失。根据有关法律规定,丙公司的损失应当由()承担。
根据( ),纳税人在行使居民管辖权的国家内拥有永久性住所或习惯性居所的,即为该国居民,该国政府有权对其来自世界各地的所得进行征税。
水域旅游产品分为()。
下列不属于广东音乐的曲目是()。
求函数f(x,y)=x2+2-12x+16y在区域D={(x,y)|x2+y2≤25}上的最大值和最小值.
最新回复
(
0
)