首页 > 计算机应用技术
题目内容 (请给出正确答案)
[单选题]

设串s1="Data Structures、with Java",s2="it",则子串定位函数index(s1,s2)的值为 ()

A.15

B.16

C.17

D.18

查看答案
答案
收藏
如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“设串s1="Data Structures、with Jav…”相关的问题
第1题
设串sl=″Data Structures with Java″,s2=″it″,则子串定位函数index(s1,s2)的值为()。

A.18

B.17

C.16

D.15

点击查看答案
第2题
设串sl=〃DataStructureswithJava〃,s2=〃it〃,则子串定位函数index(s1,s2)的值为()。

A、15

B、16

C、17

D、18

点击查看答案
第3题
设串s1=’ABCDEFG’,s2=’PQRST’,函数con(x,y)返回x和y串的连接串,subs(s, i, j)返回串s的从序号i开始的j个字符组成的子串,len(s)返回串s的长度,则con(subs(s1, 2, len(s2)), subs(s1, len(s2), 2))的结果串是

A.BCDEF

B.BCDEFG

C.BCPQRST

D.BCDEFEF

点击查看答案
第4题
设串s1=’ABCDEFG’,s2=’PQRST’,函数con(x,y)返回x和y串的连接串,subs(s, i, j)返回串s的从序号i开始的j个字符组成的子串,len(s)返回串s的长度,则con(subs(s1, 2, len(s2)), subs(s1, len(s2), 2))的结果串是

A.BCDEF

B.BCDEFG

C.BCPQRST

D.BCDEFEF

点击查看答案
第5题
设串s1=’ABCDEFG’,s2=’PQRST’,函数con(x,y)返回x和y串的连接串,subs(s, i, j)返回串s的从序号i开始的j个字符组成的子串,len(s)返回串s的长度,则con(subs(s1, 2, len(s2)), subs(s1, len(s2), 2))的结果串是()

A.BCDEF

B. BCDEFG

C. BCPQRST

D. BCDEFEF

点击查看答案
第6题
设串s1=‘ABCDEFG’,s2=‘PQRST’,函数con(x,y)返回x和y串的连接串,subs(s,i,j)返回串s的从序号i的字符开始的j个字符组成的子串,len(s)返回串s的长度,则con(subs(s1,2,len(s2)),subs(s1,len(s2),2))的结果串是()。

A.BCPQRST

B.BCDEFG

C.BCDEFEF

D.BCDEF

点击查看答案
第7题
M. Jackson suggested the data structure oriented software design method,Which of the following struc
ture can be introduced by using input/output data structure( ).

A.algorithm structure B.procedure structure

C.code structure D.program structure

点击查看答案
第8题
函数substr(“DATASTRUCTURE”,5,9)的返回为()。

A.“STRUCTURE”

B.“DATA”

C.“ASTRUCTUR”

D.“DATASTRUCTURE”

点击查看答案
第9题
The English data below provide examples of stress placement on certain verbs. ABC appear
adapt astonish collide collapse consider erase elect imagine carouse observe determine corrode torment promise

Describe in words the stress placement on these verbs. Make sure you refer to syllable structure in your statement.

点击查看答案
第10题
已知两个串为s1="bc cad cabcadf",s2="abc",试求两个串的长度,并判断s2串是否是s1串的

已知两个串为s1="bc cad cabcadf",s2="abc",试求两个串的长度,并判断s2串是否是s1串的子串;如果s2是s1的子串,请指出s2在s1中的起始位置。

点击查看答案
第11题
编写程序,对串s1查找子串s2在s1中出现的次数,串和子串在主函数中输入,要求使用函数调用。

点击查看答案
退出 登录/注册
发送账号至手机
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改