重要提示:请勿将账号共享给其他人使用,违者账号将被封禁!
查看《购买须知》>>>
首页 > 大学专科> 电子信息
网友您好,请在下方输入框内输入要搜索的题目:
搜题
拍照、语音搜题,请扫码下载APP
扫一扫 下载APP
题目内容 (请给出正确答案)
[主观题]

串s1=‘abcdefg’,s2=‘hijkl’,则concat(substr(s1,2,strlen(s2)),substr(s1,strlen(s2),2))=______

串s1=‘abcdefg’,s2=‘hijkl’,则concat(substr(s1,2,strlen(s2)),substr(s1,strlen(s2),2))=_________。

答案
查看答案
更多“串s1=‘abcdefg’,s2=‘hijkl’,则concat(substr(s1,2,strlen(s2)),substr(s1,strlen(s2),2))=______”相关的问题

第1题

若串S1="ABCDEFG", S2="9898", S3="###", S4="012345", 执行strconcat(strreplace(S1,substring(S1,strlength(S2),strlength(S3)),S3),substring(S4,strindex(S2,"8"),length(S2)))后,其结果为( )。

A.ABC###G0123

B.ABC###G2345

C.ABC###01234

D.ABC###G1234

点击查看答案

第2题

设串s1="ABCDEFG",s="PORST",strconcat(x,y)是将x和y两个串连成一个串,substring(s,i,

设串s1="ABCDEFG",s="PORST",strconcat(x,y)是将x和y两个串连成一个串,substring(s,i,j)是返回串s中从第i个字符开始长度为j的子串,strlength(s)返回串的长度,则strconcat(substring(s1,2,strlength(s2)),substring(s1,strlength(s2),2))的结果是______。

点击查看答案

第3题

串s1=‘ABCDEFG’,s2=‘PQRST’,函数concat(x,y)返回x和y串的连接串,substr(s,i,j)返回串s的从序号i

串s1=‘ABCDEFG’,s2=‘PQRST’,函数concat(x,y)返回x和y串的连接串,substr(s,i,j)返回串s的从序号i的字符开始的j个字符组成的子串,strlen(s)返回串s的长度,则concat(slabstr(s1,2,strlen(s2)),substr(s1,strlen(s2),2))=_________

A.BCDEF

B.BCDEFG

C.BCPQRST

D.BCDEFEF

点击查看答案

第4题

设有两个串S1和S2,求串S2在S1中首次出现位置的运算称作( )。

A.连接

B.求子串

C.模式匹配

D.判子串

点击查看答案

第5题

设有两个串s1和s2,求s2在s1中首次出现的位置的运算称为()。

A.求子串

B.求串长

C.联接

D.模式匹配

点击查看答案

第6题

以下fun函数的功能是把s2串连接到s1串之后,请填空。 void fun(char*s1,char*s2) {while(*s1)___

以下fun函数的功能是把s2串连接到s1串之后,请填空。 void fun(char*s1,char*s2) {while(*s1)____________; while(*s2) _____________; _____________; )

点击查看答案

第7题

编写程序,对串s1查找子串s2在s1中出现的次数,串和子串在主函数中输入,要求使用函数调用。

点击查看答案

第8题

下列程序能将字符串s1中的所有与字符串str1相同的子串替换成字符串sb2,并将替换后的新串存于字符
数组s2中。 include<stdio. h> void replace(s1,s2,str1,str2) char *s1,*s2,*str1,*str2; { char *t0,*t1,*t2,*x,*y; x=s1;y=s2; while(【 】) { for(t0=s1,t1=str1; ((*t1!=\O&& 【 】;t0++,t1++); if(*t1!=\0) *s2++=【 】; else { for(t1=str2;*t1!=\0;) *s2++= 【 】; 【 】; } } *s2=\0; } main () { static char s1[]="abcdef ababcd abab.",s2125]; replace (s1, s2, "abc", "XYZ"); printf("%s\n",s2); }

点击查看答案

第9题

Part BListening ComprehensionDirections: In this part of the test there will be some short

Part B Listening Comprehension

Directions: In this part of the test there will be some short talks and conversations. After each one, you will be asked some questions. The talks, conversations and questions will be spoken ONLY ONCE. Now listen carefully and choose the right answer to each question you have heard and write the letter of the answer you have chosen in the corresponding space in your ANSWER BOOKLET.

听力原文:Speaker 1: Today we have a guest speaker, K-K Gregory. She's a successful business owner, and she's only 17. Her company makes Wristies.

Speaker 2: Thank you, Professor Ray—Hi,—umm—I'm really excited to be here. Actually, I started my company when I was ten. Really! —it's true! These are Wristies. See they're long gloves with no fingers. They keep your wrists warm and dry, but your fingers can move easily. So, you can wear them outside, for sports or—urn work. But you can also wear them inside, in a cold house or office.

S1: Ah, K-K, tell us how you got the idea for Wristies.

S2: Well, it was winter, and there was a lot of snow, and I was playing in it. I was wearing a jacket and gloves, but my wrists were really cold[ That's when I got the idea. I just thought of it. So I went home and first, I looked for some warm material. Then I put it around each ann. And then I made a little hole for my thumb. And that's how I made the first pair of Wristies.

S1: Great! So, how did you decide to start a business?

S2: Well, at first, I didn't think about starting a business at all. I just made Wristies for my friends, in different colors, and they all loved them. It was really great! Then they said, "You know, you can sell these things!" And my mother helped me to start my company.

S1: Did she have any business experience?

S2: No! My mother didn't know anything about business, and I didn't either. But we talked tO a lot of people and asked a lot of questions, and you know, we learned a lot! And we had fun.

S1: Where can you buy Wristies?

S2: In stores. You can buy them in a lot of stores, and there's also a website. Once I went on a TV shopping show, and I sold a thousand pairs of Wristies in one hour! I couldn't believe it

S1: So do you have any advice for young people?

S2: Well, umm—Listen to your friends. And be creative. And—don't be afraid to do something new.

Questions:

1.According to the conversation, which of the following is not true about Wristies?

2.According to the conversation, which of the following statements is not true?

3.What was the situation when K-K started the Wristies Company?

4.According to the conversation, where can people buy Wristies?

5.Which of the following is not the advice given by K-K?

(21)

A.They are made of warm material.

B.They have a hold for the thumb.

C.They are only for sports.

D.They are first made by a teenager.

点击查看答案

第10题

判断字符串s1是否大于字符串s2,应当使用( )。

A.if(s1>s2)

B.if(strcmp(s1,s2))

C.if(strcmp(s2,s1)>0)

D.if(strcmp(s1,s2)>0)

点击查看答案
下载APP
关注公众号
TOP
重置密码
账号:
旧密码:
新密码:
确认密码:
确认修改
购买搜题卡查看答案 购买前请仔细阅读《购买须知》
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《服务协议》《购买须知》
立即支付 系统将自动为您注册账号
已付款,但不能查看答案,请点这里登录即可>>>
请使用微信扫码支付(元)

订单号:

遇到问题请联系在线客服

请不要关闭本页面,支付完成后请点击【支付完成】按钮
遇到问题请联系在线客服
恭喜您,购买搜题卡成功 系统为您生成的账号密码如下:
重要提示:请勿将账号共享给其他人使用,违者账号将被封禁。
发送账号到微信 保存账号查看答案
怕账号密码记不住?建议关注微信公众号绑定微信,开通微信扫码登录功能
请用微信扫码测试
优题宝