首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
设在工程中定义了如下类型: Type stutype ino As Integer strname As String*20 strsex As String* 1 smark As Single End Type在窗体上正
设在工程中定义了如下类型: Type stutype ino As Integer strname As String*20 strsex As String* 1 smark As Single End Type在窗体上正
admin
2010-09-11
44
问题
设在工程中定义了如下类型: Type stutype ino As Integer strname As String*20 strsex As String* 1 smark As Single End Type在窗体上正确使用这个类型的是下列哪个操作( )。
选项
A、Sub Commandl_Click0 Dim student As Stutype With student .ino = 12 . strname = smith .strsex = .smark = 89 End With End Sub
B、Sub Commandl_Click0 Dim student As Stutype With student .ino = 12 .strname = "smith" .strscx = "男" .smark = 89 End With End Sub
C、Sub Commandl_Click0 Dim student As Stutype With Stutype ino = 12 .strname = "smith" .strsex = "男" .smark = 89 End With End Sub
D、Sub Command1 _Click() Dim student As Stutype With student .ino = 12 .strname = "smith" .strsex = "男" .smark = 89 End student End Sub
答案
B
解析
本题考查为记录类型变量student赋值。使用With语句可以对某个对象执行一系列的语句,而不用重复指出对象的名称。其语法如下:
With记录类型变量
.记录类型变量成员名;要赋的值
…
End With
给记录类型变量中的字符串型成员赋值时要加双引号。
转载请注明原文地址:https://jikaoti.com/ti/wVg0FFFM
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
有两个文件Java_2.java和Java_2.html,其中Java_2.java是不完整的,请完善程序(程序文件名:Java_2.java)并进行调试。请在下画线处填入正确内容,然后删除下画线。请勿删除注释行和其他已有的语句内容。[题目要求]
用户不能直接调用构造方法,只能通过______关键字自动调用。
文件类File是______包中的一个重要的非流类。
已知Java语句double[][]balances=newdouble[NYEARS][NRATES];数组balances是______维数组。
下列关于Applet中加载图像的说法,错误的是
阅读下面程序publicclassTest2______{ publicstaticvoidmain(String[]args){ Threadt=newTest2(); t.start();
下面选项中不属于面向对象程序设计特征的是
“商品”与“顾客”两个实体集之间的联系一般是
创建一个标识有“关闭”按钮的语句是()。
E/R图可以直接转换为关系,其每个属性都对应于关系中的一个属性;E/R图的联系转换为关系时,其属性由两部分组成:与该联系有关的键码属性(集);______。
随机试题
血管壁的一般结构分为()
绞窄性肠梗阻,体温39.8℃,寒战,压90/65mmHg,临床诊断为
痰浊阻痹心脉引起胸痛的特点多为( )瘀血内阻心脉引起胸痛的特点多为( )
非螺旋胸部CT检查无法确诊的疾病是
乙醇为润湿剂,醇的浓度要视原辅料的性质而定,一般为( )。
经当地主管部门批准后,某综合楼工程项目的施工由建设单位自行组织施工公开招标,招标工作主要内容确定如下:(1)成立招标工作小组;(2)发布招标公告;(3)编制招标文件;(4)编制标底;(5)发放招标文件;(6)组织现场踏勘和招标答疑;(7)投标
Themenwhoracethecarsaregenerallysmall,withatight,nervouslook.Theyrangefromtheearly20stothemiddle40s,and
作为整体,中国在世界上举足轻重;但作为个人,不少中国人还觉得自己一无所有。国家之强和个人之弱使一些人心理失衡,觉得自己活得还是像在半殖民地时代受人家欺负的受害者。正因如此,我们更需要对自己生存的状态有理性的认识,克服狭隘的“受害者情结”。否则,崛起的中国将
案例:有研究显示,一般人在进行40%VO2max运动时,动静脉氧差为12%,而进行剧烈运动时可以增加到14%,经过耐力训练后,动静脉氧差可以增大到15.5%甚至更高。问题:分析产生该现象的原因及意义。
下列叙述中错误的是()。
最新回复
(
0
)