更多“设串s1="Data Structures、with Jav…”相关的问题
第1题
设串sl=″Data Structures with Java″,s2=″it″,则子串定位函数index(s1,s2)的值为()。
点击查看答案
第2题
设串sl=〃DataStructureswithJava〃,s2=〃it〃,则子串定位函数index(s1,s2)的值为()。
点击查看答案
第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中出现的次数,串和子串在主函数中输入,要求使用函数调用。
点击查看答案