首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
为了声明一个长度为128个字符的定长字符串变量StrD,以下语句中正确的是( )。
为了声明一个长度为128个字符的定长字符串变量StrD,以下语句中正确的是( )。
admin
2019-03-14
34
问题
为了声明一个长度为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/hBUp777K
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
在窗体上画一个命令按钮,然后编写如下事件过程:PrivateSubCommandlClick()Dim1,NmRandomizeDoFOrI=1To1000Num=Int(Rnd*100):PrintNum;SelectCa
以下关于控件数组的叙述中,正确的是
以下程序执行后,在窗体上输出的图案是()。Form1.ClsFora=1To5PrintSpace(5一A;String(a,“”)Nexta
为了在按下回车键时执行某个命令按钮的事件过程,需要把该命令按钮的()属性设置为True。
在考生目录下有一个工程文件sit4.vbp。窗体上有一大一小两个名称分别为Shape2、Shapel的Shape控件。请在属性窗口中将Shape1控件设置为圆形,并将其颜色设置为红色f颜色值为&HOOOOOOFF&),如图6所示。要求:当单击窗体时,Sh
在窗体上画一个名称为Textl的文本框,然后画.3个单选按钮,并用这3个单选按钮建立一个名为option1的控件数组,程序运行后,如果单击某个单选按钮,则文本框中的字体根据所选择的单选按钮切换,如图1所示。请选择适合空白处的语句()。Priva
下列选项中不属于软件生命周期开发阶段任务的是
数据的存储结构是指
已知二叉树后序遍历序列是CDABE,中序遍历序列是CADEB,它的前序遍历序列是()。
请根据以下各小题的要求设计VisualBasic应用程序(包括界面和代码)。(1)在名称为Forml的窗体上画一个名称为List1的列表框,在属性窗口中为列表框添加三个选项:北京、上海、天津。再建立一个下拉菜单,菜单标题为“文件”,名称为File,此菜
随机试题
A.格列本脲B.胰岛素C.阿卡波糖D.二甲双胍E.罗格列酮属于治疗l型糖尿病的药物是
描述一组偏态分布资料的变异度,宜用
下述内容不属于临床道德原则的是
A.丘脑腹外侧核B.脊髓后角细胞C.延髓薄束核与楔束核D.脊髓前角细胞E.后根神经节振动觉和位置觉传导通路的第二级神经元是
生产准备阶段建设单位的主要工作有( )。
井筒施工中的井身工程,其分项工程包括()。
设立基金管理公司,应当具备以下()条件,并经国务院证券监督管理机构批准。
下列不属于商业银行债券投资目标的是()。
袋子里有7个白球,3个红球,甲、乙按不放回方式从袋中各取一球,甲抽到白球、乙抽到红球的概率是()。
TheeditorialcriticizesareportissuedbyaUS-Canadian"acidrain"______headedbyDrewLewis.
最新回复
(
0
)