首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
【程序】 SET TALK OFF S=0 I=1 DO WHILE I<4 ACCEPT “请输入字符串:”TO X IF“A” $ X S=S+1 ENDIF I=I+1 ENDDO ? S RETURN
【程序】 SET TALK OFF S=0 I=1 DO WHILE I<4 ACCEPT “请输入字符串:”TO X IF“A” $ X S=S+1 ENDIF I=I+1 ENDDO ? S RETURN
admin
2010-06-18
35
问题
【程序】
SET TALK OFF
S=0
I=1
DO WHILE I<4
ACCEPT “请输入字符串:”TO X
IF“A” $ X
S=S+1
ENDIF
I=I+1 ENDDO
? S
RETURN
运行时输入:“abcd”、“aBCD”,输出S的值为 ______。
选项
A、3
B、2
C、1
D、0
答案
D
解析
字符串包含运算符($)的格式:<字符串1>$<字符串2>功能:当<字符串2>包含<字符串1>,其值为.T.;当<字符串2>不包含<字符串1>,其值为.F.。
转载请注明原文地址:https://kaotiyun.com/show/WkhZ777K
本试题收录于:
浙江省计算机二级VF题库浙江省计算机等级分类
0
浙江省计算机二级VF
浙江省计算机等级
相关试题推荐
Chronicinsomniaisamajorpublichealthproblem.Andtoomanypeopleareusing【C1】______therapies,evenwhilethereareafew
Chronicinsomniaisamajorpublichealthproblem.Andtoomanypeopleareusing【C1】______therapies,evenwhilethereareafew
Chronicinsomniaisamajorpublichealthproblem.Andtoomanypeopleareusing【C1】______therapies,evenwhilethereareafew
Chronicinsomniaisamajorpublichealthproblem.Andtoomanypeopleareusing【C1】______therapies,evenwhilethereareafew
ItisafactuniversallyacceptedthatBritonsdislikeimmigration.Sureenough,whentravelrestrictionsonRomaniansandBulga
YouhavejustcomebackfromCanadaandfoundamusicCDinyourluggagethatyouforgottoreturntoBob,yourlandlordthere.
WetendtothinkofthedecadesimmediatelyfollowingWorldWarIIasatimeofprosperityandgrowth,withsoldiersreturningh
Writeanessaybasedonthefollowingoutline.Youshouldwriteabout150wordsontheANSWERSHEET.1.教师用课外时间给学生补课赚钱的现象
用C++设计一个不能被继承的类。
设置拨号连接属性,使用终端窗口功能登录到远程计算机。
随机试题
下述关于不同食物的排空速度描述错误的是
女性,50岁,右肩痛,右上肢上举、外展受限8个月,无肩周红、肿、热等现象,疼痛可向颈、耳、前臂及手放射。最可能的诊断是
女,48岁。胸闷不适半年,近年出现进行性四肢无力。胸部X线片发现右前上纵隔阴影。该患者首先考虑的诊断是
下列各项中诉讼时效期间为1年的是()。
下列被告(被申请人)负举证责任的是:
反射:颜色:光
下列最符合环保要求的做法是()。
JavaApplet应用程序的编写和执行共分4步进行:编写源代码、编写HTML文件调用该小程序、【】、解释执行。
•Readthearticlebelowaboutthetopbrands.•Choosethebestsentencefromtheoppositepagetofilleachofthegaps.•For
Iforgot(turnoff)______thelightintheclassroomwhenIleftlastnight.
最新回复
(
0
)