首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下列语句错误的是
下列语句错误的是
admin
2013-04-11
29
问题
下列语句错误的是
选项
A、If a=3 And b=2 Then c=3 End If
B、If a=1 Then c=2 Else If a=2 End If
C、If a=3 And b=2 Then c=2 Else If a=2 Then c=3 End If
D、If a=1 Then c=2
答案
2
解析
本题考查If句型的使用。If语句有单行语句与块结构两种。A、D为单行语句,C为块结构语句,而B由于缺少Else If后面的语句块而不健全,是错误的,故本题选B。
转载请注明原文地址:https://kaotiyun.com/show/34hp777K
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
在软件工程中,白箱测试法可用于测试程序的内部结构。此方法将程序看做是______。
在窗体上画一个名称为Text1的文本框和一个名称为Command1的命令按钮,然后编写如下事件过程:PrivateSubCommand1_Click()Dimarr(10,10)AsInteger,i,jAsInteger
CommonDialog控件可以显示______种对话框。
把窗体的KeyPreview属性设置为True,然后编写如下过程:PrivateSubForm_KeyDown(KeyCodeAsInteger,ShiftAsInteger)PrintChr(KeyCode)En
下面对对象概念描述错误的是______。
往窗体Form1上添加一个列表框控件List1,并编写如下代码:PrivateSubForm_Load()Fori=0To6List1.AddItemiNextiEndSub
在窗体上画一个通用对话框,程序运行后,通过ShowOpen方法显示”打开”对话框,要求在该对话框的“文件类型”栏中只显示扩展名为.DOC的文件,则对通用对话框的Filter属性的正确设置是:______。
软件生命周期中所花费用最多的阶段是______。
如果在窗体Form1上添加一个通用对话框控件CommonDalogl,那么语句CommonDialog1.Action=4的作用是______。
随机试题
用同钢号某直径钢筋代替另一种直径的钢筋时,其直径变化范围不宜超过().
芍药分为赤芍与白芍两种,始于何本草书籍
知识产权具有的特征有()。
国民经济统计中核算存货的价格,原则上应采用()。
下列属于国家经常性统计调查制度的有()。
要约,是指希望和他人订立合同的意思表示。下列选项中属于要约的是()。
书数是文化基础知识技能,作为“小艺”,安排在小学学习。大学比小学程度提高,学习的课程内容也有变化,大学列入计划的是
Access数据表中的“记录”,在关系数据模型中对应的概念是()。
A、Documentarycredit.B、Documentarycollection.C、Paymentinadvance.D、Openaccount.A当女士向男士寻求关于相对安全的结算方式时,男士的回答是“documentaryc
表明
最新回复
(
0
)