首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
单击命令按钮时,下列程序代码的执行结果为( )。 Private Function PickMid(xStr As String)As Sting Dim tempStr As String Dim strLen As Intege
单击命令按钮时,下列程序代码的执行结果为( )。 Private Function PickMid(xStr As String)As Sting Dim tempStr As String Dim strLen As Intege
admin
2012-03-22
23
问题
单击命令按钮时,下列程序代码的执行结果为( )。 Private Function PickMid(xStr As String)As Sting Dim tempStr As String Dim strLen As Integer TempStr=" " StrLen=Len(xStr) i=1 Do While i<=strLen/2 tempStr=tempStr+Mid(xStr,i,1)+Mid(xStr,strLen-i+1,1) i=i+1 Loop PickMid=tempStr End Function Private Sub Command1_Click() Dim FirstStr As String FirstStr="abcdef" Print PickMid(FirstStr) End Sub
选项
A、abcdef
B、afbecd
C、fedcba
D、defabc
答案
B
解析
转载请注明原文地址:https://kaotiyun.com/show/BFhp777K
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
Java虚拟机(JVM)运行Java代码时,不会进行的操作是()。
编制一个好的程序首先要确保它的正确性和可靠性,还应强调良好的编程风格。在选择标识符的名字时应考虑()。
在窗体上画一个命令按钮(其NAME属性为Command1),然后编写如下代码: OptionBase1 PrivateSubCommand1_Click() Dima s=0 a=Array(1,2,3,4);j=1
在窗体上画一个名称为Text1的文本框和一个名称为Command1的命令按钮,然后编写如下事件过程: PrivateSubCommand1_Click() Text1.Text="Visual" Me.Text1="Basic"
假定一个工程由一个窗体文件Form1和两个标准模块文件Model1及Model2组成。Model1代码如下:PublicxAsIntegerPublicyAsIntegerSubS1()
执行以下程序段a$=“abbacddcba”Fori=6To2Step-2X=Mid(a,i,i)Y=Left(a,i)z=Right(a,i)z
执行语句Open"Tel.dat"ForRandomAs#1Len=50后,对文件Tel.dat中的数据能够执行的操作是_________。
以下能正确定义数据类型TelBook的代码是_________。
随机试题
20年前,大学毕业的刘姓夫妇与初中毕业的张姓夫妇各自的女儿在同一间产房出生,由于护士的疏忽,刘姓夫妇的女儿彤彤与张姓夫妇的女儿娟娟被调换。现在,被刘姓夫妇抚养的娟娟已经是音乐学院三年级的大学生。被张姓夫妇抚养的彤彤中专毕业后在家待业,两人命运迥异。有人认为
隋唐时期,三省六部制中的六部隶属于()
卡哈切迹主要见于的疾病是
公司信贷中,借款人原应付贷款利息和到期贷款须已清偿,才可进行下一轮贷款。()
变更票据上的金额的,属于票据的伪造,不属于票据的变造。()
材料在空气中吸收水气的能力称为()
唯物辩证法中,发展的实质是()。
计算二重积分,其中D={(x,y)|(x-1)2+(y—1)2≤2,y≥x}.
求区域Ω的体积V,其中Ω是半球面z=及旋转抛物面x2+y2=2az所围成.
属于交互式控件的是______。
最新回复
(
0
)